Aug 31st, 2017, 7:45 AM
(This post was last modified: Aug 31st, 2017, 7:48 AM by mikkolindberg.)
Thought I would post a work-around I came up with for this problem, in case anyone else is on a shared web hosting server. Indeed, it was quite likely the SMTP delay setting causing the issue, or SpamAssassin, which both seem to have come about in a somewhat recent cPanel upgrade.
Fix I came up with was to create new email addresses on our domain, and have all submissions forwarded through them. So, for emails that we need to receive, they go to example@hosteddomain.com, which then is forwarded to example@ouremailserver.com.
Emails that need to go to the email address entered by a user into the php form are piped through another email forwarder. So they go to secondexample@hosteddomain.com, which then forwards the email to a php mail script, which parses the email into sections, grabs the needed portions, and then forwards the necessary portions to the appropriate email address.
Lag on submit has gone down from about 13-15 seconds to maybe 1 or 2.
Cheers.
Fix I came up with was to create new email addresses on our domain, and have all submissions forwarded through them. So, for emails that we need to receive, they go to example@hosteddomain.com, which then is forwarded to example@ouremailserver.com.
Emails that need to go to the email address entered by a user into the php form are piped through another email forwarder. So they go to secondexample@hosteddomain.com, which then forwards the email to a php mail script, which parses the email into sections, grabs the needed portions, and then forwards the necessary portions to the appropriate email address.
Lag on submit has gone down from about 13-15 seconds to maybe 1 or 2.
Cheers.