asp.net - Sending mails not working in production environment - same settings -
send e-mail to my website.
ConfiGing is similar on both sites:
My status is that these mails are being sent when using my local development machine, & lt; System.net & gt; & Lt; MailSettings & gt; & Lt; Smtp = "info@domain.dk" distribution method = "network" & gt; & Lt; Network host = "mail.domain.dk" userName = "info@domain.dk" password = "mypassword" port = "26" & gt; & Lt; / Networks & gt; & Lt; / Smtp & gt; & Lt; / MailSettings & gt; & Lt; /system.net> In my code, I send it like this: smtpClient client = new smtpClient (); Client.Send (mail); I do not know how to debug this problem, because it has the same code on both production and development.
Edit:
I have been able to get a log from the server. The error is: 2012-11-01 20: 41: 58,383 [11] Trade of spare goods Administrator Mail Manager [(empty)] - Email Exception: Mailbox is unavailable. Server response was: denied access - invalid HELO name (see RFC2821 4.1.1.1) hmm
Local development machine and not on my product environment. & lt; Network Host = ..... port = "26" & gt; If you are in an shared hosting environment , then it is possible that ASP.Net will be Medium Trust - And if so, then. This will work in your Local environment because ASP.NET is set to complete trust (Dev / local / VS).
Comments
Post a Comment