/    Sign up×
Community /Pin to ProfileBookmark

Hello,

Our web site is taking orders and emailing them (PhpMailer) to processing center and to the customer. Somehow, during certain periods of time, emailng fails (Send() returns false, even if I try it 2-3 times).

Is there a way to call a script on an alternative server (from php on server, not from browser) and retry to email from there? Or any other solution besides storing an order in database.

Sincerely,

Tim Kinder

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@bokehSep 20.2006 — Sounds like your mailserver is overloaded. Many mailservers have an upper limit of imbound SMTP connections and will not establish any new connections if these will exceed this preset limit. If send fails for one mailserver and you have access to another switch to the second.
Copy linkTweet thisAlerts:
@TaschenSep 20.2006 — Your php script will need to create RFC compliant mail. Try the one from tectite dot com. Also, your host will need to have a mail server that has been RFC configured.

Why RFC compliant? Mailservers that have been correctly configured will attempt to initiate a connection repeatedly over 72 hours before finally rejecting a mail. That is, if your script sends the right headers to a correctly configured mail server you will not need to use another server as you will never lose mail even if there is a delay in the mail being sent.
Copy linkTweet thisAlerts:
@bokehSep 20.2006 — Your php script will need to create RFC compliant mail.[/QUOTE]He's using PHPmailer so there should be no problem there.
×

Success!

Help @tim_kinder spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...