A simple class to send emails by smtp protocol
Gmail.send(
"login", "[email protected]",
"password", "**secret**",
"to", "[email protected]",
"subject", "simple test",
"body", "<h1>A simple test</h1><p>success<p>"
);
//Config whit alias support
Gmail.config(
"username", "[email protected]", //alias of login
"pass", "**secret**", //alias of password
"to", "[email protected]",
"cc", "[email protected]",
"bcc", "[email protected]"
);
// Sending
Gmail.send(
"title", "second test",//alias of subject
"msg", "<h1>other email</h1><p>success!!<p>"
);
- username
- login alias of username
- password
- pass alias of password
- to
- cc
- bcc
- subject
- title alias of subject
- body
- msg alias of body.