Email api

Discussion in 'iOS Programming' started by sujithkrishnan, Sep 24, 2008.

Thread Status:
Not open for further replies.
  1. sujithkrishnan macrumors 6502

    Joined:
    May 9, 2008
    Location:
    Bangalore
    #1
    Hi all,
    I want o know how to send email from iPhone application.There is no support for NSMailDelivery.
     
  2. danielpunt macrumors newbie

    Joined:
    Oct 11, 2007
    Location:
    Netherlands
    #2
    You can open a mailto: link like this :

    Code:
    NSURL *url = [[NSURL alloc] initWithString:@"mailto:example@example.com?subject=This is my subject&body=this is the body"];
    [[UIApplication sharedApplication] openURL:url];
    :)
     
  3. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    You already asked this exact same question. Reposting in a new thread is both against the rules and exceptionally rude. I will certainly think twice before offering you further help or advice.
     
  4. sjarman macrumors newbie

    Joined:
    Sep 24, 2008
    Location:
    Sydney, Australia
    #4
    At the moment, I'm using the mailto in my app to produce an email.

    In one of the iPhone Getting Started videos, the Apple presenter refers to a method within UIKit (when discussing "Application integration") to "create and prefill a message in mail".

    Is he referring to the mailto URL, or is there another way that this can be done?
     
  5. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #5
    He is referring to mailto:. That is the only option.
     
Thread Status:
Not open for further replies.

Share This Page