Answers.Body: <p>When a new mailing is created it is set to default to those values. There isn't an UI config where you can change those values to preset.</p>
  <p>It's <a href="https://github.com/civicrm/civicrm-core/blob/master/CRM/Mailing/BAO/Mailing.php#L1169" rel="nofollow noreferrer">hard-coded in the PHP</a> file, you can alter it using pre() hook.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-06-17T13:20:55.080Z
Answers.Text: Thanks a lot !
  Are you refering to this part of the documentation ?
  https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_pre/
  
  
  
  In the short term, as a quick workaround, I guess we can edit the PHP you mention, specifically these 2 lines ?
   'forward_replies' => FALSE,
  'visibility' => 'Public Pages',
  
  (I know such changes would disappear after a version upgrade)
Answers.UserDisplayName: stackexchange user
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-06-17T13:56:35.607Z
Answers.Text: Yes th change will disappear, pre hook when object id is empty you can over-ride the same fields, and easy to maintain as an extension/module/plugin
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-06-17T09:57:15.373Z
Answers.LastActivityDate: 2024-06-17T09:57:15.373Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I would like all our Civimail to have the following options, by default, when our users create a new mailing :</p>
  <ol>
  <li><p>Visibility : &quot;users and admin&quot;. Currently, the default is &quot;public&quot;
  <a href="https://i.sstatic.net/zI8b2C5n.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zI8b2C5n.png" alt="enter image description here" /></a></p>
  </li>
  <li><p>Forward answers : the box is unticked by default. I want it ticked by default</p>
  </li>
  </ol>
  <p><a href="https://i.sstatic.net/pz6Q6J6f.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/pz6Q6J6f.png" alt="enter image description here" /></a></p>
  <p>Is there a way to do this?</p>
  
Tags: <civimail><default-settings>
Title: How to save civimail default parameters
ThreadText: # How to save civimail default parameters
  
  (Asked by: username_0 on 2024-06-16)
  
  I would like all our Civimail to have the following options, by default, when our users create a new mailing :
  
  1. Visibility : "users and admin". Currently, the default is "public"
     [![enter image description here](https://i.sstatic.net/zI8b2C5n.png)](https://i.sstatic.net/zI8b2C5n.png)
  2. Forward answers : the box is unticked by default. I want it ticked by default
  
  [![enter image description here](https://i.sstatic.net/pz6Q6J6f.png)](https://i.sstatic.net/pz6Q6J6f.png)
  
  Is there a way to do this?
  
  **Tags:** civimail, default-settings
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-06-17. Score: 0
  
  When a new mailing is created it is set to default to those values. There isn't an UI config where you can change those values to preset.
  
  It's [hard-coded in the PHP](https://github.com/civicrm/civicrm-core/blob/master/CRM/Mailing/BAO/Mailing.php#L1169) file, you can alter it using pre() hook.
  
  > **Comments:**
  > **username_0**: Thanks a lot ! Are you refering to this part of the documentation ? https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_pre/    In the short term, as a quick workaround, I guess we can edit the PHP you mention, specifically these 2 lines ?  'forward_replies' => FALSE, 'visibility' => 'Public Pages',  (I know such changes would disappear after a version upgrade)  
  > **username_1**: Yes th change will disappear, pre hook when object id is empty you can over-ride the same fields, and easy to maintain as an extension/module/plugin  
  
  ---
  
  