PDA

View Full Version : [C#] E-mail inviata ma introvabile nel Server


race2
18-02-2011, 09:15
Salve,
ho un problema di invio mail da codice con una piccola applicazione in C#,
ho preso lo script dal sito ufficiale della guida:


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());
}


Uso i seguenti parametri:
----------------------------------------
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 ??