Email Attachement

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
macrunning
Pro Scripter
Posts: 68
Joined: Wed May 04, 2005 10:24 pm

Email Attachement

Post by macrunning » Wed Oct 26, 2005 9:16 pm

Hello. I am trying to attach a file to be sent via email using the
"SMTPSendMail>" function.
Maybe someone can tell me why the script will not send the attachement.
And yes the file is in the correct location with the correct name.

Heres what I have:
Day>the_day
Month>the_month
Year>the_year
Let>SMTP_AUTH=1
Let>SMTP_USERID=[email protected]
Let>SMTP_PASSWORD=password
Let>SENDMAIL_STATUS=1
Let>subject=Dealer ID: 621910
Let>me=[email protected]
Let>myname=Dealer
Let>recipients=[email protected]
Let>body=Inventory
SMTPSendMail>recipients,mail.mymailserver.com,me,myname,subject,body, C:\Documents and Settings/User/Desktop/new_veh_%the_month%%the_day%%the_year%.csv
Message>Result of SendMail: %SMTP_RESULT%

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Oct 26, 2005 9:25 pm

You have a space before the path, after Body. You also have the wrong type of slashes (not sure it matters). Your SMTP line should be:

SMTPSendMail>recipients,mail.mymailserver.com,me,myname,subject,body,C:\Documents and Settings\User\Desktop\new_veh_%the_month%%the_day%%the_year%.csv
MJT Net Support
[email protected]

macrunning
Pro Scripter
Posts: 68
Joined: Wed May 04, 2005 10:24 pm

Thanks

Post by macrunning » Wed Oct 26, 2005 9:33 pm

Thanks for the help. Of course it was something so silly as a tiny extra little space. Gosh it's funny when you stare at something for so long to try and figure out the mistake, how you can still miss it.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts