generate emails without going to cpanel

Discussion in 'Scripts' started by ottodo, Dec 17, 2006.

  1. #1
    Is there script to generate emails accounts without going to cpanel??

    I do have cpanel, but I want customers to generate emails not me
     
    ottodo, Dec 17, 2006 IP
  2. Jasonb

    Jasonb Well-Known Member

    Messages:
    4,486
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    195
    #2
    what do you mean?
    sending, receiving e-mails?
    I might have an idea
     
    Jasonb, Dec 17, 2006 IP
  3. ottodo

    ottodo Guest

    Messages:
    2,055
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No
    As you know when you want to add and email account like you go to cpanel and then u create this acc *email*

    I want to do this fomr web page not from cpanel
     
    ottodo, Dec 17, 2006 IP
  4. syntax_error

    syntax_error Peon

    Messages:
    58
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can look at atmail script .This feature needs imap module loaded on your server so please check it first.
     
    syntax_error, Dec 17, 2006 IP
  5. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #5
    
    <?
    if($_POST)
    {
    	$data = file_get_contents("http://username:password@hostname:2082/frontend/x/mail/".
    						   "doaddpop.html?email=" . stripslashes(trim($_POST['email'])) . "".
    						   "&domain=". stripslashes(trim($_POST['domain'])) ."".
    						   "&password=".stripslashes(trim($_POST['password']))."".
    						   "&quota=".stripslashes(trim($_POST['quota']))."");
    	if(preg_match("/Account Created/si", $data))
    	{
    		echo "Done";
    	}
    	else {
    		echo "Failed";
    	}
    }
    else {
    ?>
    	<form method="POST" action="">
    
    <table>
    <tr>
    
    <td>
    <font class="med">
    E-mail:
    </font>
    </td>
    <td><input type="text" name="email">
    <font face = "helvetica" size = "-1" >
    @<select name=domain>
    <option value="krakjoe.info" selected>krakjoe.info</option>
    </select>
    </font>
    </td>
    </tr>
    <tr>
    <td>
    <font class="med">
    Password:
    </font>
    </td>
    <td><input type="text" name="password"></td>
    </tr>
    <tr>
    <td>
    <font class="med">
    Quota (optional):
    </font>
    </td>
    <td><input type="text" name="quota" value=10> Meg</td>
    
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td><input type="submit" value="Create"></td>
    <td>&nbsp;</td>
    <td><input type="reset" value="Clear"></td>
    </tr>
    </table>
    
    </form>
    <?
    }
    
    PHP:
    dirty but works, if you can be bothered to build a curl function that'll work too.

    Change username : passsword @ hostname for your stuff.....
     
    krakjoe, Dec 18, 2006 IP