Jump to content

Emails taking FOREVER...


doubledee

Recommended Posts

I am using this code in my "create_account.php" script...

 

mail($trimmed['email'], 'Re: Please Activate Your Account', $body, 'From: admin@mywebsite.com <admin@mywebsite.com>');

 

It is taking anywhere from one to several hours to receive this e-mail in my inbox?!

 

It used to take seconds, and now takes forever.

 

I thought it was a Gmail or SPAM issue, but I just did a test on my AT&T paid account and the same issue so far...  >:(

 

It's awfully hard to do development and testing if I have to wait a half-a-day to get these e-mails?!

 

 

Debbie

 

 

Link to comment
Share on other sites

In most cases of delayed email, it's simply due to one of the mail servers along the way being overloaded and running slow.

 

Except that I can e-mail myself and get that e-mail in 1 second...

 

And I should have mentioned that I am sending out e-mails to myself from my local MAMP/NetBeans development environment, but that shouldn't matter because the minute I call mail() it should e-mail me at gmail or yahoo or att...

 

 

Debbie

 

 

Link to comment
Share on other sites

Except that I can e-mail myself and get that e-mail in 1 second...

 

Well, yes.  But that's because it's the same mail server. (or clustered in the same batch)

 

If you're not happy with mail() then write your own mail script and quit bitchin.

 

I am sending out e-mails to myself from my local MAMP/NetBeans development environment, but that shouldn't matter because the minute I call mail() it should e-mail me at gmail or yahoo or att...

 

Yea, read a book on Networking.  And then come back when you have a clue.

Link to comment
Share on other sites

PHP doesn't control SMTP servers. The issue may be as simple as a lax sendmail configuration on the web server, or it could be that there are delays from one server to another, or it could be that spam filters are playing some part in the slowdown.

 

For the first one, ask your web hoster to troubleshoot.

For the second one, that's just how it is and you can't do a whole lot about it.

For the third one, don't use mail() directly and don't try to write something better yourself (because, no offense, you'll get it wrong). Use something like PHPMailer instead.

 

 

And a cautionary note: If you keep alienating people on the various forums you frequent then there'll be nobody left who wants to help you. Take the criticism calmly and politely and vent your frustration someplace else.

Link to comment
Share on other sites

PHP doesn't control SMTP servers. The issue may be as simple as a lax sendmail configuration on the web server, or it could be that there are delays from one server to another, or it could be that spam filters are playing some part in the slowdown.

 

For the first one, ask your web hoster to troubleshoot.

 

As mentioned earlier, I am sending emails locally from my development code on MAMP/NetBeans.

 

 

For the second one, that's just how it is and you can't do a whole lot about it.

 

Since this occurs on multiple email providers I don't think that is the issue, unless my repeated testing is getting me flagged as spamming myself?!  :o

 

 

For the third one, don't use mail() directly and don't try to write something better yourself (because, no offense, you'll get it wrong).

 

I agree.

 

 

Use something like PHPMailer instead.

 

Do you think mail() could really be the issue, though?  I doubt it.

 

 

And a cautionary note: If you keep alienating people on the various forums you frequent then there'll be nobody left who wants to help you. Take the criticism calmly and politely and vent your frustration someplace else.

 

Being a jack ss is always inappropriate and, no, I won't take it.

 

People like flappy_warbucks are what ruin otherwise good threads and good websites like PHPFreaks.

 

Being an _ss just to stir things up serves no purpose on PHPFreaks other than to stroke the insecurities of some web-wannabe...

 

 

 

Debbie

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.