Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Open Email App

Just wondering if there is a way to open the actual mail app to send an email rather than creating an emailDialog. I would love to pass and email address into the mail app.

Can this be done?

— asked August 11th 2010 by Ian Briggs
  • email
  • iphone
0 Comments

4 Answers

  • Anyone having an answer to this?

    — answered June 8th 2011 by Dennis Nielsen
    permalink
    0 Comments
  • @Ian Briggs did you find a solution?

    — answered June 27th 2013 by user 4683
    permalink
    1 Comment
    • whoops meant to comment that

      — commented June 27th 2013 by user 4683
  • Hi,

    var url = "googlegmail://"
    Ti.Platform.openURL(url);
    

    Only this way possible.

    Thanx,

    Dharmik

    — answered June 27th 2013 by Dharmik Patel
    permalink
    8 Comments
    • @Roseanne Carroll : you can use this alternative.

      — commented June 27th 2013 by Dharmik Patel
    • @ Dharmik Patel is there any way to do this where when you open the url, you can have the a specified email already in the to field

      — commented July 4th 2013 by user 4683
    • @Roseanne Carroll : Prefer this link

      http://wiki.akosma.com/IPhone_URL_Schemes#Mail

      — commented July 4th 2013 by Dharmik Patel
    • Try this way

      var url = "mailto:test@example.com"
      Ti.Platform.openURL(url);
      

      — commented July 4th 2013 by Dharmik Patel
    • @Roseanne Carroll : Let me know if it helpful to you.

      Thanx,

      Dharmik

      — commented July 4th 2013 by Dharmik Patel
    • @Dharmik Patel thanks. I saw this earlier. I'm working on Android however

      — commented July 4th 2013 by user 4683
    • @Dharmik Patel Oh it worked! Thanks :)

      — commented July 4th 2013 by user 4683
    • @Roseanne Carroll : Any time .:)

      — commented July 4th 2013 by Dharmik Patel
  • var emailDialog = Titanium.UI.createEmailDialog()
    emailDialog.subject = "Hello from Titanium";
    emailDialog.toRecipients = ['foo@yahoo.com'];
    emailDialog.messageBody = '<b>Appcelerator Titanium Rocks!</b>';
    var f = Ti.Filesystem.getFile('cricket.wav');
    emailDialog.addAttachment(f);
    emailDialog.open();
    

    Reference: http://developer.appcelerator.com/apidoc/mobile/1.0/Titanium.UI.EmailDialog

    — answered September 8th 2011 by Michael Chau
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.