by Sei-I-Tai Shogun: Blackbrunei (1 Submission)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 20th February 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Send an email in .net
mail.From = "sender adress"
mail.To = "target adress"
mail.Body = "content"
mail.Subject = "subject of mail"
mail.Attachments.Add(New System.Web.Mail.MailAttachment("path to a file"))
System.Web.Mail.SmtpMail.SmtpServer = "your mail server"
System.Web.Mail.SmtpMail.Send(mail)