Guest User

Untitled

a guest
Jul 2nd, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.30 KB | None | 0 0
  1. Dim objEmail as New MailMessage
  2. objEmail.To="name@domain.net"
  3. objEmail.FROM="name@domain.net"
  4. objEmail.SUBJECT="Subject"
  5. objEmail.BODY="Message body"
  6. objEmail.BodyFormat = MailFormat.html
  7. SmtpMail.SmtpServer = "Your email server"
  8. SmtpMail.Send(objEmail)
  9. Response.write("Your email has been sent")
Add Comment
Please, Sign In to add comment