(Translated by https://www.hiragana.jp/)
GitHub - jeffssss/JFMail: a simple ios smtp client.
Skip to content

jeffssss/JFMail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JFMail

A simple iOS SMTP client.

ARC version of skpsmtpmessage

Thanks to jetseven, I learn a lot his skpsmtpmessage project.

Fixied probleams:

  1. Can't send mail in concurrent thread.
  2. Chinese character encoding of attachment filename.

new feature:

  1. A more friendly way to create Part NSDictionary.
  2. You can edit fromEmail username by setting property fromName.

Any probleam, please issue. I will reply as soon as possible.

Use JFMail

use pod 'JFMail', '~> 0.0.1' or copy files in JFMail/lib/ into your own project.

Demo

  1. open JFMail.xcodeproj

  2. change JFMail/ViewController.m, edit your email infomation and the right SMTP server URL

     JFMailSender *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";
    
  3. run the project.