Error: Error sending email in SendMailMessage: Failure sending mail.

Nov 18, 2010 at 11:51 AM
Edited Oct 24, 2011 at 6:13 PM

BlogEngine.NET 1.6.2.49

Getting this error: Error: Error sending email in SendMailMessage: Failure sending mail. The remote name could not be resolved: 'mail.example.com'

Website is hosted in Go Daddy.   (http://blogengine07.info)

 

Could not connect: Failure sending mail. The remote name could not be resolved: 'smtp.gmail.com'

Hosted on http://aspspider.net   (http://aspspider.net/kbdavis07) 

BlogEngine.NET 1.6.2.40

 

Was working before on aspspider.net but not any more.

 

Thanks,

 

Brian Davis

Java Blog

Nov 19, 2010 at 2:31 PM

Does anybody knows why this is occurring?

 

Also what are the smtp settings for Go Daddy?

Coordinator
Nov 19, 2010 at 6:06 PM

You posted two error messages.

The first one is clearly an error because the default SMTP server name was still in there - mail.example.com.  There is no such host -- it's just the default value.  So it's expected to get this error message for that host.

There's been a handful of past Discussions here for GoDaddy SMTP settings.  I would search the discussions here.  You can also Google for it too since it would be standard GoDaddy SMTP settings ... and nothing special for BE.

Nov 20, 2010 at 8:20 AM

I figure part of it out you have to save the settings first before you test the connection.

 

But, now I am getting the following error:

 

Error: Error sending email in SendMailMessage: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Nov 20, 2010 at 8:35 AM

Got it working now:

 

Server: relay-hosting.secureserver

 

Username: UserName@domain    (Must use full email address)

 

Port: 25 

 

Enable SSL  Leave uncheck

Save Settings

 

Then test connection

 

Hope this helps someone else :)

 

Brian Davis