I have a task which is related to sending mail without connection or MFmailcomposer. Simply i am doing work on a form which have to sent a single mail-id. when the form fills up and user perform the action for sending then sent mail to the client without MFmailcomposer and webservice if connection available else if Wi-fi is not available then filled form text file will save in documents directory.and when iPhone comes in connection then automatically it sent to that mail -id. document is saving as text file. but now what to do ? Is SMTP is useful for it? suggest me...
Asked
Active
Viewed 448 times
2
-
Well forget about ['MFMailComposeViewController'](http://developer.apple.com/library/ios/#documentation/MessageUI/Reference/MFMailComposeViewController_class/Reference/Reference.html) you will have to with `SMTP`. – rckoenes Jun 08 '12 at 10:33
-
You won't be able to send the mail automatically when it connects via wi-fi unless your app is running. – Nick Bull Jun 08 '12 at 11:17
2 Answers
1
You would definitely have to implement this functionality with SMTP.
Check the answer to this SO Post, Open Source Cocoa/Cocoa-Touch POP3/SMTP library?
Includes several links to different SMTP Libraries, as well as example code.
1
the below link could help you...
http://www.raddonline.com/blogs/geek-journal/iphone-sdk-testing-network-reachability/

Suresh Sharma
- 1,826
- 22
- 41