Perfect - SMTP Demo 简体中文
This example demonstrates how to use Perfect SMTP library.
Please make sure libssl-dev was installed on Ubuntu 16.04:
$ sudo apt-get install libssl-dev
- Check out or download the project;
- In terminal, navigate to the directory and execute
swift package generate-xcodeproj
- Open
Perfect-SMTP-Demo.xcodeproj
- Check out or download the project;
- In terminal, navigate to the directory
- Execute
swift build
- Once the project has compiled, execute
./.build/debug/Perfect-SMTP-Demo
response code: 0
response header: 220 gmx.com (mrgmx103) Nemesis ESMTP Service ready
250-gmx.com Hello Rockys-MacBook-Pro [68.232.66.174]
250-AUTH LOGIN PLAIN
250-SIZE 69920427
250 STARTTLS
334 VXNlcm5hbWU6
334 UGFzc3dvcmQ6
235 Authentication succeeded
250 Requested mail action okay, completed
250 OK
250 OK
354 Start mail input; end with <CRLF>.<CRLF>
250 Requested mail action okay, completed: id=0Lh7M3-1csvNv3Q9v-00oUqv
response body: {
done!
We've received a lot of requests about google smtp examples, Thanks for @ucotta @james and of course the official Perfect support from @iamjono, this note might be helpful for building gmail applications: smtps://smtp.gmail.com:465
, and you may need to “turn on access for less secure apps” in the google settings.*
We are transitioning to using JIRA for all bugs and support related issues, therefore the GitHub issues has been disabled.
If you find a mistake, bug, or any other helpful suggestion you'd like to make on the docs please head over to http://jira.perfect.org:8080/servicedesk/customer/portal/1 and raise it.
A comprehensive list of open issues can be found at http://jira.perfect.org:8080/projects/ISS/issues
For more information on the Perfect project, please visit perfect.org.