Jump to content

Mail() Function Troubleshooting


boldspud

Recommended Posts

I am no expert in php, but I have done enough research to know that my code is not the problem in this instance.  I am simply trying to get the mail() function working to set up a webform on a website.

 

Here is the code I'm using :

<?php

$Name = "Da Duder";

$email = "[email protected]";

$recipient = "[email protected]";

$mail_body = "The text for the mail...";

$subject = "Subject for reviever";

$header = "From: ". $Name . " <" . $email . ">\r\n";

 

ini_set('sendmail_from', '[email protected]');

 

mail($recipient, $subject, $mail_body, $header);

?>

 

So how do I track down the error in this function non-functionality?  Again, I'm new to this, so apologies if this is super easy.

Link to comment
https://forums.phpfreaks.com/topic/204220-mail-function-troubleshooting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.