Skip Navigation

[Resolved] Email system not working unable to email individual advert listing users

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 21 replies, has 3 voices.

Last updated by Luo Yang 6 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1188908

Hi Luo thanks for your message however you are missing the point the email notifications are received. But the message sent to the person advertising the vehicle (so the person who uploaded their car for sale) set to [wpv-current-user info='id'] Never receives the message.

Did you try the test so place your own vehicle advert using an email address via this page

hidden link

then send once the advert is published send a message via the form on your vehicle listing page to simulate the buyer contacting the seller to ask a question (in this case you will be the buyer) You will notice the message is never received!

Notifications work fine - but trying to send a message to the advert owner (person who placed the vehicle for sale) is impossible.

We need a work around and fix asap this has been going on now for over 8 weeks and our client is screaming for the site to go live asap. cheers Paul

#1189136

Hi Luo Toolset Support team has anyone had a chance to look into this issue? I've done everything suggested still does not work. cheers Paul (sorry to keep hassling you our client is now chasing for the website to go live) we recommended your software in the website design brief scope project docs so now they are wanting to know why it doesn't work and delaying the launch.

#1189553
email-to-address.JPG
user-id.JPG

Yes, I have tried these with your duplicator package:
1) Login as administrator
2) create new "Cars for Sale" in URL
hidden link
3) Then visit the new single "Cars for Sale" post in front-end, and submit the "new-message' form, I can see the email notification is sent.

Please check the post form "new-message',
hidden link
in section "Content", you are using below codes:

[cred_generic_field field='wpcf-message-from' type='hidden' class='' urlparam='']
{
"required":0,
"validate_format":0,
"persist":1,
"generic_type":"user_id",
"default":"[wpv-current-user info='id']"

I assume you are going to use this generic field as option "Notification e-mail from" of email notification.

If it is, then there isn't such a built-in feature within Toolset form, by default you can setup a static email address in option "Notification e-mail from", and I suggest you setup a static email address value , and test again, some webserver does not send the emails without "Notification e-mail from" value.

I assume you are going to send the email to email address field value "please-enter-an-email-address-optional" (Enter an email address) of "Cars for Sale" post

if it is, then please try these:
1) Edit the post field group "Message details":
hidden link
Add a custom email field, for example "email-to-address"

2) Edit the form "new-message',
hidden link
in section "Content", you can get the "please-enter-an-email-address-optional" field value with Types shortcode:[types field='please-enter-an-email-address-optional' output='raw'][/types], use it as default value of field "email-to-address", like this

[cred_field field='email-to-address' force_type='field' class='form-control' output='bootstrap' value='[types field='please-enter-an-email-address-optional' output='raw' id='$current_page'][/types]']

It will be able to display a email field with default value.

3) Edit the email notification settings, in section "Notification e-mail recipients", choose option:
"Send notification to an email specified in an email field included in the form:"
and choose above field 'email-to-address', see screenshot: email-to-address.JPG

And test again.

For the shortcode [wpv-current-user info='id'], it is required to be a logged-in user, you can display that shortcode directly, for example: in the post form "new-message':
hidden link

in section "Content", display shortcode directly, like this:
wpv-current-user info='id': [wpv-current-user info='id']

As a logged-in user, you will be able to see your user's ID value correctly, see screenshot: user-id.JPG

See our document:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-user

Please let me know if you still need assistance from other supporters.

#1189662
car-advert flow.jpg
wp log.png

Hi Luo I've tried your setup and gone through the instructions 5 times and reninstalled but nothing works no message is delivered also see wp-mail log no listings. I have created a functionality guide to what we require (see screenshot) so a guest user visiting the website can email a particular person selling a car

Are you able to login and implement via our test site - It's already broken and does not send messages so it's not like you can be blamed for making site error. I can provide login details if required.

cheers

Paul

#1190080

Dear Paul,

Please check these:
Deactivate other plugins and switch to wordpress default theme, and test again.

If the problem still persists, please provide your test site credentials in below private message box. thanks

#1190852

Thanks for the details, I am checking it in your website, will update here if there is anything found.

#1190888

I have done below modification in your website:
Edit the post form "New message":
hidden link

in section "Content", line 49, add a line codes:

[cred_field field='email-to-address' force_type='field' class='form-control' output='bootstrap' value='[types field='please-enter-an-email-address-optional' output='raw' id='$current_page'][/types]']

In section "E-mail Notifications", set option "Send notification to an email specified in an email field included in the form:"
To: "Email to address"

Save above form, and test it in front-end:
hidden link

You should be able to see a single line input box with value "paul@tested.com", that is the email field value of current “car-for-sale” post, fill the form and submit.

You can see the email was send without any problem:
hidden link

More help:
https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/