Ciao,
sto cercando di far inviare mail alla mia applicazione on-line.
Uso il seguente codice:
string to = "mauro@xxxx.net";
string from = "mauro@xxxx.it";
string subject = "Oggetto mail";
string body = "Testo E-mail, corpo del messaggio.";
MailMessage message = new MailMessage(from, to, subject, body);
SmtpClient client = new SmtpClient("localhost");
client.Send(message);
Il messaggio di errore restituito è il seguente:
Mailbox unavailable. The server response was: 5.7.1 Unable to relay for mauro@xxxx.net
Dove sbaglio?
Beppesan
work: http://www.beppesan.it
hobby: http://www.birraiolo.it