Integrating SendGrid SMTP Mail with Liferay

Saravanan Muniraj - Sep 4 - - Dev Community

SendGrid is a mail relay service that operates through APIs and cloud-based technology. As the leading provider of email delivery services, we understand the importance of ensuring that your emails are delivered without any issues or being caught in filters. That is why SendGrid has optimized our mail transfer agent (MTA) and developed efficient tools for managing deliverability.

You have multiple options to begin using SendGrid.
To utilize the API, you must complete the following steps:

  1. Establish a SendGrid Account.
  2. Generate an API Key. Consult the Sendgrid documentation for instructions on creating an API key.

The Liferay Support SMTP service operates as a means of transmitting emails from one mail server (or mail client) to another over the Internet. SendGrid primarily serves as a third-party SMTP service, allowing us to send emails on behalf of our users and their clients in order to enhance their delivery rates. By signing up for a SendGrid account, you gain access to our SMTP mail servers and have the option to send your emails through us instead of using a webmail client or your own server.

The built-in mail session of Liferay DXP is the most convenient method for configuring mail and is highly recommended. You can set up the built-in mail session using any of the following approaches:
ā€¢ Control Panel
configure the mail session from the Control Panel.

  1. Sign in as the administrative user (the user you specified on the Basic Configuration page).
  2. Navigate to Control Panel ā†’ Configuration ā†’ Server Administration ā†’ Mail.

Outgoing SMTP Server: smtp.sendgrid.net
Outgoing Port:25
User Name:apikey
Password:< API Key >

. . . .
Terabox Video Player