You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you enter a message From property formatted like this:
message.From = $"{model.FromName} <{model.FromEmail}>";
AND
model.FromName is a string with a value with a comma in it, the Postmark API fails.
The fix in this instance is to double quote the from name portion. Technically this should only be done when required according to the spec (RFC5322 https://tools.ietf.org/html/rfc5322#section-3.6.2)
Really this is the job of the SDK in my opinion. This would lead to less runtime issues.
A kinder SDK interface would look something like this...
message.From = new Postmark(model.FromName, model.FromEmail);
The text was updated successfully, but these errors were encountered:
@soatley As far as I know nothing changed, if you have any issues please contact our support with more details.
Regarding the comma in display-name - according to the rfc5322 comma is not allowed in not quoted-string
If you enter a message From property formatted like this:
message.From = $"{model.FromName} <{model.FromEmail}>";
AND
model.FromName is a string with a value with a comma in it, the Postmark API fails.
The fix in this instance is to double quote the from name portion. Technically this should only be done when required according to the spec (RFC5322 https://tools.ietf.org/html/rfc5322#section-3.6.2)
Really this is the job of the SDK in my opinion. This would lead to less runtime issues.
A kinder SDK interface would look something like this...
message.From = new Postmark(model.FromName, model.FromEmail);
The text was updated successfully, but these errors were encountered: