[Mono-list] R: Problem with system.net.mail
mmorano at mikeandwan.us
Sat Jun 16 13:43:47 EDT 2007
A while back I ran into troubles sending SMTP mail using postfix as
well. In my situation, I merely needed to set the Credentials property
of the SmtpClient to null before sending, then it worked fine for me.
SmtpClient smtp = new SmtpClient("mail.example.com");
smtp.Credentials = null;
Hope that helps,
Gianluca Simoni wrote:
> I'm the administrator of the smtp server (postifx on linux) and I
> check only the ip address for allow sending mail.
> I've check the postfix log, when I'use mono :
> Jun 15 14:18:19 flick postfix/smtpd: connect from
> Jun 15 14:18:19 flick postfix/smtpd: lost connection after UNKNOWN
> from netadmin.cstgroup-pcb.com[10.2.1.5]
> Jun 15 14:18:19 flick postfix/smtpd: disconnect from
> While when I use .Net all work.
> Have yuo some idea?
>> -----Messaggio originale-----
>> Da: Adrien Dessemond [mailto:adrien.dessemond at softhome.net]
>> Inviato: giovedì 14 giugno 2007 0.17
>> A: Gianluca Simoni
>> Oggetto: Re: [Mono-list] Problem with system.net.mail
>> At 10:48 2007-06-13, you wrote:
>> Hello Gianluca,
>>> I'm using the version 1.2.4 of Mono and try to use
>>> system.net.mail to send a simple mail.
>>> This is the code:
>> Has your problem been solved by someone ? It seems related to SMTP
>> authentication... A good way to troubleshoot is to spy the connection
>> and and see the "conversation" between your client and the remote
>> SMTP server... Ask the permission to your system administrator
>> *first* as you face against legal issues when sniffing a network. Be
>> aware of today many SMTP servers often requires you to authenticate
>> before allowing you to send emails... (SMTP-AUTH).
>> Kind regards,
> Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list