简体   繁体   中英

Apple's SBSendEmail example code doesn't send attachments anymore with OSX El Capitan

I've just installed OSX El Capitan. I have an application that sends Email on OSX. It was working great on previous OSX. Now, with El capitan you can still send text but you never receive the attachments. Thank you for any help. François

https://developer.apple.com/library/mac/samplecode/SBSendEmail/Introduction/Intro.html

I found the solution .

If you put the code for the attachment upper in the lines of code then it works.

With OSX el Capitan, the email is passed to the application MAIL before the attachment is set. So if you start by coding the attachment, then it works.

François.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM