Jump to content

Forum loads very slow when mails have to be sent


Guest WinFuture

Recommended Posts

We have our own SMTP-Mailserver and it is not very fast. So, when am member registers or a post is written, where a notification-mail has to be sent, it takes a lot of seconds to load the next page. Is there a way to send the mails "in the background", so that the forum can go on with the redirect to the next page?

Link to comment
Share on other sites

We have our own SMTP-Mailserver and it is not very fast. So, when am member registers or a post is written, where a notification-mail has to be sent, it takes a lot of seconds to load the next page. Is there a way to send the mails "in the background", so that the forum can go on with the redirect to the next page?




Have you tried changing the email settings in the ACP to use php mail() and not SMTP.
Link to comment
Share on other sites

That's likely the majority of the problem. It's having to connect to the external mailserver to send the mail, and that connection time is what is slowing it down. Installing even a simple, locked SMTP client on the box would likely speed it up.

The problem is that you cannot have tasks run "in the background" with PHP. PHP is run on demand, because there are relatively few hosts who will allow you to install TSR or similar programs on their server. Tasks may run transparently, but 'in the background' really isn't possible. And, there's a whole lot of semantics involved here with the definition of "in the background"

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...