Created
July 18, 2022 11:09
-
-
Save jverweijL/dd07adabf04a41eb98907ec26cbf73f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.mail.internet.InternetAddress; | |
import com.liferay.mail.kernel.model.MailMessage; | |
import com.liferay.mail.kernel.service.MailServiceUtil; | |
// from | |
InternetAddress from = new InternetAddress(); | |
from.setAddress("[email protected]"); | |
// to | |
InternetAddress to = new InternetAddress(); | |
to.setAddress("[email protected]"); | |
MailMessage mailMessage = new MailMessage(from,to,"bujsub","body body",Boolean.TRUE); | |
MailServiceUtil.sendEmail(mailMessage); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment