note 48841 deleted from function.popen by nlopess
| From: | nlopess@php.net | Date: | Sat, 08 Jan 2005 20:43:15 +0000 |
| Subject: | note 48841 deleted from function.popen by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-82965@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Based on function submited from webmaster at elcurriculum dot com, I wrote this little function.
This function use a template for send the User and Password of a user.
function Envio($email, $usr, $psr) {
$html = implode('', file('template/adduser.html'));
$html = str_replace("<usr>", $usr, $html);
$html = str_replace("<psr>", $psr, $html);
SendEmail($email, "Your User & Password", $html,
"webmaster@elcurriculum.com");
}
Replace the tags <usr> and <psr>.
adduser.html:
Your User: <usr>
You Password: <psr>
Envio("user@email.com", "username", "password");
More:
http://php.elcurriculum.com
http://tryke.elcurriculum.com