Support

Home Forums Event Espresso Premium Custom Message for Email

Custom Message for Email

Posted: June 24, 2016 at 3:12 pm


Chris

June 24, 2016 at 3:12 pm

One of my users asked if she could alter the email per event(like ee3). I explained she could but she would have to create a unique template each time. All she wants to do is have some custom text per event show up on the event’s confirmation email and not on the event page it’s self. Is there a way this can be done and if not can it be added to your trello board?


Lorenzo Orlando Caum

  • Support Staff

June 25, 2016 at 11:37 am

Hi Chris,

Yes, you can do that by duplicating a default email type and then assigning it to an event.

Here is a tutorial on how to do that:

https://eventespresso.com/wiki/how-to-create-a-custom-message-template/


Lorenzo


Chris

June 27, 2016 at 9:17 am

I think you may have misunderstood my request. I understand we can create many many different custom templates. What we feel would be useful is a small custom field we could pass to a message template that would be unique. We have multiple departments with various different people creating events. This could potentially lead to an unwieldy amount of custom templates. Where as she really only needs one template with the ability to swap out a small amount of text per event.

Thanks,
Chris


Tony

  • Support Staff

June 27, 2016 at 10:21 am

Hi Chris,

You could use the [EVENT_META_*] shortcode for this within a single message template.

[EVENT_META_*] calls a wrapper for get_post_meta() and passes whatever text you set after the * as the key to pull.

So [EVENT_META_*Email Description] would basically do:

get_post_meta( $event->ID, 'Event Description', $single = FALSE )

and return the value for the shortcode.

So you could setup a meta box on the EE event in which the user can enter the content they want to include within the email and then simply call [EVENT_META_*Email Description] within the email to call it for each specific event.

Would that work?


mpurse

June 28, 2016 at 1:57 am

Hi Tony,

I want to be able to do this as well. But currently, the newsletter template does now allow you to pull in custom fields.

I want to be able to create a standard reminder template that includes start dates and times of the event – currently these fields are not possible to pull into a newsletter type message.

Then after each event we send out follow up emails with email links to notes, which we used to pull in using a custom meta on each event. But that’s no possible on EE4.

This means we have to manually update a custom message for each event. Which would be ok, but we have just discovered that if you do a a message too quickly after another one, it overwrites the previously ‘sent’ mail (which is probably queued for sending still). Just had a terrible week if incorrect reminders going out before I discovered that little problem….

It would be great to be able to pull in these additional fields and custom meta into templates.


Tony

  • Support Staff

June 30, 2016 at 11:04 am

Yeah I understand.

Message uses the template content at the time of generating so if you alter the template between the time they are queued, generated and sent they will appear to receive the wrong template.

One way to work around that is to create 2 (or possibly more) message templates, setup your initial batch of messages to send and then on the next batch uses another custom newsletter template and so on.

It would be great to be able to pull in these additional fields and custom meta into templates.

Fairly recently we made changes to how the newsletter message type works which is a step closer to allowing more shortcodes to be available within that message type, as it stands they are still not available, but we are working it 🙂

The support post ‘Custom Message for Email’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 3 years, 1 month ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!