|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Aug 2000
Messaggi: 1209
|
[C#] E-mail inviata ma introvabile nel Server
Salve,
ho un problema di invio mail da codice con una piccola applicazione in C#, ho preso lo script dal sito ufficiale della guida: Codice:
string to = "jane@contoso.com"; string from = "ben@contoso.com"; MailMessage message = new MailMessage(from, to); message.Subject = "Using the new SMTP client."; message.Body = @"Using this new feature, you can send an e-mail message from an application very easily."; SmtpClient client = new SmtpClient(server); // Credentials are necessary if the server requires the client // to authenticate before it will send e-mail on the client's behalf. client.UseDefaultCredentials = true; try { client.Send(message); } catch (Exception ex) { Console.WriteLine("Exception caught in CreateTestMessage2(): {0}", ex.ToString()); } ---------------------------------------- ADSL: ALICE 7Mega SMTP: out.alice.it ---------------------------------------- Se invio all'indirizzo: xxx@live.it - tutto ok ma lo cataloga come SPAM Se invio all'indirizzo: xxx@nomeazienda.it - gestita Server Aruba parte correttamente ma non la ritrovo nel Server..... Perche succede questo ?? |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 22:19.