System.net.Mail default smtp host
-
i was using the old system.web.mail classes. and try to sent emails with net.mail, but i get an exception: System.Net.Mail.SmtpFailedRecipientException was unhandled by user code Message="Mailbox unavailable. The server response was: 5.7.1 Unable to relay for bla@bla.bla" host property of SmtpClient must be set up! but what is default smpt host? is it "localhost"? i get an exception if i use it. if i use this code it work for me (System.Web.Mail): SmtpMail.SmtpServer = null; SmtpMail.Send(mail); because the name of the local SMTP server is used!!!!!! WHAT NAME IS IT? how can i find it out? i need the name to set the property Host of SmtpClient (System.Net.Mail). thanks thank u for ur advice
-
i was using the old system.web.mail classes. and try to sent emails with net.mail, but i get an exception: System.Net.Mail.SmtpFailedRecipientException was unhandled by user code Message="Mailbox unavailable. The server response was: 5.7.1 Unable to relay for bla@bla.bla" host property of SmtpClient must be set up! but what is default smpt host? is it "localhost"? i get an exception if i use it. if i use this code it work for me (System.Web.Mail): SmtpMail.SmtpServer = null; SmtpMail.Send(mail); because the name of the local SMTP server is used!!!!!! WHAT NAME IS IT? how can i find it out? i need the name to set the property Host of SmtpClient (System.Net.Mail). thanks thank u for ur advice
http://www.systemwebmail.com/[^] Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://deepak.blogdrive.com/