BookmarkSubscribeRSS Feed
Choose Language Hide Translation Bar
ivan_j_moore

Community Trekker

Joined:

Nov 24, 2014

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?

10 REPLIES 10
ian_jmp

Staff

Joined:

Jun 23, 2011

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" );
ivan_j_moore

Community Trekker

Joined:

Nov 24, 2014

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")

 

markbailey

Staff

Joined:

Jun 23, 2011

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.

Learn it once, use it forever!
markbailey

Staff

Joined:

Jun 23, 2011

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?

Learn it once, use it forever!
markbailey

Staff

Joined:

Jun 23, 2011

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:

 

Capture.PNG

 

I clicked Allow and the mail was sent. The message appeared in my inbox a moment later.

Learn it once, use it forever!
ivan_j_moore

Community Trekker

Joined:

Nov 24, 2014

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.

markbailey

Staff

Joined:

Jun 23, 2011

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)

Learn it once, use it forever!
Highlighted
ivan_j_moore

Community Trekker

Joined:

Nov 24, 2014

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.

 

 

johnmoore

Community Trekker

Joined:

Jun 19, 2014

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 );