Advertisement
Guest User

Untitled

a guest
Jul 7th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. DO WHILE NOT RS.EOF
  2.  
  3. vMensagem = "Um de seus alertas foi acionado.
  4. Obra: <a href=""http://localhost/Web/system/mostraobra.asp?IDO="&RS.FIELDS("IDO")
  5. &""" target=""_blank""> "
  6. & RS.FIELDS("IDO") &"</a> "
  7. & "</br>"
  8. & "Verifique-a em:
  9. <a href=""http://localhost/Web/system/malerta.asp"" target=""_blank""> Meus alertas </a> "
  10.  
  11. Set Mail = Server.CreateObject("Persits.MailSender")
  12.  
  13. Mail.Host = "smpt.obramix.com.br"
  14. Mail.Username = "obramix@obramix.com.br"
  15. Mail.Password = "Correct pwd in the original file"
  16. Mail.TLS = True
  17. Mail.Port = 587
  18.  
  19. Mail.From = "obramix@obramix.com.br"
  20. Mail.MailFrom = "obramix@obramix.com.br"
  21. Mail.FromName = "obramix@obramix.com.br"
  22. Mail.AddAddress "jbcoli2008@hotmail.com"
  23. Mail.Subject = "Alerta acionado"
  24. Mail.IsHTML = True
  25. Mail.Body = vMensagem
  26.  
  27. On Error Resume Next
  28. Mail.Send
  29. If Err <> 0 Then
  30. Response.Write "Erro encontrado: " & Err.Description
  31. End If
  32.  
  33. Set Mail = Nothing
  34.  
  35. RS.MoveNext
  36. LOOP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement