I am able to get Recipient email address from the MFMailComposeViewController using http://jomnius.blogspot.com/2011/02/how-to-find-mfmailcomposeviewcontroller.html link.
But I want From email Address. So is their any way to get From email Address...
Any links related to this is also welcome...
thanks..
I assume you want to fetch User's Configured email address in iPhone. If so, You can't fetch email configuration of iOS devices due to privacy issues.
Related
In my app I've a button that allows users to send me an e-mail.
When users send me an e-mail I want to send to their a confirm e-mail.
But, from swift code, how can I get their email address in order to send to their the confirm mail?
Thank you
You will not be able to use Swift to grab a user's email address this way. This is intentional, to keep a user's information secure.
I would recommended either using an email service that will automatically respond to emails received, or allowing users to enter their email address elsewhere in the app.
I am creating a mail app. I am using MFMailComposeViewController. I am able to check whether the mail client is configured with any of email or not. But can I check that the mail client is configured by a particular email account.
I want to force user to first setup his mail account and then try to send mail. For that I need to check if user is trying to send mail from abc#gmail.com then it should be configured so is it possible to check that if iphone's Mail app is configured by given email.
If possible then how and if not then any alternatives..
Thanks a lot.
The API doesn't expose that information publicly (for probably good reasons, such as preventing developers from harvesting iPhone users' email addresses).
This may be a stupid question, but is there any possible way (from a developer's perspective) to send an email from the MFMailComposeViewController and also change the From: address from the default email account set up on the phone? I want to upload some data from my application, but I don't want it to be linked to the user's email address.
Even if you change the From: it does not accomplish any kind of anonymity. Any well-behaved mail server adds that info to your mail headers.
At the moment, we are sending an email address verification email each time someone signs up. This email has been causing a number of problems: people don't get it, they just don't click the link in the email or the email gets block by spam or some other method. We are working on resolving the spam issue, although I don't think it's possible to completely resolve it.
I'm wondering what other methods there might be for verifying and email address. Is there any other way to verify an email address without sending an email? Or is there another method of ensuring people aren't signing up with fake information?
I'm not sure if there are other good methods, but sending an email and having them click a link is definitely the simplest and most accurate.
A main feature to sending that email, is for the person to verify that it's actually them that requested it.
The only way to verify someone owns an email address is to have him use it.
As for verifying users don't enter fake information - not even sending an email can help. With so many disposable/temporary email services out there (like GuerrillaMail) , someone can fill up your form with false info, post a temp email address, log to that address and click the link in your email - manually or programatically.
You have to trust your users to come back for your content, and ignore spammers.
strikeiron.com offers a paid web service to verify if an email exists without sending a message to that email. try it out here is the link: strick
http://www.strikeiron.com/Catalog/ProductDetail.aspx?pv=5.0.0&pn=Email+Verification
I am using the MFMailComposeViewController in 3.0 to send an email with attachment etc. inside my app. I would like the "To:" address to be defaulted to the default account/address on the device. How can I access this address to place it into a string for the setToRecipients?
Essentially, I'm going to let the user send an email to themselves (as the default "To") with an attachment inside the app.
The API doesn't expose that information publicly (for probably good reasons, such as preventing developers from harvesting iPhone users' email addresses).
You should probably go about asking for the user's email address and then saving it for future use.
It appears that the accepted answer is wrong
Getting user's default email address in Cocoa
This answer shows the code for getting the e-mail address from the address book ( listed under 'me' )
EDIT: Note the comment! OSX only not iOS :|
You can use ABGetMe for iOS to get the user's address book card. Have a look at the source code, you will see how to retrieve all e-mail addresses for a given ABRecordRef.