Maybe a little more help on this?
When I enter a complete path into the @SendMail code to attach a jpg, the email works great. If I use a variable and place it in the same location, the email never gets received. I don’t know if it gets sent.
For example, this works:
……."writer@NotReallyAServer.com, "", "Hey guys, how are you?", "", "", "C:\my.jpg")
This does not work:
……."writer@NotReallyAServer.com, "", "Hey guys, how are you?", "", "", vPath)
While playing around with it, I added this: ,"" to the code so that it looks like this:
……."writer@NotReallyAServer.com, "", "Hey guys, how are you?", "", "", "", vPath)
With this I receive two emails, one with the attachment and one without. The one with the attachment has the attachment scaled down in size to about 20% of the original and cannot be opened.
Any ideas on how to get it to accept the variable?
Thanks.
|