Hello,
I need help with a script. Basically all I'm trying to do is pass a varible $yo="k" to go into the $message body in an email. What I want this script to do is randomly generate a user ID and Password, then place the result in the message of the email. Here's the sample I did;
<?php
function hy()
{
//random generator
}
$yo="k";
/* recipients */
$to = "mkt2000@aol.com" . ", " ; // note the comma
/* subject */
$subject = "Registration Instructions";
/* message */
$message='
<html>
<head>
<title>Registration Instructions</title>
</head>
<body>
<p>Below is the information you will need to log onto peter.com</p>
<table>
<tr>
<th>$yo</th><th>Password</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally </td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
<p>Please store this information in a safe place.</p>Please click or type url below;<br>
<p><a href="mysite.com">Mysite</a></p>
</body>
</html>
I would appreiciate any assistance.
Thanks
Kyle
I need help with a script. Basically all I'm trying to do is pass a varible $yo="k" to go into the $message body in an email. What I want this script to do is randomly generate a user ID and Password, then place the result in the message of the email. Here's the sample I did;
<?php
function hy()
{
//random generator
}
$yo="k";
/* recipients */
$to = "mkt2000@aol.com" . ", " ; // note the comma
/* subject */
$subject = "Registration Instructions";
/* message */
$message='
<html>
<head>
<title>Registration Instructions</title>
</head>
<body>
<p>Below is the information you will need to log onto peter.com</p>
<table>
<tr>
<th>$yo</th><th>Password</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally </td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
<p>Please store this information in a safe place.</p>Please click or type url below;<br>
<p><a href="mysite.com">Mysite</a></p>
</body>
</html>
I would appreiciate any assistance.
Thanks
Kyle