General
cancel
Showing results for 
Search instead for 
Did you mean: 

Looking 4 script to mail mult files while using Include MIME option

SOLVED
Go to solution
Rita C Workman
Honored Contributor

Looking 4 script to mail mult files while using Include MIME option

I need to send a bunch of files (various name) and email them as attachments daily. I'd like to automate this, but I'm having trouble with the syntax.
I want to use the [include $dir/$files app/msword base64].
But I'm having trouble working out the syntax....
Usually I send constant name reports with multiple include statements in the one include/dummy file. But now I need to send daily an undertermined # of files with a variety of names....
I've been working a script to do this, but so far I'm bombing out...

Anybody doing anything like this? I'm open to any suggestions...I think I'm just brain-fried..

Thanks,
Rita
6 REPLIES
Paula J Frazer-Campbell
Honored Contributor

Re: Looking 4 script to mail mult files while using Include MIME option

Hi Rita
I am not to hot on scripting but how about putting your file path/name into a a reference file and do a multiple stepped hit on it for your mail out.

Just an idea.

Paula

If you can spell SysAdmin then you is one - anon
Rita C Workman
Honored Contributor

Re: Looking 4 script to mail mult files while using Include MIME option

Hi Paula,

Thanks for the response. It was late yesterday and I was tired-couldn't 'think' anymore. But on the commute home I figured it out....dialed in/keyed and tested it. I got the job to run produce the files, set up my Include with the path/ info and send all of them in one email. Basically, I did what you just suggested.

Thanks again !
Rita C Workman
Honored Contributor

Re: Looking 4 script to mail mult files while using Include MIME option

Wish I could give myself points on this one...


ha ha ha ha
Paula J Frazer-Campbell
Honored Contributor
Solution

Re: Looking 4 script to mail mult files while using Include MIME option

Hi Rita

I herby award you 10 virtual points for your solution.

Paula
If you can spell SysAdmin then you is one - anon
Rita C Workman
Honored Contributor

Re: Looking 4 script to mail mult files while using Include MIME option

Thank you thank you thank you......

Stefan would be so happy to see points being assigned.

And just in case anyone else need to do something like this I am attaching the basic syntax on doing this.
We like the Include file for emailing reports...and so do some others - they may find this handy. It ain't fancy, but it works..

Regards,
rcw
Rita C Workman
Honored Contributor

Re: Looking 4 script to mail mult files while using Include MIME option

Just went back and checked my attch'd file...(dah..after I sent it ..dah)

on the line print "[include...] >>
it should read
print "[include.......]" >> /home/rw../dummy/jmailer

Sorry folks,