Email Content From Database (is it possible)

Discussion in 'iOS Programming' started by oo7ml, May 19, 2015.

  1. oo7ml macrumors 6502

    Joined:
    Jan 20, 2010
    #1
    Hi,

    Is it possible to build in a 'EMAIL' button into an iOS app that will get the user's information from the database (i'm using parse.com) and email it to their email address (which is also saved in the database).

    Can anyone offer any advice on this? Thank you.
     
  2. mds1256 macrumors regular

    Joined:
    Apr 9, 2011
    #2
    Hi

    Yes it's possible, top of my head you need to retrieve the relevant details from parse and store them in variables, then construct an email request either via the iPhone mail app or via an online web service. Both fairly simple to be honest
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    Do you need this email to be sent automatically, without user intervention? If so, that's rather problematic.

    You can use MFMailComposeViewController to begin the process of allowing a user to send out an email. You cannot, however, use this to send out an email without the user seeing it and possibly editing or canceling it. And since the iOS SDK does not really have a SMTP client that would allow you to programmatically send out an email, you'll have to explore other options, probably via some kind of remote web service. Is there nothing through parse.com that would allow you to do this on their end, without even involving the iOS app?
     
  4. oo7ml thread starter macrumors 6502

    Joined:
    Jan 20, 2010
    #4
    Thanks guys. I've found a way to do it with Parse and MailGun
     

Share This Page