A simple iOS SMTP client.
ARC version of skpsmtpmessage
Thanks to jetseven, I learn a lot his skpsmtpmessage project.
Fixied probleams:
- Can't send mail in concurrent thread.
- Chinese character encoding of attachment filename.
new feature:
- A more friendly way to create
Part
NSDictionary. - You can edit fromEmail username by setting property
fromName
.
Any probleam, please issue. I will reply as soon as possible.
use pod 'JFMail', '~> 0.0.1'
or copy files in JFMail/lib/
into your own project.
-
open
JFMail.xcodeproj
-
change
JFMail/ViewController.m
, edit your email infomation and the right SMTP server URLJFMailSender *mailSender = [[JFMailSender alloc] init]; mailSender.fromEmail = @"example@163.com"; mailSender.toEmail = @"example@qq.com"; mailSender.relayHost = @"smtp.163.com"; mailSender.requiresAuth = YES; mailSender.login = @"example@163.com"; mailSender.pass = @"example";
-
run the project.