如何使用Tibco邮件活动发送电子邮件 [英] How to send email using tibco mail activity

查看:214
本文介绍了如何使用Tibco邮件活动发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是TIBCO的初学者.我想使用tibco邮件活动发送电子邮件.以下是我对发送邮件活动的配置

I am a beginner is TIBCO.I want to send email using tibco mail activity.Following are my configuration of send mail activity

主机: smtp.gmail.com:587 选择验证复选框 然后在用户名字段中输入我的gmail用户名,并在密码中输入我的gmail密码.

host: smtp.gmail.com:587 selected the authenticate check box then in username field entered my gmail username and in password entered my gmail password.

在输入选项卡中提供了有效的地址,主题和正文.当我运行时,出现以下错误

and in the input tab provided the valid to address,subject and body.When I run then I get the following error

[Sender.process/Send Mail]中的BW-MAIL-100019 Job-10000错误 发送邮件错误.原因:com.sun.mail.smtp.SMTPSendFailedException:530 5.7.0必须首先发出STARTTLS命令. nx12sm74930440pab.6-gsmtp

BW-MAIL-100019 Job-10000 Error in [Sender.process/Send Mail] Error sending mail message. Cause: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. nx12sm74930440pab.6 - gsmtp

我也通过更改主机来进行检查,例如 smtp.gmail.com:25 ,但仍然是相同的错误.请问有什么机构可以告诉我我在做什么错吗?

I have also checked by changing the host like this smtp.gmail.com:25 but still the same error.Can any body please tell me what wrong am I doing?

推荐答案

请按照以下说明在TLS(端口587)上使用发送邮件"活动:

  1. 首先,获取SMTP服务器的完整证书链.为此,请下载OpenSSL客户端(例如,如果您使用的是Windows,则为 GnuWin32的实现),然后输入:

openssl s_client -showcerts -connect smtp.gmail.com:587 -starttls smtp

应该显示PEM格式的证书列表.将每个文件复制到扩展名为.cert的单独文件中(或将所有文件复制到一个文件中),然后将这些文件添加到BW项目中的任何文件夹中.请注意,链中缺少根CA证书;您可以此处下载并将其添加到certs文件夹中.如果希望通过BW_GLOBAL_TRUSTED_CA_STORE全局变量(请参阅BW文档)在项目外部管理证书,也可以使用外部文件夹.

A list of PEM-formatted certs should show up. Copy each of them in a separate file (or all of them in a single file) with extension .cert and add those files to any folder in your BW project. Please note that the root CA certificate is missing from the chain; you can download it here and add it to the certs folder. You can also use an external folder if you want the certs to be managed outside your project by using the BW_GLOBAL_TRUSTED_CA_STORE global variable (see BW documentation).

在发送邮件"活动上,将 Host 字段设置为smtp.gmail.com:587.

On the Send Mail activity, set the Host field to smtp.gmail.com:587.

如果使用的是BW 5.8或更低版本,请将以下Java属性添加到应用程序的TRA:

If using BW 5.8 or below, add the following Java properties to the TRA of your application:

java.property.mail.smtp.starttls.enable=true
java.property.mail.smtp.starttls.required=true

如果使用的是BW 5.10或更高版本,请选中 SSL 框,然后将 Trusted Certificates Folder 指向您的certs文件夹.

If using BW 5.10 or above, check the SSL box and make the Trusted Certificates Folder point to your certs folder.

选中 Authenticate 框,并使用您的Google凭据设置用户名(xxxx@gmail.com)和密码字段.

Check the Authenticate box and set the User Name (xxxx@gmail.com) and Password fields with your Google credentials.

这篇关于如何使用Tibco邮件活动发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆