Actually I solved the problem another way. I ended the script with EditMessage commad. This is better since it allows the user the opportunity to review and/or change it before it is blasted off into cyper space. After they review it, they simly hit "Send" ( from the program's compose mode mode) and the email goes thru just fine.
Here's my complete script which, by the way, is run by an Access macro using the command line poco.exe /r "SendCDInewData" That same macco also freshens up the attached spreadsheet. Cool.
Thanks for your quick responses.
<snip>
- Code: Select all
{Start an email
createmessage %CDIemail
[Write Subject & TO in header
SetHeader %CDIemail "Subject:" "Latest and Greatest Data on RMVR Drivers"
SetHeader %CDIemail "To:" "r.alder@earthlink.net"
{write text for body of email
AssignBody %CDIemail "Please save this file in the folder where you always save this file (My Documents is fine). If you spot that I've not entered any recent changes from you, please let me know so I can correct them. Many thanks. Diane Hively"
{attach a file
set $p "c:\rmvrsys\CDI-Lic-Data.xls"
attachfile %CDIemail $p
EditMessage %CDIemail
exit
~ Added Code tags + removed personal info ... Eric ~