facebook

How to open Email app & return? – use mailto: scheme

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #309898 Reply

    stavvie34
    Member

    Hello, I need help with a webapp where the user clicks on a button in the toolbar, and he/she is taken to the default email app. In the body of the email I would like to automatically fill in information that the user has previously entered in text boxes. If its also possible, I would like to have the user return to a page when the email has been sent.

    Thank you
    -Stavvie34

    Attachments:
    You must be logged in to view attached files.
    #309958 Reply

    wayne
    Moderator

    Following is a link describing how launch your iphone’s email client prepopulated with recipient, subject and msg content:

    http://developer.apple.com/safari/library/featuredarticles/iPhoneURLScheme_Reference/Articles/MailLinks.html#//apple_ref/doc/uid/TP40007892-SW1

    The later requirement of returning back to the application upon completion of the email send use-case is not clear to me how to do that atm. Thinking….? (If anyone else has suggestions pelase post – All help welcome)

    Wayne
    Genuitec Mobile Team

    #309979 Reply

    The returning back to the app after sending the mail would require to code a native app and then have them never actually leave your app but load the mail sending screen on top of your app.

    Though you could just make the a .php page so that the sever sends the email to you without ever opening the mail app like a contact form (though as the server send you the email you’d need to add another field for the users email.
    Example contact form script

    #309996 Reply

    stavvie34
    Member

    What I would like to do is have a native app that is actually just a webapp. I’ve seen it done with a version of YouTube’s new HTML5 site. If I could get the php into my MobiOne file, I would be extremly happy. Can I expect an update to MobiOne in the coming weeks? An update to allow editing of code without MobiOne overwriting it?

    #309997 Reply

    wayne
    Moderator

    re: code overwrite on export problem

    see my last comment here http://www.genuitec.com/support-mobione/viewtopic.php?f=8&t=801 about our plans to remedy this problem asap.

    Wayne
    Genuitec Mobile Team

    #311840 Reply

    Albatros78
    Participant

    Hi

    mailto fonction does not works.

    I created a link with link text component with the word “email” in the text field and add the following into the link field

    <a href=”mailto:info@mysite.com”>TestLink</a>

    But this link doesn’t works and the display is not good into test center

    Also, if I modified directly html code through test center, the link does not works not anymore.

    And after this modification I saved my modfified html file. I closed mb1m9u4. I re-open my mobi file, and a box inform me that the html code has changed…. blablabla…

    My modification is not recognized by mb1 and the GUI & displaying is always the same as initial. The text link is always “email” and no “TestLink

    Regards

    #311878 Reply

    wayne
    Moderator

    This is a bug that will be fixed in next release. The bug is limited to use of mailto: URL in the Link field. It is still possible to use a mailto URL in your javascript or directly enter it into the Test Center’s browser addressbar.

    Wayne
    Genuitec Mobile Team

    #314444 Reply

    Holly
    Member

    I guess you have to understand some instructions about this. Sending an email app would require you to be at least knowledgeable. I know that this is just an easy task for those who really know it. Better try to approach one of them.

    #314446 Reply

    support-michael
    Keymaster

    @Holly
    You are correct that to send mail directly from your app without invoking the local email client would require either using a remote webservice or a native implementation. There are public email sending webservices or you could roll your own easily using your favorite server-side scripting language: php. asp, jsp…

    Wayne
    Genuitec Mobile Team

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: How to open Email app & return? – use mailto: scheme

You must be logged in to post in the forum log in