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%
Email Attachement
Moderators: JRL, Dorian (MJT support)
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
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]
[email protected]
-
- Pro Scripter
- Posts: 68
- Joined: Wed May 04, 2005 10:24 pm
Thanks
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.