The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to verify and create an email address with php

Discussion in 'E-mail Discussions' started by rodsem, Jan 5, 2006.

  1. rodsem

    rodsem Registered

    Joined:
    Jan 5, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi everybody. I need help on this.

    I know how to create an e-mail with php using this code:

    PHP:
    <?php
    $file 
    fopen ("http://" "USER" ":" "PASSWORD" "@" "DOMAIN" ":" "2082" "/frontend/" "x" "/mail/doaddpop.html?email=" "ACCOUNT" "&domain=" "DOMAIN" "&password=" "PASSWORD" "&quota=" "20" """r");
    ?>
    The problem is that, before this step, I need to check if the e-mail account exist or not under the specified domain in order to allow this PHP script to run or not. This is to create an automatic registration email system.

    :confused: Do anybody con tell me how to check is an e-mail account exist, and if it doesn't, then create it maybe using the above script, or other way that works in a PHP site?

    Thank you!
     
  2. fwwebs

    fwwebs Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    329
    Likes Received:
    0
    Trophy Points:
    16
    Checkout www.scripts.freemans-web.com 's cP Account Creator. This script will verify that an email address is available and if so, create the account. Otherwise, check the add_email.php in the script for the verification code.
     
Loading...

Share This Page