i want to send mail through iphone sdk i know there are lots of answers here on stack overflow but it does not work ,i downloaded the mail composer app from apple site and ran in my simulator ,it displaye that mail has been sent but i dont get it on my email address
YOU CANNOT send mails through simulator. It just shows mail sent for the acknowledgement that your mail code is working and wont crash or have any errors..
For testing you have to use device. SIMULATOR shows you the composer but will never send mail as the mailclient is not installed in it..
hAPPY cODING...
You cannot test mail and message compose controllers in simulator. Mail composer uses the default mail account set up on your device to send the mail. There is no mail account set up in the simulator.
Test it on device...
Related
I am developing an iPhone application in which I have to send mail to only recipient without showing the MFMailComposer UI view (i.e without user interaction). Can please tell me how to achieve this?
You cannot send Email without user acceptance. But there are a lot of web-services in internet which can send Email. I guess some app uses those services or uses own.
See also How can I send mail from an iPhone application
You can also use the gmail mail facilities into the xcode
For that following to gives much more tutorial and source code here
Reference link
Using openURL method of UIApplication, you can send the mail without using mail composer. For that you should select "mailto" option.
I have a problem in MFMailComposeViewController.
if no one login in mail and i try to open this view, app crashes
how to solve this?
if i login frommail in ipad and after that i try to load this its working fine.
Thanks,
Shyam Parmar
As far as I know the MFMailComposer requires a mail account in-order to send mail so if an account is not set up it will cause problems. you can check if the mfmailcomposer can send mail through its method [MFMailComposeViewController canSendMail];
I'm using the MFMailCompose method to do an inApp email and everything works fine. I sent the app out to have it tested and here is the response from my beta tester.
My phone is a 3gs 32Gb, OS3.1.3
Tested at home over wifi, send works with no problems, tested twice.
Tested again over 3g, send still does not occur until I open my mail box, error still pops up.
Has anyone come across this? His problem seems to be only when trying to send via 3g. It works for me but I'm with a difference carrier. It has to be a settings, but we checked everything. Has anyone come across this?
If it works over Wi-Fi and not over 3G, then it's most likely because his device is set to send mail through an outgoing mail server (SMTP server) that restricts connections based on the network you are connected to.
For example, if you have broadband service through FooBarNet, they might tell you to use an outgoing mail server smtp.foobar.net. If you connect to that network while you're at home, the server will allow you to send mail. But if you try to connect to it from another network (e.g., your cellular phone's data network) it will reject the connection, assuming you are trying to hijack its mail server to send spam.
In other words, this has nothing to do with your app. You can verify this by using the Mail app to send mail directly.
I've create an application where the user is able to send some info to others via email. But how could i test this on simulator? Is there any way to do that?
It is not possible to send emails from the Simulator. You need to test this on a real device (iPhone/iPod touch).
You cannot send mails through Simulator. Instead you can install the application in device and try from there.
Simulator just displays the composer but wont allow you to send mails. Sent Successfully is just the acknowledgment that your code is fine and there is no issue that terminates it while sending.
Its not possible to send emails using simulator.
You need a real device to check it.
the notitification of message sent is just to tell user that the code is proper.
I am using inbuilt framework of iPhone sdk to send an email.
So is there any way to test this functionality on iPhone simulator.
Also the composer shows only TO, CC, BCC but not FROM, so what email id does it use to send an email to the specified recipients.
Emails sent from apps other than Mail use the default mail account (configured in the Settings app).