Mandrill “reject_reason”: “invalid-sender”

前端 未结 6 2135
-上瘾入骨i
-上瘾入骨i 2020-12-20 11:37

I\'m trying to send emails using mandrill email service but I get the following error

    Full Response
[
    {
        \"email\": \"someemail@somedomain.co         


        
6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-20 11:55

    If you use .NET SmtpClient, may be this is because of bug on it: https://social.msdn.microsoft.com/Forums/vstudio/en-US/4d1c1752-70ba-420a-9510-8fb4aa6da046/subject-encoding-on-smtpclientmailmessage

    Workaround, that helped us:

    use

    message.SubjectEncoding = Encoding.Unicode;
    

    instead of

    message.SubjectEncoding = Encoding.UTF8;
    

    This is still actual in .Net Framework 4.7.2

提交回复
热议问题