Subscribe Bookmark RSS Feed

Automate emails to send graphs

perplexeddev

Community Trekker

Joined:

Apr 28, 2016

I have a JMP file to build graphs. I copy these graphs and send them to others daily via email. Is there a way I can automate this procedure, to run the script daily and send the graphs results via email?

3 REPLIES
ian_jmp

Staff

Joined:

Jun 23, 2011

You should be able to use the 'Mail()' function. Look at 'Help > Scripting Index' and search for this.

perplexeddev

Community Trekker

Joined:

Apr 28, 2016

I have multiple graphs created from the same data table, how can I send all these graphs as a single email? I could n't get that information from Help.

Nate_Riordan

Staff

Joined:

Sep 10, 2015

Depending upon the complexity of your analysis and the different things you are gluing together there may be simple ways or slightly more complex ways.  You could consider saving each of the files individually as the mail function supports sending multiple attachments.

mail("address","subject","message", {"fileList1", fileList2"})

If you want a single file you will need to get all the graphs into a single window first.  This may be as simple as using a by group if they're all the same type of output and then saving that as a file to mail.  Or you may need to save each report and use the display box trick noted here from Craige@JMP​ that way you can use New Window("title", platform1displayBox, platform2displayBox ...).