Mail () function
Moderator: General Moderators
Mail () function
I have a problem...I used the mail() function and it takes about 15-20 mins for the mail to be delivered.... is there anyway to confirm that the mail has been sent??? Anybody knows wat could be the cause of the problem??
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
It takes time for the email to be recieved. Im pretty sure there is a priority flag that can be set as a header which is ment to speed things up a bit. Its hard to know when the email has arrived, but in the past ive included a request for a blank image/style sheet/javascript page inside of the email so that i know when the user has opened the email mail - the external script just logs the fact its been included and with a unique id you can tell which email its from.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Don't trust the image solution. Many mail progs turn images of by default nowadays. If the mail prog doesn't accept images it gets never opened and all was for nothing.
The time an email needs to be delivered is mainly the time your ISP or Mail server needs to send it and the time for the recipient mail server to accept it.
I run my own mail server and it sends mails out in an blink of an eye. If you use a public server it might take hours. Some even collect the mail to send it when the network usage is low etc. On the receiving side spam filters, virus scanners, FBI reading your meail etc take time to accept mail but it shouldn't be as bad as the time a sending ISP needs.
The time an email needs to be delivered is mainly the time your ISP or Mail server needs to send it and the time for the recipient mail server to accept it.
I run my own mail server and it sends mails out in an blink of an eye. If you use a public server it might take hours. Some even collect the mail to send it when the network usage is low etc. On the receiving side spam filters, virus scanners, FBI reading your meail etc take time to accept mail but it shouldn't be as bad as the time a sending ISP needs.