Jump to content

php mail


portia

Recommended Posts

It's probably a daft question but I'm a newbie:

I've been reading a tutorial about sending mail through php:

http://www.freewebmasterhelp.com/tutorials/php/5

 

It explains how to send mail:

 

$to = "[email protected]";
$subject = "PHP Is Great";
$body = "PHP is one of the best scripting languages around";
$headers = "From: [email protected]\n";
mail($to,$subject,$body,$headers);
echo "Mail sent to $to";

 

My question is do I need to configure sendmail, postfix (I'm using linux) stmp, etc to be able to do it, or php itself handles it?

thanks

Link to comment
https://forums.phpfreaks.com/topic/167253-php-mail/
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.