hi
i know that this is a godaddy related question but searching theirs forums and contacting them give me nothing
i have this code to send email from a contact form :
{
MailMessage message = new MailMessage();
SmtpClient smtp = new SmtpClient();
//Get the message ready to send
message.From = new MailAddress(mailtextbox.Text);
message.To.Add(new MailAddress("mytestmail@gmail.com"));
message.Headers.Add("Reply-To", mailtextbox.Text);
message.IsBodyHtml = true;
message.Subject = "Contact - " + TextBox4.Text + " - " + TextBox3.Text;
message.Body = TextBox2.Text;
smtp.Host = "relay-hosting.secureserver.net";
// smtp.Port = 25;
smtp.Send(message);
TextBox4.Text = "";
mailtextbox.Text = "";
TextBox3.Text = "";
TextBox2.Text = "";
}
the problem is when i choose xxxx@hotmail.com or xxxx@gmail.com as sender email adress i have this error :
Mailbox name not allowed. The server response was: sorry, your mail was administratively denied. (#5.7.1)
any other adresse work perfectely
thanks for any suggestion
good day to all