[Mono-dev] System.Net.Mail

Damien Churchill damien.churchill at ukplc.net
Thu Jan 18 04:58:33 EST 2007


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Mail.cs
Type: text/x-csharp
Size: 2591 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070118/4b5047f3/attachment.bin 


More information about the Mono-devel-list mailing list