Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 5 replies, 2 voices, and was last updated 4 years, 7 months ago by
John Boase.
-
AuthorPosts
-
10/17/2018 at 12:16 pm #475252
John Boase
ParticipantHi,
My client wants to ‘vet’ all emails so would like the contact extension to send him the form data rather than to the directory entry so that he can then send it on to the client.
Is this possible please?
Thanks in advance.
10/17/2018 at 12:33 pm #475255Steven Zahm
Keymaster@ John
Completely untested but should work…
Every entry which should be reviewed, add the reviewers email address to the entry. Make it the top one and set it as the Preferred email address. To keep it from displaying, you can set it as Unlisted.
Another option would be to edit the Contact plugin, line 417. Change it from the entry email address (which is a variable) and hard code it to your clients email address.
One other possibility is you could hook into the
cn_email_to
and return your clients email. This has a major downside. It’ll apply to all email sent thru Connections. But, if the only email you are using is from Contact, this would work. Alternatively, you could hook into thecn_email
filter and check for theX-CN-Log-Type: cn-contact
before changing the email address.Hope this helps!
10/17/2018 at 1:55 pm #475259John Boase
ParticipantThanks for the quick reply. Coding is not my strong point. Can you supply the code I would need to change this please in the plugin editor:
// Set to whom.
$email->to(
$sendTo,
$entry->getName()
);10/17/2018 at 2:45 pm #475262Steven Zahm
Keymaster@ John
Change
$sendTo
to'email@client.com'
.That should be all. It should be pointed out, making this edit, the change will be lost anytime the Contact extension is updated.
Hope this helps!
10/17/2018 at 3:00 pm #475263John Boase
ParticipantI’ll give that a try…thank you again.
10/21/2018 at 7:07 pm #475494John Boase
ParticipantSorry for the late reply but just got round to testing it and it works.
Thank you again…great support!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.