Skip to main content

Form emails sent using the cPanel user ID

Comments

6 comments

  • Infopro
    This thread may be of some use: Addon Domain Email coming from cPanel id and hostname
    0
  • kumarjjj
    This thread may be of some use: Addon Domain Email coming from cPanel id and hostname

    hi, all the mails ids are created with the account name with my serverhostname, i think its generated from the server. am confused how to stop these emails being genarated,plz suggest.
    0
  • Infopro
    Your contact form is not authenticating as a user so email is being sent from the cPanel account's ID. You'll need to configure your contact form to use an actual email account.
    0
  • Jcats
    Are using a standard HTML form or are you using some kind of CMS?
    0
  • kumarjjj
    the emails are send to the mail ids that are present in the sendmail.php
    0
  • rpvw
    Assuming your mail forms are using the standard mail() function of PHP to pass the mail to the sendmail binary for delivery - you can use the mail.force_extra_parameters to force the envelope from address. This can be applied in a custom php.ini for the account that runs the mail form, or as a simple addition of the -f as the 5th parameter of the mail() function. If you are running cloudlinux alt-php you can set the -f paramater in cPanel in the domains 'Select PHP Version' >> PHP Options >> mail.force_extra_parameters value.
    0

Please sign in to leave a comment.