Javascript 有没有办法通过点击按钮从Spotfire发送电子邮件?

Javascript 有没有办法通过点击按钮从Spotfire发送电子邮件?,javascript,r,email,ironpython,spotfire,Javascript,R,Email,Ironpython,Spotfire,我正在寻找一个选项,以发送电子邮件形式的按钮点击在spotfire文本区使用铁python (或) 我们可以在IronPython和自动化服务的帮助下实现同样的功能吗 (或) 有没有一种方法可以通过R编程来完成 import clr clr.AddReference("Microsoft.Office.Interop.Outlook") from System.Runtime.InteropServices import Marshal mail= Marshal.GetActiveObje

我正在寻找一个选项,以发送电子邮件形式的按钮点击在spotfire文本区使用铁python

(或)

我们可以在IronPython和自动化服务的帮助下实现同样的功能吗

(或)

有没有一种方法可以通过R编程来完成

import clr
clr.AddReference("Microsoft.Office.Interop.Outlook")
from System.Runtime.InteropServices import Marshal


mail= Marshal.GetActiveObject("Outlook.Application").CreateItem(0)
mail.Recipients.Add("abc@xyz.com")
mail.Subject = "subject here"
mail.Body = "Body here"
mail.Send();

上述代码用于发送电子邮件,在spotfire客户端中工作正常,但在web player中工作不正常。请帮助我解决此问题。

您可以使用mailR软件包触发电子邮件。这对我来说很有用-

sender <- "sender@gmail.com" 
recipient<- "receiver1@gmail.com" 
email <- send.mail(from = sender,to = recipients,subject="R-email",body = 
"Body of the email",smtp = list(host.name = "smtp.gmail.com", 
user.name="myuser@gmail.com",passwd="password",port=587,ssl=TRUE),authenticate 
= TRUE,send = FALSE)
email$send() 

发件人感谢您的评论@scsimon,我并不完全希望完全依赖自动化服务。当用户单击文本区域中的链接/按钮时,是否有发送电子邮件的方法。或者,当单击链接或按钮时,是否有方法触发自动化服务