portia Posted July 24, 2009 Share Posted July 24, 2009 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 More sharing options...
ignace Posted July 24, 2009 Share Posted July 24, 2009 php uses smtp to send e-mail. However it is possible to send e-mails from php using your gmail, hotmail, yahoo account. http://www.phpclasses.org/blog/package/9/post/1-Sending-email-using-SMTP-servers-of-Gmail-Hotmail-or-Yahoo-with-PHP.html Link to comment https://forums.phpfreaks.com/topic/167253-php-mail/#findComment-881860 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.