[Mono-list] Sending an email

Dick Porter dick@ximian.com
04 Jul 2004 10:41:35 +0100

On Sun, 2004-07-04 at 09:10, Pedro Santos wrote:
> Hello. I am using the SmtpMail class to send an email. However I get
> this exception:
> System.Net.Sockets.SocketException: Connection refused
> in <0x0011b> System.Net.Sockets.Socket:Connect (System.Net.EndPoint)
> in <0x00017> System.Net.Sockets.TcpClient:Connect (System.Net.IPEndPoint)
> in <0x001ff> System.Net.Sockets.TcpClient:Connect (string,int)
> I am using mono and XSP on Mandrake. Is there any requirements to use this class?

Yes.  You need an SMTP server listening on the endpoint you give to

- Dick