Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.90 KB | None | 0 0
  1. <%
  2. Set objCDOSYSMail = Server.CreateObject("CDO.Message")
  3. Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
  4.  
  5. objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.paulowindows.uni5.net"
  6. objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 587
  7. objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
  8. objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 30
  9.  
  10. objCDOSYSCon.Fields.update
  11.  
  12. Set objCDOSYSMail.Configuration = objCDOSYSCon
  13. objCDOSYSMail.From = "paulowindows@paulowindows.uni5.net"
  14. objCDOSYSMail.To = "paulo.vinicius@cyberweb.com.br"
  15. objCDOSYSMail.Subject = "Teste"
  16. objCDOSYSMail.TextBody = "123 testando"
  17. objCDOSYSMail.Send
  18.  
  19. set objCDOSYSMail = nothing
  20. set objCDOSYSCon = nothing
  21. response.write "<h1>Mensagem enviada com sucesso!!</h1>"
  22. %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement