PHP Email form not sending mail to recipient
PHP Email form not sending mail to recipient
Does someone know the solution for this ?
I setup a complete email form, filled in the recipient e.g. but no email is being send ....
marc
update; The person who is filling out the form IS receiving a copy of the email. I'm, however, receiving no mail.
I setup a complete email form, filled in the recipient e.g. but no email is being send ....
marc
update; The person who is filling out the form IS receiving a copy of the email. I'm, however, receiving no mail.
-
Pappnase
-
Denis Parshutin
- Posts: 15
- Joined: Wed 7. Jan 2004, 07:23
- Contact:
so I fix this.
act_formmailer.php
Line 196
Thats all.
act_formmailer.php
Line 196
if(isset($send_copy_to)) {
$from = "From: ".$send_copy_to."\n";
if(!ini_get('safe_mode')) {
mail($send_copy_to, $subject, $body, "From: ".$recipient."\n", "-f ".$recipient);
} else {
mail($send_copy_to, $subject, $body, "From: ".$recipient."\n");
}
} else {
$from = "From: ".$send_copy_to."\n";
}
if(!ini_get('safe_mode')) {
mail($recipient, $subject, $body, "From: ".$send_copy_to."\n", "-f ".$send_copy_to);
} else {
mail($recipient, $subject, $body, $from);
}
Thats all.
- Oliver Georgi
- Site Admin
- Posts: 9949
- Joined: Fri 3. Oct 2003, 22:22
- Location: Dessau-Roßlau
- Contact:
Hi,
I installed the new patch (15/2).
But my form is still not sending me a mail....
This is my form, just a standard one;
IT|naam|1|Naam: |40,100||200
IT|adres|0|Adres: |40,100||200
IT|postcode|0|Postcode: |10,100||200
IT|woonplaats|0|Woonplaats: |40,100||200
IT|email|0|Email: |40,100||200
TA|opmerkingen|0|Opmerkingen: |40,7||300
IH|language|0||10,100|NL|0
name, address, zip, location, email, remarks.
if someone fills it in, the email is send ... the succes page is shown.
But I never receive any mail ...
I installed the new patch (15/2).
But my form is still not sending me a mail....
This is my form, just a standard one;
IT|naam|1|Naam: |40,100||200
IT|adres|0|Adres: |40,100||200
IT|postcode|0|Postcode: |10,100||200
IT|woonplaats|0|Woonplaats: |40,100||200
IT|email|0|Email: |40,100||200
TA|opmerkingen|0|Opmerkingen: |40,7||300
IH|language|0||10,100|NL|0
name, address, zip, location, email, remarks.
if someone fills it in, the email is send ... the succes page is shown.
But I never receive any mail ...
- Oliver Georgi
- Site Admin
- Posts: 9949
- Joined: Fri 3. Oct 2003, 22:22
- Location: Dessau-Roßlau
- Contact:
Goodmorning
I don't get it. If I have the send copy field added, then there is a mail being send to the person who filled in the form. But still not not me....
I do not have any spamfilters.
And the address which I use to fill in the form to test is on the same computer/provider.
I really don't get it...
I don't get it. If I have the send copy field added, then there is a mail being send to the person who filled in the form. But still not not me....
I do not have any spamfilters.
And the address which I use to fill in the form to test is on the same computer/provider.
I really don't get it...
- Oliver Georgi
- Site Admin
- Posts: 9949
- Joined: Fri 3. Oct 2003, 22:22
- Location: Dessau-Roßlau
- Contact:
- Oliver Georgi
- Site Admin
- Posts: 9949
- Joined: Fri 3. Oct 2003, 22:22
- Location: Dessau-Roßlau
- Contact:
I don't know if this is possible for you - but maybe try to change the code at line 207 in act_formmailer.php as this:
...and tell me what happens (the -f attribut is removed here).
Olier
Code: Select all
if(isset($send_copy_to)) {
$from = "From: ".$send_copy_to."\n";
if(!ini_get('safe_mode')) {
mail($send_copy_to, $subject_encoded, $body, "From: ".$recipient."\n".$content_type);
} else {
mail($send_copy_to, $subject_encoded, $body, "From: ".$recipient."\n".$content_type);
}
} else {
$from = "From: ".$recipient."\n";
}
if(!ini_get('safe_mode')) {
mail($recipient, $subject_encoded, $body, $from.$content_type);
} else {
mail($recipient, $subject_encoded, $body, $from.$content_type);
}Olier
- Oliver Georgi
- Site Admin
- Posts: 9949
- Joined: Fri 3. Oct 2003, 22:22
- Location: Dessau-Roßlau
- Contact:
Temporarily can you try to change this:
into
Oliver
Code: Select all
if(!ini_get('safe_mode')) {
mail($recipient, $subject_encoded, $body, $from.$content_type);
} else {
mail($recipient, $subject_encoded, $body, $from.$content_type);
}Code: Select all
if(!ini_get('safe_mode')) {
mail($recipient, $subject_encoded, $body, $from);
} else {
mail($recipient, $subject_encoded, $body, $from);
}