mfmailcomposeviewcontroller

Why anchors tag containing an image don't work in Iphone's mail app?

旧时模样 提交于 2019-12-11 08:11:05
问题 I"m doing a HTML newsletter for a client, using thunderbird to send it, and everything works fine in all browsers and mail clients, but the anchor tag containing an image, don't work in Iphone's mail app. Every time i click the image, the app ask me if i want to download the image, It doesn't take the "href". Can someone help me? Thanks 回答1: Just had this same issue - iPhone/iPad Apple mail app treating linked images as photos, not opening up in Safari as intended. Other mobile devices worked

Using MFMailComposeViewController to send a mail, get “EXC_BAD_ACCESS” when dismissing the modal view controller

杀马特。学长 韩版系。学妹 提交于 2019-12-11 06:39:27
问题 I am sending an email from my iPhone app using MFMailComposeViewController. This works fine but after sending or canceling I need to dismiss the modalViewController. When I do this I get a Program received signal: “EXC_BAD_ACCESS”. This is not very descriptive... Please help!! This is the code for creating the mail and the modalViewController -(void)sendFavMail:(NSString *)body{ MFMailComposeViewController* mailViewController = [[MFMailComposeViewController alloc] init]; mailViewController

sending doc file as an attachment on iPad

瘦欲@ 提交于 2019-12-11 06:21:35
问题 I want to send .doc file as an email attachment from my app programmatically. 回答1: Use -[MFMailComposeViewController addAttachmentData:] with a mimeType of "application/msword". For example: - (void)displayComposerSheet { MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@"I'm attaching a word document!"]; // Set up recipients NSArray *toRecipients = [NSArray arrayWithObject:@"first@example.com"]; NSArray

Not receiving attachments sent from MFMailComposer

巧了我就是萌 提交于 2019-12-10 22:09:24
问题 I am trying to send out an email with a .csv attachment on the iPad. I am using the MFMailComposer per many examples given which is displayed below. When sending out the email, I can see the correct file attachment in the MFMailComposer window, but when I receive the email, nothing is attached. Any guidance as to what I may be doing wrong would be appreciated. Thank you for your time, if ([MFMailComposeViewController canSendMail]) { MFMailComposeViewController *mailViewController = [

Sending Email without using MFMailComposeViewController

自作多情 提交于 2019-12-10 21:04:19
问题 Is it possible to send email in iOS without relying on the default mail / messaging interface of the system? Does it really the same with messaging where you can not create your custom interface for message but to use the default interface of MFMessageComposerViewController? 回答1: Take a look at this answer. Locking the Fields in MFMailComposeViewController If you follow the instructions you can create your own custom View then send email. Without having to use the default

ios7 status bar changing back to black on modal views? [duplicate]

非 Y 不嫁゛ 提交于 2019-12-10 16:42:58
问题 This question already has answers here : MFMailComposeViewController in iOS 7 statusbar are black (13 answers) Closed 5 years ago . I have my app setup and everything works great until I call my image picker and my mail controller. On each of those views the UIStatusBar changes to black even though I have [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; and View controller-based status bar appearance set to YES. Any idea how to control the light color of

Can't dismiss the email composer view in iPhone?

限于喜欢 提交于 2019-12-10 16:10:27
问题 I am new to iphone development.I have created a tabbar based application . In the first i want the email composer to be displayed. I am able to display it but the cancel and send button are not working,I don't know where do i go wrong .Please help me out. Here is my code. - (void)viewDidLoad { [super viewDidLoad]; [self displayComposerSheet]; } -(void)displayComposerSheet { picker = [[MFMailComposeViewController alloc] init]; [[picker navigationBar] setTintColor:[UIColor blackColor]]; picker

Is there a URL handler for Gmail for iOS to compose a message?

给你一囗甜甜゛ 提交于 2019-12-10 14:16:05
问题 My iOS application includes sending emails as part of its functionality. MFMailComposeViewController allows in-app composition of an email, with the OS using Mail.app in the background to send the message. However, I want to allow users to send an email with the Gmail app for iOS if they so choose. Since remote view controllers aren't public API, the only way this would be possible is with a URL handler, but I couldn't find one documented online anywhere. Does anyone know of one? If there is

MFMailComposeViewController with recipient display-name as well as email address

谁说胖子不能爱 提交于 2019-12-10 03:58:10
问题 I find that I can [picker setToRecipients:[NSArray arrayWithObject:@"My Name <myname@example.com>"]]; and it nicely displays "My Name" in the To: field when composing the email, and delivers it correctly to myname@example.com, on my iPad device. Looks good in the iPad simulator too (can't send though of course). But the iPhone simulator just shows "1 recipient" on the compose screen. Don't know whether it would send it ok or not, don't have an iPhone device handy to test that. Has anyone else

Cancelling MFMailComposeViewController causes a memory leak?

拥有回忆 提交于 2019-12-10 03:54:10
问题 I use MFMailComposeViewController in an app I'm working on now. When user taps on a button, email form pops up. Now when I use instruments to monitor memory during this process I see that every time you push the cancel button and the action sheet appears, about 2.5 mb of memory adds up to live bytes in all heap & anonymous vm. This only occurs if you tap the cancel button, everything runs normally when you send the email. Btw I checked Apple's MessageComposer sample code here , it has the