CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Alter New mailing form fields in 4.6?
Pages: [1]

Author Topic: Alter New mailing form fields in 4.6?  (Read 463 times)

Pradeep Nayak

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: drupal
  • MySQL version: 5.5
  • PHP version: 5.4
Alter New mailing form fields in 4.6?
April 10, 2015, 04:19:47 am
 We have an extension: https://civicrm.org/extensions/outbound-domain-enforcement which removes 'from' emails that do not have the same domain address as the site to prevent the server from blocking the IP as a spammer. Uptil CiviCRM v4.5, we were using a bit of code that checks the available emails that were presented in the "From:" select box when a new mailing was being created. Then we were filtering out the invalid ones and at the same time providing a friendly warning that explains why it was filtered out. The description of the extension can be found in the link above. The problem we are facing in CiviCRM 4.6 is the entire New mailing form is being constructed using angular JS.

Could anyone please provide us with a method or guide us with some tips that we could use to remove values from the select list from our extension without overriding any core files?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Alter New mailing form fields in 4.6?
April 10, 2015, 05:16:54 am
I wonder if instead of modifying the mailing form if it would be better to go to the source and add validation to the form which creates "from" emails.
http://d46.demo.civicrm.org/civicrm/admin/options/from_email_address?reset=1
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Alter New mailing form fields in 4.6?

This forum was archived on 2017-11-26.