[iPhone] Questions about sending mail

NSMailDelivery is deprecated and I can’t find any new object for sending mails.
_Question 1:_
Are there any good frameworks for sending mail from an application?
If so how do I get the settings from the mail program (NSMailDelivery did this automatically)
_Question 2:_
If there is no framework for sending mail directly from the application. Is it possible to send html formatted mail via the mailto: URL method?

You can just set the Body section to be HTML and Mail figures it out:
NSString buffer=@"<HTML><HEAD><TITLE>PAGE</TITLE></HEAD><BODY>example</BODY></HTML>";
NSString subjectLine =@"Example HTML formatted EMAIL";
NSString *str1 = (NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorSystemDefault, (CFStringRef) subjectLine, NULL, CFSTR(";/?:@&=+$,"), kCFStringEncodingUTF8);
NSString *str2 = (NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorSystemDefault, (CFStringRef)buffer, NULL, CFSTR(";/?:@&=+$,"), kCFStringEncodingUTF8);
NSString *urlString = [NSString stringWithFormat:@"mailto:?subject=%@&body=%@",str1 ,str2 ];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]];

Similar Messages

  • This question regarding sending mail from sap

    hi to all,
    this question regarding sending mail from sap
    rt now iam able to send mails from 500 clint, what r the setting i need to do send mails from my another client 700,
    iam using ecc 6.0 with sql database
    regards,
    krishna
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 16, 2010 2:11 PM

    hi to all,
    this question regarding sending mail from sap
    rt now iam able to send mails from 500 clint, what r the setting i need to do send mails from my another client 700,
    iam using ecc 6.0 with sql database
    regards,
    krishna
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 16, 2010 2:11 PM

  • Iphone won't send mail.

    Hi there,
    Have a problem with my iphone. Since I started the contract with o2 i have been unable to send mail on my iphone. The message "the connection to the outgoing server server smtp.o2.co.uk failed" appears. It suggests configuring additional outgoing mail servers. I have spoken with o2 about this at length and they believe it to be an iphone problem. Does anyone have any ideas how to help.
    Thanks in advance.

    If you are trying to send email via WiFi - the ISP may be blocking access to everyone else's SMTP server.
    I assume this is the built in O2 SMTP server that came on the iPhone - if so it should work over Edge or 3G, but maybe not on WiFi.
    If you can get another SMTP server configured and it works over WiFi and/or 3G then O2 has a problem.
    Maybe find another O2 user and see how they have things configured for outgoing email over 3G.

  • Iphone won't send mail - does receive

    This seems to have been discussed ad nauseum, but I can't figure out the solution for me.  I get the following message when trying to send or reply to emails "iphone won't send email  a copy has been placed in your outbox.  the sender address ______was rejected by the server".  On wifi everything works, not when I am off though.  My email provider is Roadrunner  (.twcny.rr.com)
    Everything was fine up until yesterday.  I don't know what could have changed.....
    Any help would be appreciated.
    KR

    I'm having same difficulty.   Was on tech support this AM and they couldn't figure it out either.   I'm setting up a home wifi in next few days, will be interested to see if situation changes.   My iPhone seems convinced that I'm [email protected] and tries to originate email from that address, only to be rejected by server as you describe.  I can receive email that is addressed to [email protected], but even replying to such mail gets the same error.  I'm beginning to suspect an ios5 bug, or there's something else about authorizing email addresses than is covered in documentation.

  • IPhone 3G Cannot Send Mail.  The sender address was invalid.

    All of a sudden, I cannot send mail. I get the message "Cannot Send Mail" The sender address was invalid.
    I have reset the phone in hopes of resolving the problem. That did not work.
    The mail that I'm sending to IS a valid address; I'm trying to RESPOND.
    Please help.

    The configuration and use of any outgoing server address (SMTP) may not be supported due to several factors including, but not limited to, the inability for the outgoing server (SMTP) to authenticate users (whether by IP or username/password) that are not directly connected to that Internet Service Providers(ISPs) network.
    This is usually your HOME wi-fi and you are not connected to it because you are on your iPhone away from the house. This is mainly done to prevent unsolicited users from sending SPAM via the ISP's servers.
    An alternative is to use ATT SMTP Server (for US) when you are on the 3G or data network for the carrier and not on your home wi-fi. So enable ATT SMTP server under Other SMTP servers under your Mail's account settings on the iPhone.
    If you are interested you can obtain that information directly from the email provider. This article has a great temple that you can use to ask all necessary information from the provider including "If you use your ISP’s own email service (instead of a third-party such as Gmail), sometimes it may not work if you use another Internet access point, such as a cafe with wireless Internet. Ask your email provider if the settings they give you will work on other networks."
    What to ask if you're having issues sending, receiving, or configuring Mail
    http://support.apple.com/kb/HT1277

  • IPhone 3G iOS4: Sending mails from an external address

    Hi!
    Did anyone know if it is possible to send mails from an external address with the iPhone using MobileMe?
    This was for me the most important feature Apple introduced with the last MobileMe update and it is working fine online and with Mail.app. But it seems not to work with the iPhone.
    You can choose from your aliases when you write a mail but not the external address.
    Is it not working with older iPhones or is it not working in general? In general would be a major drawback!
    Regards, Stefan

    You need to go to mail settings, open any account, then tap on SMTP. The gmail outgoing server is probably still in the server list, so delete it.
    Also, you need to reboot after any email account changes. Hold HOME and SLEEP until an Apple logo appears.

  • Two questions about apple mail

    hey everyone. i'm getting to learn a little more about apple mail these days; smoothing out Gmail IMAP synching and whatnaught. i've stumbled into the mail directory on my macbook and had some questions.
    1. the "mail downloads" folder (home/library/mail downloads). what is the significance of this folder? in the preferences, i have my default downloads saved to the main "downloads" folder. yet there is a random number of files in there; i don't think they constiute the totality of every message i've received that has a file to download, so what is the logic of those files? if i delete them will the downloads not be available from individual mail messages any longer?
    2. i see some older IMAP mailboxes for two accounts that i don't even have access to any more. they don't, however, show up on the mail app itself. is there some way to reintegrate these mailboxes (just for archival purposes, and the ability to see their messages) into the mail program?
    thanks so much!
    quin

    Aaron,
    The Mail Downloads folder contents are redundant to what is kept with the messages. The most typical ways that content results in that folder are:
    1) quickly clicking the Save button on a message, rather than using a click-hold to then have the option to choose a target location of the Save;
    2) you open an attachment with another application. There Mail Downloads is only meant to be a temporary storage location. Attachments are kept as originally received with the message itself. Also, in the more recent version of Mail, it is redundantly kept in a folder within the INBOX.mbox folder named Attachments -- this is a behind the scenes behavior. It first appeared only for IMAP mailboxes, but more recently in Mail 4.x is also the case with a POP account. If unedited, then depending how you have your preference set up, attachments may be removed when Mail is quit, etc.;
    3) Mail in 10.5.x and 10.6.x seems to require the Mail Downloads folder to be created, rather than use the Downloads folder. The latter is mostly used as the location of items you click to load from a remote server, whether in a Browser or in Mail.
    With respect to your old IMAP account folders or mailboxes, where have you found them? I would assume any old IMAP accounts have been deactivated in Mail Preferences/Accounts/Advanced if in the Mail folder, but not showing in the Sidebar to Mail? It would problematic to activate an IMAP account if it can no longer contact the IMAP server. Any xxxx.imapmbox folder can be dragged from the Mail folder (after quitting Mail) to say the Desktop, renamed as xxxx.mbox folder, and then back in Mail imported to be an On My Mac mailbox for archival.
    More info, please.
    Ernie

  • Newbie question - general question about e-mail sync

    Hi,
    I have a general question about email sync and BlackBerry smartphones.  Are there any devices that allow email syncing with a Microsoft Exchange 2007 system that do not require the BlackBerry Enterprise server?
    Thanks; sorry if this has been asked before but I was unable to find it in the forums, documentation, etc.  Everything I found assumes that for this kind of environment you will be using a BlackBerry Enterprise solution, but I can't assume.
    Thanks again.
    Solved!
    Go to Solution.

    Hi and Welcome to the Forums!
    If the Exchange server has anything that faces the internet (OWA, POP, IMAP), then BIS can be used to handle email (only email...calendar and contacts require BES to sync OTA).
    Or, a PC, inside the network (but with an internet path) and logged into the email server (using Outlook), can be left running, using the RIM Desktop Software's Desktop Redirector capability to forward  messages to the BB.
    Those are basically the options.
    Hope that helps! Let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • IPhone 3G cannot send mail - Sender address invalid

    I can receive email but cannot send it. The error message is "CANNOT SEND MAIL the sender address was invalid". I have turned off Wi-Fi and as well as SSL. Does anyone know a fix?

    Was it working before?
    Verify that the ISP you are using is not blocking SMTP port 25. If so, try switching your Outgoing SMTP server to cwmx.com (AT&T SMTP server). This option will only send mail over 3G or EDGE.
    Check out this article for some suggestions as well: http://support.apple.com/kb/TS1426

  • About send mail through Outlook Express

    I send mail through outlook . but system shows "your server has been terminate suddently. The possible reasons include servers error , NetWork error or long time among inactive status ." I promise the setting of POP3 and SMTP is right. Who can help me ? thank you.

    I would start first with, do you know that the smtp setting for your server actually points to a Sun Java Enterprise Messaging Server?
    what do you get on a command line when you do:
    telnet <what you have for smtp> 25
    ?

  • About send mail

    hi experts,
    let me know how to give the distribution list name in the mail....
    what is the recepient type?
    if helpful points ll be awarded....
    regards,
    velu....

    P =     Private distribution list
    C =     Shared distribution list
    You are not clear with your requirment. I hope you will be using the send mail task in Wflow. This is the recipient type for distribution list.
    Create a method to find out email from distribution list or you can put distribution list in the container element and in the binding from Workflow to task for recipient type you pass the following values accordingly.
    P =     Private distribution list
    C =     Shared distribution list
    <b>Reward points if useful and close thread if resolved</b>
    Message was edited by:
            Arghadip Kar
    Message was edited by:
            Arghadip Kar

  • Question about sending Request for Quotation by e-mail

    Hi All,
    I'm trying to send our RFQ by mail, I've already customized all the settings displayed on sap note 191470 in transaction SCOT and also I've assigned the forms and messages to this document, but I still can´t get our RFQ by email to ours vendors.
    anyone of you have any clue to solve this?
    thanks in advance.
    Daniel.

    Hello Deniel,
    Please maintain the email address in user profile and vendor master.
    Also check the OSS Note 357137 - External e-mails from message control.
    Hope this helps
    Regards
    Arif Mansuri

  • Question about Sent Mail folder contents

    Hi Everyone.
    this question requires a fair amount of background -- I tried my usually very helpful users' group and didn't get any responses. Here's the story:
    I upgraded my macbook pro to Leopard partly because I thought Time Machine would make me backup more regularly (it has). I have a few sporadic backups from prior to the upgrade, and then I backed up right before I upgraded. I had a disk error during my first attempt at an archive & install, found that the disk was wiped, thanked my lucky stars I backed up beforehand, ran disk utility on the disk, and then did an erase & install instead.
    After the upgrade, I used the migration assistant to restore my user account from my backup. At some point after the fact, I noticed that my sent mail mailbox in mail.app for my primary email account was missing all my emails except for the period from 3/30/05 to 4/15/05 and from 1/07 to 4/07.
    I thought I was hosed, but today I found I had another backup on a second disk, and that one has 10,614 emails in the sent mail folder (to be precise Sent Message (account name).mbox/Messages/). After importing, I have all of those sent emails restored in a folder in mail.app.
    However, during this process, I went and checked my Sent Messages mailbox in my current Library folder for this user account. In that folder (Library/Mail/Mailboxes/Sent Messages (this account).mbox), all of the files (content_index, Incoming_Mail, IncomingTable_ofContents, mbox, and tableofcontents) show an incorrect(?) created / modified / Last opened date of 5/26/05. The Info.plist file has the correct dates, and the Messages folder does, too. Those same files are in the Sent Messages folder on both of my backups, and have the same date (5/26/05) listed.
    I actually pulled all of the files listed above with the weird dates and removed them from the Sent Messages.mbox folder. That doesn't seem to matter to mail -- everything still seems to be working just fine.
    So, my question is, are those files crucial, or are they cruft from multiple generations of OS updates and mail.app updates that are no longer needed? It seems like no new versions were automatically generated when I removed the old ones, and mail doesn't seem to be broken.
    I've been using mail.app at least since 2004 and the emails in the sent mail folder trace back to a Pbook G4 that started with OS X 10.1 (maybe even 10.0 -- my memory isn't as good as it used to be) and was upgraded with each major release, then I migrated to the current MacBook Pro and upgraded it from Tiger to Leopard. So I've probably used the migration assistant (or archive & install) to help me move files (or did it manually) through one laptop changed and four OS upgrades.
    Any ideas about this Sent Messages question or in general about how I might clean up my Mail folder are appreciated.
    Thanks!

    I have both POP and IMAP email accounts.
    The IMAP is easy. Until you delete it is visible on both phone and computer. Once you delete it is gone from both, although with providers like Google, you can still un-delete it. Google, among others, provides free IMAP email.
    For POP, there is a setting in Entourage preferences, (maybe in mail.app, too) that will let you decide to automatically delete the mail from the server, manually delete the mail from the server, or automatically delete after a period of time. I set my pop account to automatically delete from the server after one month. You set up the iPhone the same way - to leave it on the server. This way, a message will download to both your computer and to the iPhone. If you are working at your computer, you can still manually delete the message from the server so that it does not go to your iPhone, since you have already handled it. But even if you never delete from the server, it will automatically delete in a month so that you do not go over your email limit (if any) for your ISP.
    Also, with my POP account, I set up the phone to automatically send a copy to me of all outgoing messages. This way my computer has a copy of everything I send from the phone.

  • Question about filtering mail

    At present I tidy most of my Mail inbox automatically (mostly) by writing rules to send some posts to their respective mailboxes. These are generally routine messages that are not immediately important, but sometimes they might be important. When I first started doing this, I realised that Mail quietly filters the messages in the background and unless I opened the mailboxes to look I wouldn't know if I had received a new message. Therefore I created a smart mailbox that would show all messages for a week. I take a look every now and then.
    Because this doesn't work on iphone, and also because there is no longer the option to synch rules and mailboxes between Mail apps on different computers, I really have to consider doing my filtering on icloud.
    However, on iCloud there are no smart mailboxes. If I filter a message into a mailbox on iCloud, it'll disappear into that mailbox and I won't see it unless I search through the mailboxes. So, my question is, does anybody know of a way that one can filter messages on iCloud so that one can see easily all the messages that have arrived, in the same way that I can do with Mail? I do not want all of these messages, from various forums, shopping sites, etc, cluttering up my inbox, but I do want to be able to keep an eye on what has arrived.

    Thanks for taking the time to respond guys.  Both of your answers have been helpful.
    To clarify, I did have junk filtering on (which created a junk mailbox) and I did have the box checked to show all junk main in my regular inbox (highlighted as suspected junk).  My problem was they all were't going to my inbox at all, but straight to my junk box.  So there's a flaw with the junk mail option.  I will check all of my other devices to make sure I have the same option set for all machines though!
    Currently I have junk mail filtering off (which takes away the junk mail folder), and my question was, will I now get all mail, including junk, in my inbox.  The obvious answer seems like a yes, but I just wanted to make sure that is indeed the case as nothing in mail help says you will get all of your mail or not (wasn't sure if there's some sort of junk mail filter at the iCloud server level that would simply ignore what it thinks is junk and not even send it to me).
    Based on what you guys have said, my suspision that I will get all mail now, regardless of if it's junk or not, in my inbox, is pretty much confirmed.

  • Getting iphone, Questions about Family Plan. NEED HELP!

    So right  now I am on a family plan with my Dad and mother and we all have old phones that are basic basic. Our family plan has no Data plan at all, and in fact the plan is so old that it does not exist anymore. However I am moving away soon and I want to upgrade to an iphone. My question is this, If I upgrade, will I have to get my own plan? Or will I be able to just upgrade my phone and add the data charges just to my phone without making my parents upgrade their phones as well?
    Any help will be awesome. I don't want to go into the store and talk to a sales person because they are motivated by commission so it would be in their best interest to upgrade all or them. So if I can go in there educated about the specifics of upgrading it would help.
    Thanks!!

    Steveo15317 wrote:
    So right  now I am on a family plan with my Dad and mother and we all have old phones that are basic basic. Our family plan has no Data plan at all, and in fact the plan is so old that it does not exist anymore. However I am moving away soon and I want to upgrade to an iphone. My question is this, If I upgrade, will I have to get my own plan? Or will I be able to just upgrade my phone and add the data charges just to my phone without making my parents upgrade their phones as well?
    Any help will be awesome. I don't want to go into the store and talk to a sales person because they are motivated by commission so it would be in their best interest to upgrade all or them. So if I can go in there educated about the specifics of upgrading it would help.
    Thanks!!
    Thanks to our forum member for the great information!
    In addition, please note that you will most likely be able to keep your current calling plan when you upgrade your line to an iPhone 4; however, if the iPhone 4 is not compatible with your current calling plan you will be notified when you process your order online if you login to your My Verizon account and you will be presented with your new calling plan options.
    If your calling plan is compatible with the iPhone 4, you will be able to simple upgrade to the iPhone 4 device and add the data plan to your line. This does not affect your parents calling plan in any way. You can also separate your line from the family calling plan and have an individual calling plan for your line and have your parents lines stay with their family share plan.
    If you do not feel comfortable ordering your upgrade phone online or at a store, you can also order your upgrade from the comfort of your home if you dial 1-800-922-0204 to contact our customer service department.

Maybe you are looking for

  • ITunes Wi-fi sync not working like it should.

    So I got a new ipod touch 4th generation because my other one broke. I'm trying to set up wifi sync so I don't have to connect the device to the computer incase it malfunctions. Half the time it doesn't work, and if it does work, I still have to conn

  • Are 2 ATI's better than 1 NVIDIA ?

    Hi all, Im on the brink of buying a new Mac Pro and as I have a limited budget I need to make a few decisions. I want to use my two existing monitors and was wondering which would be better.. Using one NVIDIA GeForce 8800 0r Using two ATI Radeon HD 2

  • How to make Output WebService accessible?

    Hello, another problem arose in our implementation of xMII as a shop floor integration tool. We are building a service oriented architecture and thus want to employ the WebService functionality of xMII. By using the WSDLGen we have built a Client who

  • Sql Server 2012 Integration Services Catalog views - cpu usage history

    Hi, I am new to SQL Server 2012. I have deployed and executed a SSIS package on the Integration Services catalog. Now, to analyze the performance of the executed package I wish to query the SSISDB catalog views to retrieve the cpu & memory usage hist

  • Issues with activation of the Illustrator trial version

    Hi there, I have just downloaded the Illustrator CS6 trial version and the download appeared to be successful. I was then prompted to sign in to Adobe to activate the trial and when I input my details the following pop up message comes up: Error: 703