[Mono-list] Sending an email

Jonathan Stowe mono-list@lists.ximian.com
Mon, 05 Jul 2004 11:09:45 +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?
> 

By default you need to be running an SMTP server on your local machine
or you need to set the appropriate server through the
System.Web.Mail.SmtpMail.SmtpServer.

/J\