Sending email with attachment

813 views
Skip to first unread message

Goran

unread,
Apr 16, 2016, 8:24:15 AM4/16/16
to MIT App Inventor Forum
I have following problem:

I need to send email with attachment to several pre-populated email addresses (addresses are stored in text field). So far I manage to do this:

using activity starter I can send email to desired addresses (mailto) but without attachment
using sharing component I can send attachment with email client but cannot autopopulate field To

And ideas?

Hossein Amerkashi

unread,
Apr 16, 2016, 8:27:18 AM4/16/16
to MIT App Inventor Forum
See Taifun's post HERE for different email solutions.




Hossein Amerkashi http://Amerkashi.Wordpress.com   | http://AppyBuilder.com 

 

   

    

Goran

unread,
Apr 16, 2016, 8:55:11 AM4/16/16
to MIT App Inventor Forum
I have seen it before but none of it fit my needs. I want to have .apk without any extra php scripts on server. So question is: can I put attachment in mail and autopopulate field To: with email addresses in text field (by using activity starter or sharing component).

Best regards,

Goran

Taifun

unread,
Apr 16, 2016, 10:37:13 AM4/16/16
to MIT App Inventor Forum
on the mentioned page 

Different eMail solutions for App Inventor 

there is not only the php solution, there are several solutions available, what about using the IFTTT solution?

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Goran

unread,
Apr 16, 2016, 11:02:16 AM4/16/16
to MIT App Inventor Forum
I know, but if possible I would like to use only apk with default email client (so no need to install other software on the phone). Believe me, I read and tried everything that you mentioned. 
In short, can I achieve this: prepare e-mail adresses and location of the file in apk (put it in the text fields), than send email to that addresses with that file in attachment. Sorry if I'm boring.

Taifun

unread,
Apr 16, 2016, 12:47:08 PM4/16/16
to MIT App Inventor Forum
In short, can I achieve this: prepare e-mail adresses and location of the file in apk (put it in the text fields), than send email to that addresses with that file in attachment
yes you can, just use the IFTTT solution

I would like to use only apk with default email client (so no need to install other software on the phone). Believe me, I read and tried everything that you mentioned. 
well, in this case you already found out yourself, that you do not have to install any other software on your device using the IFTTT solution...

Goran

unread,
Apr 16, 2016, 1:21:11 PM4/16/16
to MIT App Inventor Forum
Hmm, in the explanation about IFTTT stays: "To send an attachment, first upload your attachment to the internet". The idea is to send file that is on the sd card as attachment without need for uploading to the internet. Is it possible to add attachment in mailto (like e-mail addresses, subject and body) via activity starter.

Taifun

unread,
Apr 16, 2016, 1:36:50 PM4/16/16
to MIT App Inventor Forum
 Is it possible to add attachment in mailto (like e-mail addresses, subject and body) via activity starter.
unfortunately not
Taifun

Goran

unread,
Apr 16, 2016, 3:35:27 PM4/16/16
to MIT App Inventor Forum
OK. Thanks. I'll try something else.
Reply all
Reply to author
Forward
0 new messages