Thursday, March 22, 2012

smtpmail and smtpclient

when smtp server is not specified, SmtpMail uses the CDO.Message to send email i believe?

what's the equivalent in SmtpClient for sending email without specifying smtp host?

I believe that if you dont specify the host it may just try to use localhost or 127.0.0.1..

But you should always specify the host...why would you not want to?


unfortunately i am converting a large web app from 1.1 to 2.0, System.Mail.Web is no longer supported, and some other developers have been using SmtpMail without specifying smtp server.

with SmtpClient, a smtp server must be specified, I could use "127.0.0.1", that I know for sure uses localhost's SMTP service, which I am not sure if it'll be installed.

so what i need to find out is whether SmtpClient with "127.0.0.1" breaks any existing logic.

tell them to specify the server...

I'm not sure I follow what the problem is... it sounds like you are trying to bypass a required setting...

0 comments:

Post a Comment