.net - How to Sending an email from vb.net console application when a process fails -
i using gmail account send email...when process fail...like
dim simplesmtp new smtpclient("smtp.gmail.com") simplesmtp .port = 587 .enablessl = true .credentials = _ new networkcredential("mytest@gmail.com", "passtest") .send(anemailmessage) end
i want replace snippet real smtp details...ussmtp.mysite.com how it?
you change url "smtp.gmail.com"
"ussmtp.mysite.com"
, make sure port appropriate, , setup credentials needed.
otherwise, code written should work smtp server.
Comments
Post a Comment