Message Posted July 4, 2005 Author Posted July 4, 2005 I see I can't work with the VBS. The Name of the file is always different
MSLx Fanboy Posted July 4, 2005 Posted July 4, 2005 That's what AutoIt is for. Write the VBS File (FileWriteLine) and use variables. Then just do Run(@COMSPEC & " /c cscript myvbsfile.vbs", "", @SW_HIDE) I believe its cscript, else I think it might be wscript(?) Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
Message Posted July 4, 2005 Author Posted July 4, 2005 Ok and what can I do when my smtp server needs username + password?
MSLx Fanboy Posted July 4, 2005 Posted July 4, 2005 (edited) Sorry, I thought I gave you that version. Here's the configuration fields for basic authentication .Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 .Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $smtpserver .Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 .Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $smtpuser .Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $smtppass .Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 .Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 You might have to do a small tweak to it, as it is from an AutoIt script (remember, the fileattach doesn't work, else I'd give it to you) Edited July 4, 2005 by MSLx Fanboy Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
MSLx Fanboy Posted July 4, 2005 Posted July 4, 2005 (edited) Here's what I have for you so far, I'll finish it in a while... Removed file...maybe a slight security oopsy :"> Edited July 4, 2005 by MSLx Fanboy Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
jreardon Posted December 21, 2009 Posted December 21, 2009 This script kicks ass! Thank you. Now can we modify it for more than one attachment? Using it to send log files.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now