Skip to content

Instantly share code, notes, and snippets.

@baxtheman
Created July 17, 2018 08:28
Show Gist options
  • Save baxtheman/9dcb3e939e572af9f34b7bb75d3426de to your computer and use it in GitHub Desktop.
Save baxtheman/9dcb3e939e572af9f34b7bb75d3426de to your computer and use it in GitHub Desktop.
Liferay, mail send test script (via beanshell)
import com.liferay.util.mail.MailEngine;
import javax.mail.internet.InternetAddress;
MailEngine.send(new InternetAddress("sender@gmail.com"),
new InternetAddress("destination@gmail.com"),
"test email sub", "HOLA, this is the body", false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment