Software Archive
Read-only legacy content

mailto:

Simone_M_
Beginner
1,427 Views

Hi,

I have a button that should open sending email "send email" but it does not work,  ( <a href="mailto:annamariacianchetti@tiscali.it" > )

I have a mail form, when I press submit the app to error and closes( <form action="MAILTO:annamariacianchetti@tiscali.it" method="post" enctype="text/plain"> ),

on the emulator everything works well, how can I solve?

0 Kudos
4 Replies
nicolas_r_
Beginner
1,427 Views

you have to add the mailto:* to the whitelist of your project in the corresponding one (crosswalk, android, iOS or windows)

 

0 Kudos
Simone_M_
Beginner
1,427 Views

I,ve added mailto* to the white list, and now i send simply mail correctly (clicking the button "write us"), but when i try to send a mail with a very basic html form the app show an error and exit.

0 Kudos
Swati_S_Intel1
Employee
1,427 Views

 Try using "get" instead of "post".  Generally for security reasons, some webviews do not allow mailto with form submission. If you are trying to send email with the form content you should do it on server side.

0 Kudos
PaulF_IntelCorp
Employee
1,427 Views

@Simone -- try using the "Create and Launch an Email" plugin in the "Featured Plugins" list (use the Plugin Manager on the Projects tab). Might be easier and provide more options than what you are trying to do.

0 Kudos
Reply