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.

welcomes email to customer

Discussion in 'E-mail Discussions' started by Wolvie, Feb 19, 2004.

  1. Wolvie

    Wolvie Active Member

    Joined:
    Aug 30, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Is it posseble to send a automatic email to the customer with login info of his account after his account is create in WHM.?
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    What you do for that is write a script and call it postwwwacct and put it in the /scripts directory. Whenever an account is created, the wwwacct script is what does the work and when it's finished, if postwwwacct exists, it passes variables on to it to run.
     
  3. Wolvie

    Wolvie Active Member

    Joined:
    Aug 30, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    an bash script or perl?? or what?
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    That's your choice.

    Around line 1466 in the httpd.conf file you'll see:

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


    If postwwwacct exists, this is where it will be called and the ARGV array will be passed to it.

    Here are the variables that are passed.

    ARGV[0] = domain
    ARGV[1] = username
    ARGV[2] = password
    ARGV[3] = space (MB)
    ARGV[4] = theme
    ARGV[5] = ded IP (y/n)
    ARGV[6] = cgi (y/n)
    ARGV[7] = FP (y/n)
    ARGV[8] = max ftp (n or #)
    ARGV[9] = max sql (n or #)
    ARGV[10] = max POP (n or #)
    ARGV[11] = max lists (n or #)
    ARGV[12] = max subs (n or #)
    ARGV[13] = bandwidth (# or 0)
    ARGV[14] = shell (y/n)
    ARGV[15] = owner
    ARGV[16] = plan
    ARGV[17] = max park (# or unlimited)
    ARGV[18] = max addon (# or unlimited)
    ARGV[19] = feature list (default)
     
  5. DudeBro

    DudeBro Well-Known Member

    Joined:
    Jan 30, 2004
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    would you mind writing out a final version for this, please? I'd really appreciate it. I can't start testing around my CPANEL and have a possibility of screwing it up. THANKs! :)
     
  6. nybble

    nybble Well-Known Member

    Joined:
    Jan 26, 2004
    Messages:
    223
    Likes Received:
    0
    Trophy Points:
    16
    squirrel over here was very nice to give you the info now you want them to write you a full script? woah... maybe if you throw some money in it, but if you can't figure it out when it is writen in front of you, you need to study up, http://www.w3schools.com/ look under php

    And I doubt it will affect your cpanel unless you mess something else up, just using that folder and adding the scripts to it wont hurt anything (But, you may not hld me if it does)
     
  7. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
  8. DudeBro

    DudeBro Well-Known Member

    Joined:
    Jan 30, 2004
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    I see. Thanks.
     
  9. Wolvie

    Wolvie Active Member

    Joined:
    Aug 30, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    ow to make that scripts?
     
  10. Wolvie

    Wolvie Active Member

    Joined:
    Aug 30, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
  11. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    They've already told you how. If you need more information it's no longer "how can I make such a script" but "will you make a script for me?"
     
  12. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    If you know how to write cgi or php, you have all the info here needed to make a script. If you want a script written for you, I can do so within a couple days for $20, or I can do so for free and put it on my scripts page in 1 or 2 weeks.

    If anyone needs one now, PM me. If anyone needs it later, bookmark this&nbsp;page. < ---- script page link
     
    #12 PWSowner, Feb 23, 2004
    Last edited: Feb 23, 2004
  13. Wolvie

    Wolvie Active Member

    Joined:
    Aug 30, 2003
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    what is your script page?
     
  14. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    I edited my post to point out the link.
     
  15. DudeBro

    DudeBro Well-Known Member

    Joined:
    Jan 30, 2004
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    which post? What's the URL?
     
  16. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    This second post of mine back now. The one that I edited.

    Where you see
    < ---- script page link
    the arrow is pointing to the link.

    It appears cpanel should change the link colors since they seem to be very hard to see.
     
  17. DudeBro

    DudeBro Well-Known Member

    Joined:
    Jan 30, 2004
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Ohh... I see... I thought you had written the script, that's why when I went there, I saw NO script.. something must be wrong. LOL. SRY :(
     
  18. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
  19. DudeBro

    DudeBro Well-Known Member

    Joined:
    Jan 30, 2004
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    I checked the UPDATED page, and don't see anything about a welcome email script being in progress...?
     
  20. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
Loading...

Share This Page