DNN Resources
13

Got a very strange SMTP server configuration error. Spent couple hours on firewall settings etc but could not resolve it.

InnerException: Failure sending mail.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Net.BufferBuilder.Append
StackTrace:
Message: System.Net.Mail.SmtpException: Failure sending mail. ---> System.FormatException: An invalid character was found in the mail header. at System.Net.BufferBuilder.Append(String value, Int32 offset, Int32 count) at System.Net.Mail.EHelloCommand.PrepareCommand(SmtpConnection conn, String domain) at System.Net.Mail.EHelloCommand.Send(SmtpConnection conn, String domain) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, String ReplyTo, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, List`1 Attachments, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL)

Finally found out it was because there is chinese characters in Computer name. You can not use special characters on machine name of windows 2003 server.

Posted in: Knowledges, Hosting

Post Rating

AllDnn.FlashTitle