[Mono-list] R: Problem with system.net.mail

Mike Morano 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.

For example:

SmtpClient smtp = new SmtpClient("mail.example.com");
smtp.Credentials = null;
smtp.Send(msg);


Hope that helps,
Mike

Gianluca Simoni wrote:
> Thanks,
> 	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[11492]: connect from
> netadmin.cstgroup-pcb.com[10.2.1.5]
> Jun 15 14:18:19 flick postfix/smtpd[11492]: lost connection after UNKNOWN
> from netadmin.cstgroup-pcb.com[10.2.1.5]
> Jun 15 14:18:19 flick postfix/smtpd[11492]: disconnect from
> netadmin.cstgroup-pcb.com[10.2.1.5]
> 
> 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,
>>
>>> Hi,
>>>             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,
>>
>> Adrien
>>
> 
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list