1.

Solve : PHP Mail() function won't send message but without errors?

Answer»

Code: [Select]<?php
$Name = "HerbertsWorld"; //senders name
$email = "[email protected]"; //senders e-mail adress
$recipient = "[email protected]"; //recipient
$mail_body = "You have a new visitor!"; //mail body
$subject = "New Visitor :: 458"; //subject
ini_set('sendmail_from', '[email protected]'); //Suggested by www.phpbugs.com
mail($recipient, $subject, $mail_body, $header); //mail COMMAND :)

?>
It does not send a message to [email protected]


Can someone help?So you have a web site and you are using PHP and you can not send:
Some amil?
Any mail?
Just his address?

Do you have a conrol panel for this web site? Can you create your own email boxs and forwardwers?
Did you already create an email ACCOUNT for USE with yur blog or BBS?
Like [email protected]
Try SENDING to the address you have on made on the site. Chekc it in the wevmail. Make a forwarder to send it to hobnail.

Hotmail may reject email that are created by a PROGRAM. So use your own webmail account for visitor information.

All I am trying to do is make something that emails
[email protected] then

the web is herbertsworld.com, but herbertsworld.net is the only one that makes the email.

How would I make it email me on load? Quote

<?php
$name = "HerbertsWorld"; //senders name
$from = "[email protected]"; //senders e-mail adress
$to = "[email protected]"; //recipient
$body = "You have a new visitor!"; //mail body
$subject = "New Visitor :: 458"; //subject
mail($to, $subject, $body); //mail command
?>

You don't need:

Quote from: Bannana97 on April 04, 2009, 11:55:56 AM
ini_set('sendmail_from', '[email protected]'); //Suggested by www.phpbugs.com

This is a different part of PHP, called sendmail.


Discussion

No Comment Found