Sending Emails to Listings Based on Email Attributes

I have imported multiple listings into my website. All these listings are approved and contain an Email attribute with the respective email addresses of the listing owners. These listings were created by admins and not by any other users.

How to send emails to listings to claim with there profile links?

Hi,

Unfortunately, there is no such option, you need to add these new attributes as tokens for these emails, then everything will work correctly. But, in order to make such changes, it will require a custom implementation.

Can you explain how can I use email attributes as token and please share the code snippet for customization

Hi,

If you need to send bulk emails to these addresses, there is no such feature, you will need to implement it in a custom way. If you are familiar with coding or have a developer, we can provide general guidance.

Yes please provide general guideline how can I do customization because i have to send emails in bulk as I have thousands of listings

This would require creating a new function, e.g. for the template_redirect hook, which would query all the listings (probably in batches because a single request wouldn’t be enough to send out thousands of emails), you can use get_posts for hp_listing post type (WP-level way) or Making queries | Developer Docs to query listings, loop through them and send out an email to the saved email address you have for a listing (if it’s a custom attribute you can try $listing->get_attributenamehere()).

Another possible solution is exporting these emails as a list and finding a newsletter service which allows import and sending out emails, but it would be harder to personalize the email content, with custom coding you can include the listing title and link to the content.

Hope this helps

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.