User tests: Successful: Unsuccessful:
Add ability to add recipients for all emails sent through a com_contact form. A field is added to the parameters of the contact form for listing one or more email addresses to be added to the recipient list.
At times organizations want multiple email addresses to receive a copy of emails coming through a contact form. This could be a temporary assignment (such as when the contact person is on vacation), or it could be a on- or off-site account providing a backup or a log of all inquiries.
This feature adds the additional recipients through the form instead of through the contact's email field. Currently the field validation for com_contact does not allow for multiple email addresses, so this new feature respects that expectation (and a potential dependency).
The submitted implementation requests a comma to separate emails, but it also handles a semicolon as a valid separator. An invalidly-formed email address will not be included into the recipient list, but all preceding email addresses are successfully included. The implementation trims white spaces.
Form
tab. These fields allow to set global email addresses that will receive ALL the emails sent to ANY contact.Form
tab. These fields allow set email address that will receive ALL the email sent to this contactcom_contact.categories
com_contact.category
com_contact.contact
com_contact.featured
com_contact
settings to add CC & BCC settings. These new settings will make that any contact form sent will send a copy to theses addresses.com_contact.categories
, com_contact.category
, com_contact.contact
, com_contact.featured
). When a CC or BCC email is set on these menu entries any contact CC/BCC email addresses will be overriden.Global configuration CC&BCC emails must still receive the emails.Labels |
Added:
?
|
Status | New | ⇒ | Pending |
Labels |
Removed:
?
|
Category | ⇒ | Components |
Labels |
Added:
?
|
Followed instructions and went to test the form - filled it out and hit send.
Got a blank screen upon hitting "Send" with no content in the source.
No emails where sent neither to the forfiller or main reciepent or additional reciepent.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/3757.
@test,
got the blank page when filling up the contact form and hitting "send" button.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/3757.
@redcomponent @anishavora as a blank page is a php error page in disguise please can you enable maximum php error reporting and see if you can report back what the errors are. Thanks
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/3757.
The params aren't loaded.
Adding $params = $app->getParams(); and it solves the issue of the blank page ;-)
Blank page error is solved.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/3757.
Tries to reapply patch and test again but doesnt seem to be solved yet.
Getting:
Fatal error: Call to a member function get() on a non-object in /home/ronni/domains/gothard.dk/public_html/joomla/components/com_contact/controllers/contact.php on line 169
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/3757.
@redcomponent, as the PR is not yet updated with the Note i've added, there's nothing changed in the patch.
You can add the $params = $app->getParams(); where i've added the note, to see if it's solving the blank page.
https://github.com/joomla/joomla-cms/pull/3757/files#r19013819
Cyril
It's not my PR. I just rebased it. I'll attach a commit now to fix some issues on it.
Thanks for testing!
I misunderstood Anisha's comment and thought it was ready to test again :)
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/3757.
I think we can change it to use standard CC & BCC fields instead of the additional_recipients
. I'm doing the changes now.
Aye params were missing. And there is already a way to add CC recipients (param always_copy_to), so probably you just keep them as additional recipients - even though i would prefer BCC.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/3757.
I updated the PR. I modified the behavior to use CC & BCC concepts that are better known by users and also allows us to send hidden email copies.
I have updated the PR description with the detailed changes and the testing instructions.
Summary:
I think it's easier to understand now the behavior and the workflow.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-17 16:19:54 |
Status | Closed | ⇒ | New |
addBCC() not working with only global options set (with or without CC, which one is working fine!), but addRecipient is...
Not sure to understand why to clone ?...
Not sure to understand why to clone ?...
Because if not the submit
method is modifying the static JComponentHelper
parameters (aka you cannot get the real component parameters because they have been overriden).
I'll test now the BCC
@phproberto Sorry, it's okay about BCC, it was a stupid error in my email address... !
After other tests, if i set BCC (the same for CC) in contact and in global options, BCC in contact don't receive the email. Is it the behaviour you want ?
After a better look...
We don't have the cc_recipients and bcc_recipients data from administrator/components/com_contact/models/forms/contact.xml
3 places for those settings :
line 139 of contact.php controller, we can get all contact params, and not only show_email_copy
$sent = $this->_sendEmail($data, $contact, $params);
And then, line 179 :
private function _sendEmail($data, $contact, $contact_params)
This way, we can get show_email_copy, cc_recipients and bcc_recipients from the contact, and merge respectively to the $ccRecipients and $bccRecipients
Labels |
Removed:
?
|
@phproberto Can you comment on @JoomliC last question?
@phproberto can you update to staging to fix the merge conflicts
Status | New | ⇒ | Closed |
Closed_Date | 2014-10-17 16:19:54 | ⇒ | 2015-05-16 12:26:35 |
Closed_By | ⇒ | phproberto |
Labels |
Added:
?
|
Starting to test
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/3757.