Use the System.Web.Mail.MailMessage object. This is an example in C# of how to use it, but it should easily convert to VB.NET: MailMessage mail = new System.Web.Mail.MailMessage(); mail.From = ***sender's email address***; mail.To = ***reciever's email address; mail.Subject = ***Subject***; mail.Body= ***some message***; System.Web.Mail.SmtpMail.SmtpServer = ***your email server***; System.Web.Mail.SmtpMail.Send(mail); You can .cc, .bcc, and .attachments, as well. Hope this helps
R
rikpak
@rikpak
Posts
-
how to send mail through vb.net ? -
Stop Word Application programmaticallyI have a process that starts and runs MS Word for about 10 seconds. Sometimes Word seems to hang; it stays open for 'ever'. Is there an way that I can run a process2 independently of process that checks to see if Word is running and if it is, if it has been open for about a minute, and if it has, to stop it? Thanks in advance.