Skip to content

fitorec/java-Gmail-smpt-mail-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

java-Gmail-smpt-mail-sender

A simple class to send emails by smtp protocol

how use (a very smaple example).

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>"
);

Sample 2 (config and after send).

//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>"
);

List of properties and alias

  • username
  • login alias of username
  • password
  • pass alias of password
  • to
  • cc
  • bcc
  • subject
  • title alias of subject
  • body
  • msg alias of body.

About

A simple class to send emails by smtp protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages