Salve sto provando ad inviare una mail con Indy Delphi 2010 ad un indirizzo gmail e la mail mi finisce in SPAM. Stesse impostazioni provato ad inviare da PHPMailer e tutto funzia regolarmente. Mi sfugge qualche parametro? Vi allego il codice Delphi.

Grazie


codice:
    //setup SMTP
    SMTP.Port := 25;
    SMTP.ConnectTimeout := 1000;
    SMTP.Host := 'smtp.xxxxxxx.it';
    SMTP.Username := 'info@xxxxxx.it';
    SMTP.Password := 'xxxxxx';
    SMTP.Connect();

    if SMTP.Authenticate then
    begin
        //setup mail message
        MailMessage.From.Name := 'nome';
        MailMessage.From.Address := 'info@xxxxxxx.it';
        MailMessage.Recipients.EMailAddresses := 'xxxxxxxxxx@gmail.com';

        MailMessage.Subject := ledSubject.Text;
        MailMessage.ContentType := 'multipart/mixed';
        htmpart := TIdText.Create(MailMessage.MessageParts, nil);
        htmpart.Body := Body.Lines;
        htmpart.ContentType := 'text/html';

        //send mail
        try
            try
                SMTP.Send(MailMessage);
            except on E:Exception do
                StatusMemo.Lines.Insert(0, 'ERROR: ' + E.Message);
            end;
        finally
            if SMTP.Connected then SMTP.Disconnect;
        end;
 	end;