[Mono-dev] System.Net.Mail

David Elkind davide at mainsoft.com
Thu Jan 18 05:13:08 EST 2007


Hi Damien,

I would say the right fix is to initialize the useDefaultCredentials field
to false. I will fix this now. Sorry.

David.

-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Damien
Churchill
Sent: Thursday, January 18, 2007 11:59 AM
To: mono-devel-list at lists.ximian.com
Subject: [Mono-dev] System.Net.Mail

I've attached the class I was using to send mail.

I had to modify a part of SmtpClient to allow this to work with exim.
After looking at SmtpClient it appears that it always sends the AUTH
command despite not it been given credentials, which would then throw
"503 AUTH command used when not advertised".

To get around this I set useDefaultCredentials to false and the set of
the property to just `useDefaultCredentials = value;`

I have yet to test this properly though but does at least fix the exim
issue.

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.14/636 - Release Date: 1/18/2007
4:00 AM
 
    

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.14/636 - Release Date: 1/18/2007
4:00 AM
 




More information about the Mono-devel-list mailing list