Я создал MFMailComposeViewController
. Я прикрепил некоторые файлы, используя addAttachmentData:mimeType:fileName:
. Файлы успешно прикреплены.
HTML в теле сообщения имеет следующий код:
<IMG border="0" style="border:0;" src="fileName.gif" >
Я добавляю данные вложения с тем же именем файла, но они не загружаются в HTML. Я просто получил синюю коробку с вопросительным знаком. Что-нибудь еще, что мне нужно сделать, чтобы загрузить изображения? Я слежу за документацией:
If you want to include images with your content,
you must attach the images separately using the
addAttachmentData:mimeType:fileName: method.
You should call this method before you display the mail composition interface
only. Do not call it after presenting the interface to the user.