1
votes

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.

2

2 Answers

1
votes

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...

1
votes

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.