Moderator: General Moderators
dont know about EL but you can send email by setting up a STMP server address in your php.ini file (windows), ask your ISP about it, they should give you a address, put that in there, restart the server and use osemthing like.
yes, leave that "from:" part in there, replace the rest with your own email, i suggest searching google for [google]email with php tutorial[/google].
good luck
Code: Select all
<?php
mail("to@somewhere.com", "subject", "your message", "from: your own address");
?>good luck
PHP doesn't really login to your account to send it. You just specify who it's from, so it's as if you sent it from your account. Make sure you always use a real from address because a lot of mail servers just bounce fake ones these days.
eg. donotreply@mysite.com (make sure to actually make a donotreply account.)
eg. donotreply@mysite.com (make sure to actually make a donotreply account.)