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.

Welcome email

Discussion in 'E-mail Discussions' started by dvwebhost, Oct 28, 2005.

  1. dvwebhost

    dvwebhost Registered

    Joined:
    Oct 20, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I tried to find out , but nothing.

    If i make a new account, C panel send a welkom email to the User / reseller , one like this
    +===================================+
    | New Account Info |
    +===================================+
    | Domain: test.com
    | Ip: 83.98.182.*** (n)
    | HasCgi: y
    | UserName: test
    | PassWord: 123456
    | CpanelMod: x2
    | HomeRoot: /home
    | Quota: 100 Meg
    | NameServer: ns1.****.com
    | NameServer: ns2.****.com
    | Contact Email: test@test.com
    +===================================+
    Account was setup by: master (root)

    Now i want more ,
    Something like this
    > ###############################\
    > | Introduction
    > ###############################\
    >
    > This Email is packed with IMPORTANT information about your account and how
    to administrate your web site. Please READ this Email very carefully and
    then SAVE it so you can reference it again later.
    >
    > ###############################\
    > | ACCESSING YOUR WEB SITE
    > ###############################\
    >
    > Here is your account information:
    >
    > Client ID: test
    > Hosting Plan: TESTING 1
    > Username: test
    > Password: 123456 (please note password is CaSe SeNsItIvE)
    > Website URL: http://www.test.com
    > IP Address: 83.98.182.***
    > Home Root: /home/
    > You can access your web site at http://83.98.182.***/~test
    > ###############################\
    > | YOUR cPANEL CONTROL PANEL
    > ###############################\
    >
    > We are pleased to offer a full-featured control panel. To log into your
    control panel, use the username and password assigned to your account. Our
    control panel makes creating and maintaining your website simple. You may
    access your control panel at:
    >
    > http://www.test.com/cpanel/
    >
    > or
    >
    > http://83.98.182.***/cpanel/
    >
    > The cPanel manual is located at http://www.cpanel.net/docs/cp/ (HTML) or
    http://www.ivhosting.com/CpanelGuide.pdf (PDF)


    And mucth more
    BUT where is the MAIL FILE where i can change this..??
    Exim ?? Mailman ..??

    pleas tell me wehere.
    Thanks
    Dave
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    You may find my postwwwacct script to send a welcome email helpful.
    Check the scripts club link in my sig below.
     
  3. dvwebhost

    dvwebhost Registered

    Joined:
    Oct 20, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi there ,

    Thx for this hulp , BUT .... don't work it :confused:
    My wwwacct
    open(EMAIL,"$owhomedir/.contactemail");
    chomp($owemail = <EMAIL>);
    close(EMAIL);

    if ($owemail eq "") {
    $owemail = 'admin@' . $owdomain;
    }

    open(SENDMAIL,"|/usr/sbin/sendmail -t");
    print SENDMAIL "To: $owemail\n";
    print SENDMAIL "From: cpanel\@${owdomain}\n";
    print SENDMAIL "Subject: New account on $host ($domain)\n";
    print SENDMAIL "\n$msg\n";
    close(SENDMAIL);

    }

    open(ACCTLOG,">>/var/cpanel/accounting.log");
    $now = localtime(time());
    print ACCTLOG "$now:CREATE:$ENV{'REMOTE_USER'}:$ENV{'USER'}:$domain:${ip}:$user\n";
    close(ACCTLOG);

    system("/scripts/rebuildippool >/dev/null 2>&1");


    if (getpwnam("postgres") || getpwnam("pgsql")) {
    # Initialize PostgreSQL
    $ENV{'REMOTE_PASSWORD'} = "1";
    system("/usr/local/cpanel/bin/postgresadmin $mmuid DBCACHE >/dev/null 2>&1");
    }

    print "wwwacct creation finished\n";

    if (-e "/scripts/postwwwacct") {
    system("/scripts/postwwwacct",@ARGV);
    }
    if (-e "/scripts/postwwwacctuser") {
    system("/scripts/postwwwacctuser",$user);
    }

    exit;


    I make a postwwwacct like on your web ,
    But he don't send mail to the User :(

    Or where can i find this Files .? postwwwacctuser
    Is postwwwacctuser need ?

    Thx for hulp
     
Loading...

Share This Page