Link to home
Start Free TrialLog in
Avatar of apolo63
apolo63

asked on

php mail form bug...

Im writing a mail form with php and it works fine, kinda.  the kinda part is that it dosent always send both emails, the main to me and the auto reply. the auto reply always goes but the one to me is sometimes not sent.  It seems to happen more often when i click the submit button a few times in a row.  Is it posible that the php file is being run by a new process while the first is still running messing things up?  If so does anybody know how to make sure the php file is only accesed by one browser window at a time?

Thanks,
Apolo.
Avatar of apolo63
apolo63

ASKER

I now notice it works perfect every time if i take out the from: field.

mail("email address", "Subject", "$message","From: $Email");

but the reply mail that is not a variable in the from: field works all the time.

mail("email address", "Subject", "$message","From: somemail@somewhere.com");

any ideas?

Later all,
Apolo.
try the following:
mail("email address", "Subject", "$message","From: $Email\r\n");




-=-=-=-=--=-=-=-=-=-=-
Get Coders to Work for You:

http://www.RentACoder.com/RentACoder/SmallBiz.asp?txtFromURL=AId_517531

http://www.scriptlance.com/cgi-bin/freelancers/r.cgi?srirangan

-=-=-=-=--=-=-=-=-=-=-
Best Web Hosting deal for You:

http://www.qksrv.net/click-1267313-890216

-=-=-=-=--=-=-=-=-=-=-
  l   e   x   x   w   e   r   n
ASKER CERTIFIED SOLUTION
Avatar of kenfcamp
kenfcamp
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of apolo63

ASKER

Cool, seems good with that...

Thanks for the help all...

Later,
Apolo.