Mail () function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dakkonz
Forum Commoner
Posts: 69
Joined: Sat Dec 27, 2003 2:55 am
Location: Asia

Mail () function

Post by dakkonz »

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

Post by kettle_drum »

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.
dakkonz
Forum Commoner
Posts: 69
Joined: Sat Dec 27, 2003 2:55 am
Location: Asia

Post by dakkonz »

okiez... I dun quite get wat u mean by inserting a blank image/style sheet/javascript page to inform yourself when the user opened the email mail?? can elaborate???
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

when you add an image into youre mail it wont be downloaded untill he receiving party is actually opening the mail. only at that time will the image be downloaded from the website.. also means that rec. party opend his mail.. andso received it
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Wow that is genious.....prolly how the spammers know your email acc is active ! ;)
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

lol, well just explaining the what and hows.

my mail account who cares.. specially for forums and other non personal use :)
not in local \
dakkonz
Forum Commoner
Posts: 69
Joined: Sat Dec 27, 2003 2:55 am
Location: Asia

Post by dakkonz »

okie thanks wow learned a lot here...shall go try it out..thanks man
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

Post by AGISB »

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.
Post Reply