skpsmtpmessage

Is there a library “SKPSMTPMessage” for Swift?

本秂侑毒 提交于 2019-12-11 02:19:41
问题 Is there any SMPSKMPMessage library to use in Swift? earlier i have used this tutorial which is in objective - c. What I want to do is send a mail in background using Swift. 回答1: I don't know any email sending library in Swift, but you can definitely use the one described in the Objective-C tutorial in your Swift application. All Objective-C libraries are cross-compatible with Swift code: just use a bridging header. 回答2: Simply integrate skpsmtpmessage with cocoa pods by adding: pod

Attach a video in SKPSMTPMessage

爷,独闯天下 提交于 2019-12-04 05:07:01
问题 I have a VideoClip.mp4 stored in my documents directory in my app. I can successfully send an email with SKPSMTPMessage, (email, subject, body, ect.) but I am having trouble attaching the video. I have already searched around a lot, but I will keep looking. If anyone can help me, that would be appreciated very much. Thank you! This code (apparently) attaches an image, but I haven't been able to figure out how to manipulate it to attach a video: NSString *image_path = [[NSBundle mainBundle]