.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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -