Page 1 of 1

Upload images to email address?

Posted: Sat Mar 17, 2012 4:21 am
by Jgc

I am wondering how to have the user choose photos that already reside in their device to an email address.

So basically, the user will choose an image from their device that already exists, then click a button that will send it to an email address that I program into the app. I am trying to simulate a file upload basically......Any ideas?


Upload images to email address?

Posted: Sat Mar 17, 2012 4:22 am
by Jgc

Just wanted to add that instead of the file going to a server, it will go to my email address that I program into the app. Hope that helps!


Upload images to email address?

Posted: Sat Mar 17, 2012 4:23 am
by Jgc

Meant to say MY not ME - its late here.... _


Upload images to email address?

Posted: Sat Mar 17, 2012 7:23 pm
by maxkatz

jQuery Mobile doesn't provide a file upload component but you can try using just the basic HTML:

code
<input type="file"&#46;&#46;&#46;&#47;>
/code

But, you can't just upload the image into the browser, it has to be sent to some service - in other words, you have to upload it somewhere.

As for email, it's not possible to send an email from JavaScript so you can use a service is such as SendGrid, for sending emails - http://sendgrid.com.


Upload images to email address?

Posted: Sun Mar 18, 2012 3:18 pm
by Jgc

Hmmm.....Okay, Im going to investigate this issue further see what my options are.... Thanks for the reply, Max!