adesso funziona ma se uso l' smtp di aruba mi da questo errore
codice:
<%@ Page Language="C#" Debug="true" %>
<script runat="server">
void Page_Load(object sender, EventArgs e){
System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage();
mail.To = "raffaeu@raffaeu.com";
mail.From = "pippo@pippo.com";
mail.Subject = "ciao";
mail.Body = "ciao";
System.Web.Mail.SmtpMail.SmtpServer = "smtp.raffaeu.com";
System.Web.Mail.SmtpMail.Send(mail);
Response.Write ("testo=Your message was succesful sended.");
}
</script>
Mi dice
System.Runtime.InteropServices.COMException: The server rejected one or more recipient addresses. The server response was: 553 sorry, you need to supply the correct username and password for SMTP-AUTH (#5.7.1)
Se invece uso l' smtp di dove lavoro, funzia, cosa manca? forse è sbagliato l' smtp?