Is it possible to receive mail send response from java using TCP/IP protocall? - jakarta-mail

I want to test mail sending. As TCP/IP protocall may be supported to give a response of sent mail, I want to know about is there any library to use it?

I don't think you understand how email works. TCP/IP is used to send the message from your application to your mail server. Your mail server then forwards the message to other mail servers, which ultimately deliver the message to the recipient. There's no end-to-end TCP connection between your application and the recipient's mail server. JavaMail will tell you whether whether the message was accepted by your mail server, but not whether it was delivered by the recipient's mail server.
There's more information in the JavaMail FAQ.

Related

SQL Server 2016 O365 SMTP "Failure sending mail" intermittently?

We have had a recurring problem since about October, where our emails through our SQL 2016 database will intermittently fail throwing this error:
Message The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 3. Exception Message: Cannot send mails to mail server. (Failure sending mail.).
Again, some emails are successfully delivered on the first try, others are delivered on the 2nd try, and some fail to be delivered on both attempts.
We are using smtp.office365.com port 587 with basic authentication, SSL checked.
TLS 1.2 is enabled and showing correctly in email headers, but I am unable to see the cause as to why some emails are failing to go out, while others are successful.
I see no packet loss to the office smtp IP during one of these failures either. The server itself is updated to the most recent .NET framework as well.
Apologies if this information is inadequate, I am not too familiar with this whole concept and trying to learn as I go.

How to send latest extent reports through mail without using Jenkins, I am always getting the previous mail instead of latest generated mail?

I have tried sending reports through mail extent report and emailable report but it's always sending the previous report. I have to send mail through my local system.
You can use SMTP protocol, to send mail from Local System . You can use Google SMTP IP and Port.
The SMTP password is the same as your web password, unless you are using 2SV.
Use smtp.gmail.com, port 465, SSL or port 587/STARTTLS.

Why i can not send email in sql server?

I'm try to send email with sql server ,for that purpose config with this way smtp:
Outgoing mail server(SMTP)
___________________________________ E-mail address:myEmail#gmail.com DisplayName:behzad ServerName:smtp.gmail.com PortNumber:587
Enable:This server requeires a secure connection (SSL)
____________________________________ SMTP Authentication - Basic Authentication UserName:myEmail#gmail.com Password:my Email Password
But when try to send simple mail get this error: The mail could
not be sent to the recipients because of the mail server failure.
(Sending Mail using Account 2 (2017-04-05T10:57:35). Exception
Message: Cannot send mails to mail server. (The SMTP server requires a
secure connection or the client was not authenticated. The server
response was: 5.5.1 Authentication Required. Learn more at).
read any help on internet and enable two step verification gmail and...
but so get that error.How can i solve that problem?thanks.

SQL Server DB mail Server Failure

I have a SMTP server by using which I was smoothly sending e-mails using sp db_mail.But now I am not able to send any DB mail using the same profile, all the configuration from SQL Server is fine, but instead getting the following message in Error log
Message
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 2 (2016-04-21T04:09:58). Exception Message: Cannot send mails to mail server. (Failure sending mail.).
)
P.S. By using the same SMTP server, I am able to send Mails from another IP.
The telnet thing is getting aborted when I tried it from the command line.
Any ideas?

Connection to Exchange mail server refused using IMAP

I have a bit of jave code which is successful in connecting to a mail server using IMAP. However when trying to connect to the MS Exchange server at client site I am receiving "connection refused.
Is it possible that the exchange server is able to refuse connections not being made via the Outlook client?
More likely the Exchange server doesn't have IMAP support enabled, which is why the machine (not the server) is refusing the connection.

Resources