Page 1 of 1

auto attaching an Attachment (Email)

Posted: Sat Jan 26, 2013 2:00 am
by KennyR
I am having issues with auto attaching an attachment when generating a new email. My program is a simple form that the user saves as a .PDF to the same location every time with the same file name and extension. I would like to have the saved .PDF automatically placed in the body of the email so all the user has to do is click send. I have the specialFolderPath as follows:

put specialFolderPath("documents") & "/CheckList.pdf" into tPDFPath

then this for opening a new email to be sent:

revMail "someone@jcas.net",, vCombo, "attachment Here"

"vCombo" is a variable that I have set up to automatically populate the subject field....

I am not sure how to go about telling revMail how to attach the saved file to the message....any ideas?

Re: auto attaching an Attachment (Email)

Posted: Sat Jan 26, 2013 2:31 am
by Mark
Hi Kenny,

You can do this with Automator, but this isn't an ideal solution.

What about uploading the attachment to your server and including the name or number of the upload in the e-mail?

Kind regards,

Mark

Re: auto attaching an Attachment (Email)

Posted: Sat Jan 26, 2013 2:32 am
by Simon
This topic is discussed a lot in this forum:
http://forums.runrev.com/phpBB2/viewtop ... ttachments
Not as simple as you may want, it's more then revMail.

Simon

Re: auto attaching an Attachment (Email)

Posted: Sat Jan 26, 2013 3:05 am
by KennyR
thanks guys....I will kick this around a bit and see what happens...I like the idea of uploading the doc to my server and placing a reference number for download...that might work too...I was just hoping there was a bit of code I could generate that would allo revMail to attach the file to the default mail client.