How to JSL script an e-mail to my gmail account.Trying to use JSL to send out an email with a data table and some graphs.
Currently using JMP 14 and GMAIL account which are both (64 bit).
When I use this piece of script: Mail( "test@example.com", "revelation", "JMP is great.", "$Sampled/Big Class.JMP" );
I get the following error in the logs:
Send mail failed. mail problem in access or evaluation of 'Mail' , Mail/*###*/("testable.com", "revelation", "JMP is great.", "$Sampled/Big Class.JMP"),
Can somebody help or had a similar issue?
Re: How to JSL script an e-mail to my gmail account.Hi Mark,
is it possible to script to select "Allow" without human interaction?
Re: How to JSL script an e-mail to my gmail account.I had an issue with this also. I asked a JMP contact that I have and that person was able to confirm that they had the same issue. This helps to rule this out as an issue with the mail client. (By the way, we were both using Outlook on Windows machines.) I emailed JMP Tech Support and a case was created (7612824569). That case is currently being worked.
Re: How to JSL script an e-mail to my gmail account.Hi John,
Thanks for this I had tried this also.
Just I was trying to Script in order to send out e-mails automatically , web mail function I believe you still have to press the send button.
Also would like to add attachments which cannot be done in the web mail function, I believe.
Tomorrow I am going to install "Outlook" to link up my g-mail account then try the mail () function.
Let you know how I get on.
Re: How to JSL script an e-mail to my gmail account.Ivan,
I had a similar issue a few years ago. Here is how I got around it.
MailToString = "mailto:" || emailAddress;
Web( MailToString );
Re: How to JSL script an e-mail to my gmail account.Hi all,
Thanks for the help, I will leave a message with JMP Support.
Re: How to JSL script an e-mail to my gmail account.Well now we know that the problem has something to do with your mail client. I would contact JMP Technical Support for help (support@jmp.com)
Re: How to JSL script an e-mail to my gmail account.Hi Mark,
Thanks for the reply.
I am still having problems though.
I ran this as copied from our message:
Mail(
"ivan.j.moore@seagate.com",
"Test of Mail Client",
"Hope you get my letter!"
);
But still get this error message:
Send mail failed.
mail problem in access or evaluation of 'Mail' , Mail/*###*/("ivan.j.moore@seagate.com", "Test of Mail Client",
"Hope you get my letter!")
In the following script, error marked by /*###*/
Mail/*###*/("ivan.j.moore@seagate.com", "Test of Mail Client",
"Hope you get my letter!")
The company uses Google Chrome to access the Gmail account, unless this is the problem, is there anything else I could try ?
Any help appreciated.
Re: How to JSL script an e-mail to my gmail account.As for the path, you have to replace the path variable with its value. Like this:
Mail(
"ivan.j.moore@seagate.com",
"revelation",
"JMP is great.",
Get Path Variable( "$SAMPLE_DATA" ) || "Big Class.JMP"
)
You can evaluate the fifth line alone to see what value it returns. That result will be the fourth argument to the Mail() function.
Re: How to JSL script an e-mail to my gmail account.I just ran this script:
Mail(
"mark.bailey@sas.com",
"Test of Mail Client",
"Hope you get my letter!"
);
I got an alert from Microsoft Outlook, the default mail client on my work computer:

I clicked Allow and the mail was sent. The message appeared in my inbox a moment later.
Re: How to JSL script an e-mail to my gmail account.JMP uses your default mail client. What do you use to access your Gmail email? Outlook? Web page?
Re: How to JSL script an e-mail to my gmail account.Hi Ian,
Sorry still getting the same message:
Send mail failed.
mail problem in access or evaluation of 'Mail' , Mail/*###*/("ivan.j.moore@seagate.com", "revelation", "JMP is great.",
"$SAMPLE_DATA/Big Class.JMP")
In the following script, error marked by /*###*/
Mail/*###*/("xxxxx.x.xxxxx@seagate.com", "revelation", "JMP is great.",
"$SAMPLE_DATA/Big Class.JMP")
Re: How to JSL script an e-mail to my gmail account.Looks like the path to the 'Big Class' file isn't quite right. Please try:
Mail( "test@example.com", "revelation", "JMP is great.", "$SAMPLE_DATA/Big Class.JMP" );