I've tried a lot of tutorials on sending emails in your app but none of the ones I've seen show how to send an image with it. I'm recovering an image from .WriteToFile, This image is set to a UIImageView. How should I send an email with my picture?
Niall
You need to add an
attachmentData
to your mail, encoding your image in an NSData. This is an example that show you how to send an email with your image. I'm suppose that you have aUIViewController
where you can put the functionsendMail
.In order to dismiss the VC, include the following method in your
ViewController
:The documentation for this method is reported in MFMailComposeViewControllerDelegate.