auto attaching an Attachment (Email)

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
KennyR
Posts: 256
Joined: Thu Jan 19, 2012 4:25 am

auto attaching an Attachment (Email)

Post by KennyR » Sat Jan 26, 2013 2:00 am

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?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: auto attaching an Attachment (Email)

Post by Mark » Sat Jan 26, 2013 2:31 am

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: auto attaching an Attachment (Email)

Post by Simon » Sat Jan 26, 2013 2:32 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

KennyR
Posts: 256
Joined: Thu Jan 19, 2012 4:25 am

Re: auto attaching an Attachment (Email)

Post by KennyR » Sat Jan 26, 2013 3:05 am

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.

Post Reply