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", "[email protected]",
	"password", "**secret**",
	"to", "[email protected]",
	"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", "[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>"
);

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