I'm using Fast Report 5 and Rad Studio Seattle and trying to send report via gmail smtp host by using Fast Report's mail export object. when i try either of the ports (465 and 587) i get an error "530. 5.7.0 must issue a STARTTLS command first". If i use a different smtp server with different settings, the report is mailed successfully.
SMTP TfrxMailExport doesn't supports SSL. Use TfrxMailExport with MAPI or MSOutlook option (mail client should be installed, configured and runned)
Related
I want to Send email in Jenkins from outlook and I have given all the setting to jenkins like smtp of outlook, smtp port number etc but still i can't send email but with gmail account I'm able to send email from jenkins.
Here is the Image of setting I used
Note: I run Jenkins Using Command java -jar jenkins.war
Here is the Error i get
Error I get
Error with TLS setting
Activate TLS as it is described on the microsoft website.
SMTP server name smtp.office365.com
SMTP port 587
SMTP encryption method STARTTLS
To activate STARTTLS start jenkins like this:
java -Dmail.smtp.starttls.enable=true -jar jenkins.war
I'm trying to send email with TIdSMTP, Indy10, using the Office365.com server
from a Windows service application.
I use:
Server name: smtp.office365.com
Port: 587
Encryption method: STARTTLS
I use 1.0.2 version of libeay32.dll and ssleay32.dll.
They are located in the same directory with the application.
If the windows service application runs under the "Local System Account" credentials, I receive the "Invalid domain name [xxxx.xxxx.OUTLOOK.COM]" error message.
If the application runs as an application or as a Windows service, but with a user's credentials the email is transmitted.
What could it be?
Thanks,
Tiberiu Stoicescu
I am unable to get Jenkins to build based on an email using the poll-mailbox-trigger plugin
My setup in E-mail Notification is as follows
SMTP server: myExchangeServerHostName
Default user e-mail suffix: #companyName.com
Use SMTP Authentication: True
User Name: DOMAIN\user
Password: aboveUserPassword
Use SSL: False
SMTP Port: 587
Reply-To Address:
Charset: UTF-8
From here I can successfully send a test email to myself and I receive it.
In my build the Poll Mailbox Trigger settings are as follows
Host: myExchangeServerHostName
Username: DOMAIN\user
Password: aboveUserPassword
Advanced Email Properties:
mail.imaps.port=587
mail.imap.ssl.enable=true
mail.imap.starttls.enable=true
Schedule: H/5 * * * *
When Testing this connection I get
Connecting to the mailbox...
Error : javax.mail.MessagingException: Unrecognized SSL message, plaintext connection?;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:665)
I have tried
mail.imap.ssl.enable=false
using the email address instead of the domain\user
adding mail.imaps.ssl.trust=*
None of the above seem to make any difference.
SMTP protocol is for sending and relaying mails. With this protocol one cannot retrieve mails from a particular mailbox. Whereas IMAP and POP3 protocols can retrieve mails.Therefore you will have to obtain access to the IMAP or POP3 server in order to retrieve mails. The poll mailbox trigger plugin of jenkins tries to connect to mailbox via IMAP store. If the mail server is using HTTPS protocol like in an Exchange server, you can write a powershell utility using Microsoft EWS managed api, to retrieve mails and plug that utility into jenkins. Also, Powershell scripts can be included in batch scripts as well which can then be included in jenkins.
The problem might relate to the certificate on the mail server (self signed one, and not recognized by Jenkins and the plugin), so registering the certificate to your trustStore would help.
I found 2 working solutions:
Add the certificate of your mail server, following 'Highway of Life' instruction in Jenkins "unable to find valid certification path to requested target" error while importing Git repository
Change trustStoreType to Windows-Root so Jenkins would use the same certificate source as your browser, answer from 'Nux' here, How to configure trustStore for javax.net.ssl.trustStore on windows?
Note: solution 1), there were same answer but exporting the certificate from browser instead of using 'openssl', somehow it did not work for me or I did it wrong. So you may try both.
Is it possible to use microsoft exchange server for email notifications in jenkins?
I have provided exchnage server name as smtp server, authentication details, selected ssl and added below argument to the command line
-Dmail.smtp.starttls.enable=true
but still getting the error javax.mail.MessagingException: Could not connect to SMTP host.
I have a rails app deployed on Google Compute Engine.
Everything works fine and it requires to send mail in application so I follow this link for sending mail it works on local but I am unable to send mail through mandrill smtp settings.
I always get Timeout::Error (execution expired) error message, what could be the reason??
Any idea on what's could be the problem?
Google Compute Engine does not support outbound TCP connections on port 25. Instead you can use port 2525 that Mandrill also supports.