Try our conversational search powered by Generative AI!

Issue with Sendgrid SMTP configuration


Hi there!

I am trying to configure the Sendgrid credentials for a the SMTP.

Before the configuration was done with an API Key. It seems that now the configuration is different. The host name has changed from to It makes me wonder if Episerver is using the same Sendgrid instance for all their customers. 

Nevertheless, I can't make it work with the configuration I got from DCX services. 
I have tried with SSL and without it, and with different ports, but wasn't able to make it work. 

I was able to make it work with a personal Sendgrid account, using the old API Key method. But couldn't with the new configuration.

Any insights?

This is the help page for configuring Sendgrid:

This is the configuration I have in place

<smtp from="" deliveryMethod="network">
<specifiedPickupDirectory pickupDirectoryLocation="" />
<network enableSsl="false"

This is the error I got

2019-08-25T01:21:14 PID[20608] Error lambda_method : Failure sending mail.
System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response)at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode)at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)at System.Net.Mail.SmtpClient.Send(MailMessage message)---
Edited, Aug 25, 2019 3:56

you have `` as host. is that correct?

Aug 25, 2019 22:18

Hey Mauro,

All our Episerver DXC sites use Sendgrid, and our typical config (transform) looks like this.

<mailSettings xdt:Transform="Replace">
<smtp from=""> 

Episerver Support has previously told us the Host can be either or but we always use the former.

I'd be double-checking the Username with Episerver Support, I've seen some inconsistent naming conventions for Usernames, some older ones have been DXC_ prefixed while the most recent Usernames have been 4 characters all Uppercase with no prefix.

We don't typically use deliveryMethod="network" but please note in the Official documentation Network is upper-case N, I'm not sure if that is case-sensitive. 

Edited, Aug 26, 2019 9:14

Thanks Valdis, it was a typo, I have just updated my post. ".net" is the right one.

Thanks Darren, I have reached Epi Support to double-check the values and will try with the upper-case N.

Aug 26, 2019 15:15

Update on this. The initial credentials I got were wrong. 

Just double checked with Episerver Support and , ss you said Darren, the user has now only 4 letters, and with the above configuration works.

Aug 26, 2019 23:36
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.