Skip to content

Zig1375/SwiftEmailSender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Install

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)
]

Introduction

This is a Swift module for send email.

Here is an example on how to use it:

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)

About

Swift module for send email

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages