Advertisement
liza28

email con

Sep 9th, 2011
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. echo.Dim iMsg > %~n0.vbs
  2. echo.Dim iConf >> %~n0.vbs
  3. echo.Dim Flds, var >> %~n0.vbs
  4.  
  5. echo.Set iConf = CreateObject("CDO.Configuration") >> %~n0.vbs
  6. echo.iConf.Load -1 >> %~n0.vbs
  7. echo.Set Flds = iConf.Fields >> %~n0.vbs
  8. echo.With Flds >> %~n0.vbs
  9. echo. .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 >> %~n0.vbs
  10. echo. .Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "" >> %~n0.vbs
  11. echo. .Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "" >> %~n0.vbs
  12. echo. .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = " >> %~n0.vbs
  13. echo. .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 >> %~n0.vbs
  14. echo. .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465 'NOT 25 OR 587 >> %~n0.vbs
  15. echo. .Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True >> %~n0.vbs
  16. echo. .Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 >> %~n0.vbs
  17. echo. .Update >> %~n0.vbs
  18. echo.End With >> %~n0.vbs
  19.  
  20. echo.Set iMsg = CreateObject("CDO.Message") >> %~n0.vbs
  21. echo.strbody = "See attached" >> %~n0.vbs
  22. echo.With iMsg >> %~n0.vbs
  23. echo. Set .Configuration = iConf >> %~n0.vbs
  24. echo. .To = "" >> %~n0.vbs
  25. echo. .CC = "" >> %~n0.vbs
  26. echo. .BCC = "" >> %~n0.vbs
  27. echo. .From = "" >> %~n0.vbs
  28. echo. .Subject = "" >> %~n0.vbs
  29. echo. .TextBody = strbody >> %~n0.vbs
  30. echo. .AddAttachment "" >> %~n0.vbs
  31. echo. .Send >> %~n0.vbs
  32. echo.End With
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement