A simple class to send emails by smtp protocol
Gmail.send(
"login", "my.user@gmail.com",
"password", "**secret**",
"to", "edw_inkisidor@hotmail.com",
"subject", "simple test",
"body", "<h1>A simple test</h1><p>success<p>"
);
//Config whit alias support
Gmail.config(
"username", "my.user@gmail.com", //alias of login
"pass", "**secret**", //alias of password
"to", "edw_inkisidor@hotmail.com",
"cc", "chanerec@gmail.com",
"bcc", "eymard@gmail.com"
);
// 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.