How to send email using tibco mail activity

拥有回忆 提交于 2019-12-10 10:44:30

问题


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

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

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

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?


回答1:


Follow these instructions to use the Send Mail activity over TLS (port 587):

  1. First, retrieve the full certificate chain of the SMTP server. To do so, download an OpenSSL client (e.g. GnuWin32's implementation if you are on Windows), then type:

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

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

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

  3. 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
    

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

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



来源:https://stackoverflow.com/questions/23893424/how-to-send-email-using-tibco-mail-activity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!