'ello Dudes
I have just done a script to send an email containing a txt file using blat.exe, everything sends fine but no document is attached.. the script is below
Code:
Break on
$mailhost = 'mailserver'
$Attachment1 = '"%systemdrive%\temp\IE6Upgrade.txt"'
$Attachment = "c:\temp\SP6Upgrade.txt"
$sender = 'aaron.shaw@@neverumind.co.uk'
$recipient= 'Uber@@neverumind.co.uk'
$mailLine = 'C:\temp\blat.exe $Attachment -to $recipient -server $mailhost -subject "Please Update" '
$mailLine = $mailLine+'-body "blah ablah balajsdsd" -f $sender -q'
Shell $mailLine
Doesnt work or does
Code:
Break on
$mailhost = 'mailserver'
$Attachment1 = '"%systemdrive%\temp\IE6Upgrade.txt"'
$Attachment = "c:\temp\SP6Upgrade.txt"
$sender = 'aaron.shaw@@neverumind.co.uk'
$recipient= 'Uber@@neverumind.co.uk'
$mailLine = 'C:\temp\blat.exe c:\temp\SP6Upgrade.txt -to $recipient -server $mailhost -subject "Please Update" '
$mailLine = $mailLine+'-body "blah ablah balajsdsd" -f $sender -q'
Shell $mailLine
Can anyone see anythign wrong with it...im scratching my head... Outlook doesnt appear to be doing anything odd...have tested with outlook 97 and 2003
Cheers
A
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields