Author |
|
VTsoftware Newbie
Joined: 17 May 2016
Online Status: Offline Posts: 9
|
Posted: 05 October 2021 at 10:21am | IP Logged
|
|
|
Hi - we use MailBee Objects to send email via SMTP from our application.
One client site is sending from a mailgun smtp relay account, and has reported that emails take almost 2 minutes to send. Using their previous inhouse email account, emails took less than 2 seconds to connect and send, which is what we see for most clients.
With logging turned on, we can see the time from "message has been accepted for delivery by the server" and time to "disconnecting from the server" is a minute or more!
Are there any properties in the mailbee SMTP class we can use to improve/change this behavior, or is this likely a configuration on the mailgun side?
for example:
10:21:57 [MailBee SMTP v9.3.0.258. Registered version]
10:21:57 [Connecting to server smtp.mailgun.org at port 465 using default domain]
10:21:57 [Initiating SSL Connection]
10:21:57 [Domain not specified, using local host name]
10:21:57 [Entering ESMTP authentication mode]
10:21:57 [Sending EHLO]
10:21:57 [Using LOGIN ESMTP authentication]
10:21:57 [Sending encoded UserName]
10:21:57 [Sending encoded Password]
10:21:57 [Authenticated]
10:21:57 [Preparing message]
10:21:57 [Sending the message over SMTP]
10:21:57 [Searching message for sender's and recipients' addresses]
10:21:57 [Sender: xxxxxxxxxxxxxxxxx]
10:21:58 [Recipient: xxxxxxxxxxxxxxxxx]
10:21:58 [The recipient was accepted]
10:21:58 [Recipient: xxxxxxxxxxxxxxxxxxxxxxxx]
10:21:58 [The recipient was accepted]
10:21:58 [Sending DATA command: DATA\r\n]
10:21:58 [Sending data chunk]
10:21:58 [Sending final data chunk]
10:21:58 [Message data sent]
10:21:58 [The message has been accepted by the server for delivery]
10:23:01 [Disconnecting from the server]
10:23:01 [Connection closed]
thanks!
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 06 October 2021 at 3:18am | IP Logged
|
|
|
Hi,
"The message has been accepted by the server for delivery" is the last log message generated by Send method. After that the method simply exits.
"Disconnecting from the server" is the first message in Disconnect method.
I mean there is nothing MailBee does in between.
SMTP.Send, ends with [The message has been accepted by the server for delivery]
...
SMTP.Disconnect, starts with [Disconnecting from the server]
So I guess "..." is your code.
Regards,
Alex
|
Back to Top |
|
|
VTsoftware Newbie
Joined: 17 May 2016
Online Status: Offline Posts: 9
|
Posted: 06 October 2021 at 9:31am | IP Logged
|
|
|
Yes, it turned out an end user had switched on the IMAP setting to "save sent emails" -- the smtp relay service does not support IMAP, and the delay was that failed IMAP connection attempt. We never noticed that IPMA setting had changed when were troubleshooting.
Appreciate your quick response.
|
Back to Top |
|
|