Skip to content

nymphaion/mailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mailer

Version Downloads License

Simple SMTP mailer

Example

// If you're testing this script you have to set SERVER_NAME
putenv("SERVER_NAME=website.com");
 
(new Nymphaion\Mail\Smtp('smtp.mail.com', 'sabrina@mail.com', 'super_password'))
    ->sender('Sabrina')
    ->to('mykola@gmail.com')
    ->html('<p>Hello man!</p>')
    ->send();
}