Have an account? Sign in now.
New to GoDaddy? Create an account to get started today.
We are recently transferred from other hosting to godaddy. We are having issues with sending email. Our code is written classic asp.net
Here is code to Send mail
public int Send_Mail(string Id, string Sub, string Msg, string filename)
MailMessage mail = new MailMessage();
SmtpClient smtp = new SmtpClient();
smtp.Host = ConfigurationManager.AppSettings["smtpserver"].ToString();
//smtp.Host = dmdAppSettings.smtpserver;
smtp.Port = 25;
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
mail.From = new MailAddress(ConfigurationManager.AppSettings["smtpemail"].ToString());
mail.Subject = Sub;
mail.IsBodyHtml = true;
mail.Body = Msg;
if (filename != "")
var attachment = new Attachment(filename);
catch (Exception ex)
// SEND EMAIL
and the setttings in the web.config.
<add key="smtpserver" value="relay-hosting.secureserver.net"/>
<add key="smtpuser" value=""/>
<add key="smtppwd" value=""/>
<add key="smtpemail" value="firstname.lastname@example.org"/>
We are not sure what we are doing wrong here. It was working in last hosting provider. Please help us.
BMD notices tech support
Copyright © 1999 - 2021 GoDaddy Operating Company, LLC. All Rights Reserved.