Skip to content

Instantly share code, notes, and snippets.

@jverweijL
Last active October 13, 2020 11:55
Show Gist options
  • Save jverweijL/90650dcf24eb1c760d62a217f328cf80 to your computer and use it in GitHub Desktop.
Save jverweijL/90650dcf24eb1c760d62a217f328cf80 to your computer and use it in GitHub Desktop.
Using mailtrap.io with Liferay DXP

How to use mailtrap.io with Liferay DXP

When setting up Liferay DXP it's necessary to add an smtp-server e.g. for resetting your password. For testing/development purpose it's easier to use a service like mailtrap.io. Simply add the portal-ext.properties with the right settings and you are good to go without spamming your users.

mail.session.mail.smtp.auth=true
mail.session.mail.smtp.host=smtp.mailtrap.io
mail.session.mail.smtp.password=[your_password]
mail.session.mail.smtp.port=465
mail.session.mail.smtp.user=[your_username]
admin.email.from.name=Emails from a friend
[email protected]
announcements.email.to.name=Announcements from a friend
[email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment