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.

Contact Email

Discussion in 'E-mail Discussions' started by ukhost, Sep 15, 2002.

  1. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Is there a quick way to remove the contact email for all accounts on a server?

    I'm wanting to remove them all so that I can work on a popup request to ensure all clients fill in the contact email/update the contact email address.

    Kind Regards,

    ukhost
     
  2. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
  3. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [quote:61bd003924][i:61bd003924]Originally posted by ukhost[/i:61bd003924]

    Hi,

    Is there a quick way to remove the contact email for all accounts on a server?

    I'm wanting to remove them all so that I can work on a popup request to ensure all clients fill in the contact email/update the contact email address.

    Kind Regards,

    ukhost[/quote:61bd003924]
    Contact email address is kept in this file : /home/user/.contactemail
    replace user with your usernames
     
  4. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Is there a quick way to replace all .contactemail files with a blank file rather than one by one?

    Kind Regards,

    ukhost
     
  5. ecoutez

    ecoutez Well-Known Member

    Joined:
    May 23, 2002
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    0
    Users with no valid contact email will have no .contactmail file at all. Something like &rm -f /home/*/.contactmail& should blank it out for all your users.

    - Jason
     
  6. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Thanks for that worked like a charm!!

    Kind Regards,

    ukhost
     
  7. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Hi Guys,

    The above did remove the .contactemail files from all users, however mistically they return when you login to the cpanel account with the address as it was set, if it was set!! :eek:(

    Any other suggestions?

    Kind Regards,

    Neil
     
  8. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [quote:d58693306a][i:d58693306a]Originally posted by ukhost[/i:d58693306a]

    Hi Guys,

    The above did remove the .contactemail files from all users, however mistically they return when you login to the cpanel account with the address as it was set, if it was set!! :eek:(

    Any other suggestions?

    Kind Regards,

    Neil[/quote:d58693306a]

    It seems that you think removing contact email will cause a pop-up asking user to re-enter his/her contact email, [b:d58693306a]But it is not True[/b:d58693306a]

    Whether a user has contact email configured or not there won't be any pop-ups, if you actually want to have your users' contact information the critical point is Billing part this is where you can collect users' info.

    But about .contactemail file, it's the only place that contact email is kept if you remove them then there will be no contact email address.
     
  9. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    I know that it will bring up a popup as the skin I am using is designed to do this.

    Kind Regards,

    Neil
     
  10. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [quote:c460ed1c73][i:c460ed1c73]Originally posted by ukhost[/i:c460ed1c73]

    I know that it will bring up a popup as the skin I am using is designed to do this.

    Kind Regards,

    Neil[/quote:c460ed1c73]

    .contactemail file, is the only place that contact email is kept if you remove them then there will be no contact email address.
     
  11. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    I have removed them.

    I login to WHM and none of the accounts there have an email address.

    If I then login to cpanel on one of the account where there was a contact email address before it magically reappears!?!?!?!?!?

    Kind Regards,

    Neil
     
  12. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [quote:0a51515abe][i:0a51515abe]Originally posted by ukhost[/i:0a51515abe]

    I have removed them.

    I login to WHM and none of the accounts there have an email address.

    If I then login to cpanel on one of the account where there was a contact email address before it magically reappears!?!?!?!?!?

    Kind Regards,

    Neil[/quote:0a51515abe]
    I checked if it is a cpanel bug but is not a bug; it's working fine, but everytime you go to cpanel update contact section it adds .contactemail even you don't enter any address it is a blank file

    What's wrong?

    log out then log on to remove your browser's cache during your test
     
  13. ecoutez

    ecoutez Well-Known Member

    Joined:
    May 23, 2002
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    0
    Hrmm... pretty weird, but repeatable. I just had it happen on some test accounts too. It appears that CPanel is entering the default (catch-all) address as it appears in /etc/valiases/domain.tld *IF* this is an email address. If the user has his default address set to &username&, CPanel will create a blank .contactemail file.

    If your case where you're trying to get everyone to enter a valid email address, this may not be that bad. At least you'll get addresses for everyone that hasn't explicitly entered one, and you have something entered already for everyone who routes their default mail elsewhere.

    Maybe before you put the pop-up script into place, send an email to everyone with an address already listed and ask them about their correct contact info? Take note of the bounces, and remove the default settings for those users in /etc/valiases/domain.tld and replace with their username.

    - Jason
     
  14. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    Let's show you our solution about handling contact email.

    With a Perl script we generate contact email from our billing database, if .contactemail file is empty or does not exist.
    That’s it.
     
  15. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    [quote:507b9d8c43][i:507b9d8c43]Originally posted by itf[/i:507b9d8c43]
    With a Perl script we generate contact email from our billing database, if .contactemail file is empty or does not exist.
    That’s it.
    [/quote:507b9d8c43]

    That's the most sensible approach imo, since it's very likely that you get every customer's address when they sign up. It shouldn't be necessary to ask for it again when they log into their cpanel. Actually it would be a very good idea to include an email address field in the account creation form (along with the theme language, btw ;) )
     
Loading...

Share This Page