Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Email Script

Status
Not open for further replies.

Oliver

Level 4
Legacy Platinum Member
Joined
Nov 1, 2004
Messages
182
Reaction score
0
Hey guys Im wondering if there is a PHP script that i can use to let people sign up for free @mydomain.com email on my server. Its a dedicated server so i have the room etc. Is there any scripts that will do that for free?
 

HiTekMom

Level 1
Legacy Platinum Member
Joined
Dec 2, 2004
Messages
5
Reaction score
0
Try hotscripts.com.



- "Mocha Martha Stewart" of NC
 

jojoyohan

Level 5
Legacy Platinum Member
Joined
Jan 31, 2004
Messages
308
Reaction score
0
Search no furtherr. The king of all of random info has approached(hope you don't mind the spelling as the king has also done his research and knows that you will understand). Try http://www.uebimiau.org/ . Its a nice little open source email thing. Hope you enjoy.
 

MediaHound

Former DNF Admin
Legacy Exclusive Member
Joined
Feb 25, 2004
Messages
4,162
Reaction score
7
is your site cpanel? if so, there is a script exactly like that to integrate with cpanel

<?php
/*
Create POP email accounts
Works for me when others failed.
*/
//include('header.php');

// Domain Logon Details
$username = "cpanellogin";
$password = "cpanelpassword";

// Domain details
$domain = "domainname.com";
$theme = "x";//eg "fantastico_bluelagoon";

// Parameters to parse
$eDomain = "domainame.com";
$eQuota = "5"; // eg"10";

if (isset($delpop)) {
print "Account deleted : ".$popuser."@".$eDomain;

$postfields = "email=$popuser&domain=$eDomain";
$url = "http://$username:$password@$domain:2082/frontend/$theme/mail/realdelpop.html?$postfields";
//print "<hr>";
//print $url;
// initialise Curl
$popPost = curl_init();
curl_setopt($popPost, CURLOPT_URL, $url);
// Set Curl Option: Username:password
curl_setopt($popPost, CURLOPT_POST, 1);
// Set Curl Option: Collect result from script
curl_setopt($popPost, CURLOPT_RETURNTRANSFER, 1);
// Set Curl Option: Set timeout to 15 seconds
curl_setopt($popPost, CURLOPT_TIMEOUT, 15);
// Set Curl Option: Post data
//curl_setopt($popPost, CURLOPT_POSTFIELDS, $postfields);
// Execute Request, and store result in $tb_post
$popPost_result = curl_exec ($popPost);
// Close Curl
curl_close ($popPost);
$start = strpos($popPost_result, 'Account');
$end = strpos($popPost_result, 'Go');
$subset = substr($popPost_result, $start, $end+8-$start);
print $substr;
}

if (isset($eEmail)) {
$ePassword = $password2;
// Put post fields variable together
$postfields = "email=$eEmail&domain=$eDomain&password=$ePassword&quota=$eQuota";
// initialise Curl
$popPost = curl_init();
// Set Curl Option: URL
$url = "http://$username:$password@$domain:2082/frontend/$theme/mail/doaddpop.html?$postfields";
curl_setopt($popPost, CURLOPT_URL, $url);
// Set Curl Option: Username:password
curl_setopt($popPost, CURLOPT_POST, 1);
// Set Curl Option: Collect result from script
curl_setopt($popPost, CURLOPT_RETURNTRANSFER, 1);
// Set Curl Option: Set timeout to 15 seconds
curl_setopt($popPost, CURLOPT_TIMEOUT, 15);
// Set Curl Option: Post data
//curl_setopt($popPost, CURLOPT_POSTFIELDS, $postfields);
// Execute Request, and store result in $tb_post
$popPost_result = curl_exec ($popPost);
// Close Curl
curl_close ($popPost);

//output results
$start = strpos($popPost_result, '<b>Account');
$end = strpos($popPost_result, 'created.');
$subset = substr($popPost_result, $start, $end+8-$start);
$subset = str_replace('login ', "login<br>", $subset); //for neatness
//$subset=str_replace("<!",'<-',$subset); //see the comments
if (preg_match ('/Sorry/i', "$subset")) {
print "<br><b>&nbsp;&nbsp;&nbsp;Sorry that account already exists.</b><br><br><br><br><br><br><br>";
//print ($subset);
} elseif(preg_match ('/You must specify/i', "$subset")) {
print "<br><b>&nbsp;&nbsp;&nbsp;You must specify a password.</b><br><br><br><br><br><br><br>";
} else {
print ($subset);
print "<br><br>You may now use <b>mail.$domain</b> as your POP3 setting in your mail client or access <b>WebMail</b> by selecting <a href=http://$domain/webmail>Here</a>.
<center>
<br><a href=javascript:history.go(-1)>Go Back</a>
</center>";
}
} else {
?>

<form name="emailform" method="post" action="anew.php">
<table border="0" cellspacing="1" align=center cellpadding="0">
<tr>
<td>Prefered Email Address:</td>
<td colspan="2"><input size=10 value="" name="eEmail" type="text">
@<?= $domain ?></td>
</tr>
<tr>
<td>Password:</td>
<td colspan="2"><input size=10 name="password1" value="" type="password"></td>
</tr>
<tr>
<td>Retype Password:</td>
<td colspan="2"><input size=10 name="password2" value="" type="password"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td width="344"> <div align="center">
<input name="signupbtn" type="button" id="signupbtn" value="Signup" onClick="validateform()">
</div></td>
<td width="163">&nbsp;</td>
</tr>
</table>
<script language="JavaScript1.2">


function validateform() {
if (checkEmailAddress(document.emailform.eEmail)) {
if(document.emailform.password1.value == document.emailform.password2.value) {
document.emailform.submit();
}
else
{
alert("The passwords you typed do not appear to match");
}
}
}

function checkEmailAddress(field) {
var good;
//var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.go v)|(\.org)|(\..{2,2}))$)\b/gi);
var goodEmail = field.value;

if(goodEmail != "") {
//if (goodEmail){
good = true
} else {
alert('Please enter a valid e-mail address.')
field.focus()
field.select()
good = false
}
return good;
}


</script>
</form>
<? }
//include('footer.php');
?>
 

aknal

Level 1
Legacy Platinum Member
Joined
Dec 8, 2004
Messages
12
Reaction score
0
Thanks. I was looking for something to integrate with cPanel. Where can I find more of such scripts?
 

jojoyohan

Level 5
Legacy Platinum Member
Joined
Jan 31, 2004
Messages
308
Reaction score
0
Thats cool. Might I ask where you got it from?
 

jojoyohan

Level 5
Legacy Platinum Member
Joined
Jan 31, 2004
Messages
308
Reaction score
0
Awesome. I'll have to see if I like that better.
 

aknal

Level 1
Legacy Platinum Member
Joined
Dec 8, 2004
Messages
12
Reaction score
0
Thanks for the info on where you found it.
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 2) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Premium Members

Upcoming events

Latest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom