the mail() function
Moderators: macek, egami, gesf
by patna_in » Fri Nov 11, 2005 10:33 pm
Hi, I'm trying to send mail & using a script in HEAD tag not to CACHE the file in server. But after that I can't get message/mail from the sender. It means this mail function not working. But without the CACHE script it works. So, can't I use this CACHE script here ???
CACHE SCRIPT :::
- Code: Select all
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
MAIL SCRIPT :::
- Code: Select all
$headers = "From: $efrom\r\n" .
'X-Mailer: PHP/' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
$fmail = $_POST['eadd'];
$subject = "$esubject";
$msg = "$emessage";
mail("$fmail","$subject","$msg","$headers");
-
patna_in
- New php-forum User

-
- Posts: 103
- Joined: Sun Feb 06, 2005 10:54 am
-
by ruturajv » Sun Nov 13, 2005 8:02 pm
make an entry into the dB everytime you call the script, so you can cross check if that script is called or not
-

ruturajv
- php-forum Super User

-
- Posts: 1280
- Joined: Sat Mar 22, 2003 9:42 am
- Location: Mumbai, India
-
by patna_in » Mon Nov 14, 2005 8:31 pm
Sorry ! I can't get it... Plz make it clear.
-
patna_in
- New php-forum User

-
- Posts: 103
- Joined: Sun Feb 06, 2005 10:54 am
-
by patna_in » Sun Dec 04, 2005 11:48 pm
Ruturajv, i dont understand, plz explain....
-
patna_in
- New php-forum User

-
- Posts: 103
- Joined: Sun Feb 06, 2005 10:54 am
-
Return to PHP coding => Mail
Who is online
Users browsing this forum: No registered users and 1 guest