Created
July 8, 2020 16:29
-
-
Save klpatil/5f3a110f58e75f8df3a82c12927055aa to your computer and use it in GitHub Desktop.
Sending email using SendGrid with Sitecore
This file contains 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
<?xml version="1.0"?> | |
<configuration xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:set="http://www.sitecore.net/xmlconfig/set/"> | |
<sitecore> | |
<settings> | |
<setting name="MailServer" set:value="#{SendGrid.SMTP.server}" /> | |
<setting name="MailServerUserName" set:value="#{SendGrid.SMTP.username}" /> | |
<setting name="MailServerPassword" set:value="#{SendGrid.SMTP.password}"/> | |
<setting name="MailServerPort" set:value="#{SendGrid.SMTP.port}" /> | |
</settings> | |
</sitecore> | |
</configuration> |
This file contains 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
<system.net xdt:Transform="InsertIfMissing"> | |
<mailSettings xdt:Transform="InsertIfMissing"> | |
<smtp xdt:Transform="InsertIfMissing"> | |
<network host="__SendGrid.SMTP.server__" password="__SendGrid.SMTP.password__" userName="__SendGrid.SMTP.username__" port="__SendGrid.SMTP.port__" /> | |
</smtp> | |
</mailSettings> | |
</system.net> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what is this syntax
set:value="#{SendGrid.SMTP.server}"
and does it relate tohost="__SendGrid.SMTP.server__"
, or are these just placeholders?