开发者

Send an email from my iPhone Application

I know that I can use MFMailComposeViewController and MFMailComposeViewControllerDelegate to pop up email composer template with my to/from/subject settings and user can edit these settings and click send button.

Reference links: How can I send mail from an iPhone application Iphone send email from application http://developer.apple.com/library/ios开发者_开发问答/#samplecode/MailComposer/Introduction/Intro.html

...but my requirements are different. I want to develop a form (user inquiry/feedback form) where user need not to special to/from address rather they input their details and click send button. For example, form given at http://www.connectjets.com/quote.html

Is there anyway such that the mail composer template won't pop up and I can send an email directly?

Thanks.


Setup a PHP-Script that handles sending email. Present a form from within your app and then post that data to this PHP script using NSURLConnection. Then you don't need to use the mail composer...


I have tried the SMTP library skpsmtpmessage, but was unable to get it to send messages... I also investigated this issue fairly thoroughly, but it could not be done.

Can I send email programmatically in iPhone app?

Please let us know if you are successful with the PHP solution, it sounds like a good strategy. You should be able to then send the email server side.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜