简体   繁体   中英

How to send email using tibco mail activity

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?

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 (eg 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM