Supported only Swift 3.0 (Release)
In Package.swift
:
dependencies: [
// Other your packages
.Package(url: "https://github.com/Zig1375/SwiftEmailSender.git", majorVersion: 3, minor: 0)
]
This is a Swift module for send email.
let queue = EmailQueue();
queue.addHost(
alias : "test",
host : "smtp.gmail.com",
port : 587,
username : "[email protected]",
password: "password",
from : "[email protected]"
);
var email = Email(subject: "test subject", to : "[email protected]");
email.text = "test text \n TEXT";
email.html = "test html <br/><b> TEXT </b>";
queue.addEmail(alias : "test", email : email);
sleep(60)