SuzieSmith
05-03-2002, 02:00 PM
Does anyone have a simple script or program they use to send out "welcome" e-mails? I am using WHM and cpanel and I basically just want to send out an e-mail to each account owner when I create them. Most of it will be the same for each customer with the exception of the link to their cpanel, their username password etc.
The goal is to not have to copy and paste e-mails, but instead maybe fill out entries in a form and hit go :)
Any help would be appreciated.
important
05-03-2002, 02:55 PM
I dont know what you really want to do. But if you want to send out mails to your users manually, its very easy, even you can do it like i did :
The simplest php code.
<?
$from= ("From: SALES<sales@domain.com>");
$to= ("$email");
$subject= ("$subject");
$mail= ("
Dear Member,
Thanks for registering for our products. blah blah blah..
Here is your account information :-
Username : $username
Password : $password
Domain : $domain
mySQL Db : $mysql
If you encounter some trouble. Contact bla blah.
Thanks
");
mail("$to", "$subject", "$mail", "$from");
echo "<b>Thanks For Your Input.</b><br><br>";
?>
save it as formail.php
And then is the html file.
<html>
<head>
<title>Mail User</title>
</head>
<body>
<form action="formail.php" method=post>
<table borders="0">
<tr><td>Mail Subject :<input type="text" name="subject"></td></tr>
<tr><td>User Name:<input type="text" name="username"></td></tr>
<tr><td>Password :<input type="text" name="password"></td></tr>
<tr><td>Email ADD:<input type="text" name="email"></td></tr>
<tr><td>Domain :<input type="text" name="domain"></td></tr>
<tr><td>mySQL DB :<input type="text" name="mysql"></td></tr>
<tr><td><input type=submit value="Send Mail"></td></tr>
</form>
</body>
</html>
They must be in same folder and they 'll work .
I didnt included comments, bcs its too easy to understand.
Thanks
SuzieSmith
05-03-2002, 03:34 PM
Thanks for the script important....
After doing some thinking, I would really like a program or a set of scripts that I can use to manage all of my clients. The ability to add clients information into a database for future use, the date that they signed up, their phone #, etc etc.
Does anyone know of a program that can handle something like this? In addition to sending out e-mails?
Thanks
ckpeter
05-03-2002, 03:56 PM
You can try phpmanager, its a customer information manager. http://www.phpmanager.com/.
If you can afford it, there are also high-end solutions such as ubersmith or WHN billing solutions. Search the archive to find more info.
Peter
diederik
05-03-2002, 05:24 PM
I'm busy writing a script which will do that.
I'll let you know when it's done :D
Everyday
05-03-2002, 05:37 PM
Why not use a control panel that has that built in? Are you reselling or is this on a dedicated server?
SuzieSmith
05-03-2002, 05:39 PM
I am using cpanel/whm... they dont have anything like that :(