/    Sign up×
Community /Pin to ProfileBookmark

PHP and mail() function issue

Hi

My website is customised in php, and at the contact us pages i’ve been using the mail() function to get the emails from this form to my email ids.

I have places everything in place, and working fine as well.

But the major problem is i receive the email in more than 4 hours+.

So if a customer sends us any query from our website it’s taking 4+ hours.

I dont know what to do in such case, i have reviwed the code twice and dint find any problem with that.

All i looking forward to use any other method, is there any other method, where i dont have to use this mail() function, and receive the email in pretty fast manner.

I am also open to use any email server, which i can use to send and receive email from.

plz help. thanks in advance. KRST

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJul 14.2011 — The problem is not your PHP code. I would suspect that either the mail server on your host is overloaded or is being throttled in some manner, or some other server between your host and your mail client that is involved in transferring the message is overloaded or throttled. I would start by talking with your web host's system administrator to find out if there is any known problem.
Copy linkTweet thisAlerts:
@NoasITJul 14.2011 — Also something I've learned is if you spoof the from header to be the email they filled in, it often takes longer as the domain sending doesn't match the domain from and many mail providers don't like this =D
×

Success!

Help @krsm1980 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.19,
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,
)...