Advertisement
mprz-vt

SendEmail

May 10th, 2023
178
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         Dim mail_send As New System.Net.Mail.MailMessage()
  2.         mail_send.From = New System.Net.Mail.MailAddress(correo_serv)
  3.         mail_send.Subject = "Recupera tu cuenta OPDAPAS"
  4.         mail_send.To.Add(email)
  5.         mail_send.IsBodyHtml =true
  6.         mail_send.Body = body_mail
  7.  
  8.         Dim Servidor As New System.Net.Mail.SmtpClient
  9.         Servidor.Host = serv_smtp
  10.         Servidor.Port = puerto_serv
  11.         Servidor.EnableSsl = False
  12.         Servidor.Credentials = New System.Net.NetworkCredential(correo_serv, pass_serv)
  13.         Servidor.Send(mail_send)
Advertisement
Comments
  • mprz-vt
    362 days
    Comment was deleted
Add Comment
Please, Sign In to add comment
Advertisement