开发者

Sending Mail using MFMailComposeViewController in iPhone

I have a situation where i need to send details entered in the UITextfields to the administrator's mail ID without opening the MFMailComposeViewController.

This is a registration part of the application,so i will ask the users to enter their personal information like name,mail ID,DOB etc.,and i want to send these information as a mail to a hard coded ID which is the administrators mail ID.

I want this mail to be sent when the register button is pressed which is kept at the bottom of the same page.

I used the MFMailComposeViewController,without displaying the Composer view by avoiding the usage of this statement in order to prevent the modal view being popped up wh开发者_如何学Cen i hit the register button

[self presentModalViewController:picker animated:YES];
and i use the

 - (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error
by invoking it using the statement

[self mailComposeController:picker didFinishWithResult:MFMailComposeResultSent error:nil];

where picker is the object of the

MFMailComposeViewController

What should i do,to implement the same?

Kindly anybody advise me on how to achieve this.

Thanks a lot to everyone.


Thats not possible with MessageUI.framework. Instead you could set up a web service which sends the mail. Your app would connect to your server and sends the mail from there.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜