Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: very slow to disconnect from server Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
VTsoftware
Newbie
Newbie


Joined: 17 May 2016
Online Status: Offline
Posts: 7
Posted: 05 October 2021 at 10:21am | IP Logged Quote VTsoftware

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 View VTsoftware's Profile Search for other posts by VTsoftware
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2158
Posted: 06 October 2021 at 3:18am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 
VTsoftware
Newbie
Newbie


Joined: 17 May 2016
Online Status: Offline
Posts: 7
Posted: 06 October 2021 at 9:31am | IP Logged Quote VTsoftware

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 View VTsoftware's Profile Search for other posts by VTsoftware
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide