Send email with PHP
In this post, I would like to show you how to send an email with PHP code. It is very useful for a member system which you might like to email the password to member.
To be able to send email, PHP has a function called mail( ).
To send a simple email, mail( ) function takes 3 parameters.
First one is the “destination address“, I use a PHP variable $to to store it in this example.
Second one is the subject line of the email, I use a PHP variable $subjectline to store it in this example.
Third one is the content of the email, I use a PHP variable $content to store it in this example.
Here are the codes within the PHP file:
Continue Reading →

