Email Notifications
Email Notifications#
The plugin sends automated emails for event registrations, reminders, and updates. All emails integrate with WooCommerce’s email system for consistent styling and management.
Email types#
Registration confirmation#
Sent when a customer completes a ticket purchase.
Trigger: Order status changes to Processing or Completed
Contents:
- Thank you message
- Event name and date
- Ticket details
- Attendee information
- Link to view tickets
Ticket delivery#
Sends ticket information with QR code.
Trigger: Order status changes to Completed
Contents:
- Ticket code
- QR code image
- Event details
- Venue information
- Instructions for check-in
Event reminder#
Reminds attendees before the event.
Trigger: Scheduled cron job (configurable days before)
Contents:
- Event is coming up
- Date and time
- Venue and directions
- What to bring
- Ticket information
Event update#
Notifies attendees when event details change.
Trigger: Manual send from event edit page
Contents:
- Event has been updated
- Changed details
- Current event information
- Apology for inconvenience
Event cancellation#
Notifies attendees when an event is cancelled.
Trigger: Event status changes to Cancelled
Contents:
- Event has been cancelled
- Refund information
- Apology message
- Contact for questions
Admin new registration#
Notifies admins of new ticket purchases.
Trigger: Order completed
Contents:
- New registration alert
- Attendee name and email
- Event name
- Ticket details
- Link to attendee record
Managing emails#
WooCommerce integration#
All emails appear in WooCommerce > Settings > Emails.
Each email shows:
- Enable/disable toggle
- Subject line setting
- Heading setting
- Template options
Enabling/disabling#
- Go to WooCommerce > Settings > Emails
- Find the EMWC email
- Click to configure
- Toggle Enable this email
- Save changes
Customizing content#
For each email:
- Go to WooCommerce > Settings > Emails
- Click the email to configure
- Edit Email subject
- Edit Email heading
- Save changes
Email templates#
Override email templates in your theme:
- Copy from
plugins/event-tickets-for-woocommerce/templates/emails/ - Paste to
your-theme/event-tickets-for-woocommerce/emails/ - Modify the template files
Template files#
| File | Purpose |
|---|---|
registration-confirmation.php | Purchase confirmation |
ticket-delivery.php | Ticket with QR code |
event-reminder.php | Pre-event reminder |
event-update.php | Change notification |
event-cancellation.php | Cancellation notice |
admin-new-registration.php | Admin notification |
Placeholders#
Use these in subject lines and templates:
| Placeholder | Value |
|---|---|
{event_name} | Event title |
{event_date} | Event start date |
{event_time} | Event start time |
{venue_name} | Venue title |
{attendee_name} | Full attendee name |
{attendee_email} | Attendee email |
{ticket_code} | Unique ticket code |
{order_number} | WooCommerce order ID |
Event reminders#
Configuration#
In Events > Settings > Notifications:
- Enable/disable reminders
- Days before event (default: 1)
- Time to send (default: 9:00 AM)
How it works#
A daily cron job:
- Finds events happening in X days
- Gets all active attendees
- Sends reminder emails
- Marks attendees as reminded (prevents duplicates)
Multiple reminders#
Send reminders at different intervals:
add_filter( 'emwc_reminder_days', function( $days ) {
return array( 7, 3, 1 ); // 1 week, 3 days, 1 day before
} );
Admin notifications#
Recipient configuration#
In Events > Settings > Notifications:
- Admin email address
- Multiple addresses (comma separated)
- Per-event override available
Notification frequency#
Options:
- Every registration
- Daily digest
- Disable
Sending manual emails#
Event update#
When you change event details:
- Edit the event
- Make changes
- Check Notify attendees of changes
- Save the event
- Email sends to all active attendees
Event cancellation#
When cancelling an event:
- Edit the event
- Change status to Cancelled
- Check Notify attendees
- Save the event
- Cancellation email sends
Email styling#
WooCommerce template#
Emails use WooCommerce’s email template, including:
- Header with logo
- Color scheme
- Footer text
- Responsive design
Customize in WooCommerce > Settings > Emails > Email Options.
Custom CSS#
Add styles to email templates:
// In your email template
<style>
.emwc-ticket-code {
font-size: 24px;
font-weight: bold;
color: #333;
}
</style>
Testing emails#
Preview#
- Go to WooCommerce > Settings > Emails
- Click an EMWC email
- Click Preview to see the template
Send test#
Use the WooCommerce email testing feature or:
- Create a test order
- Process it through completion
- Check emails received
Email logs#
Use a plugin like WP Mail Log to track sent emails and troubleshoot delivery issues.
Troubleshooting#
Emails not sending#
- Check WooCommerce email settings
- Verify SMTP is configured
- Check spam folders
- Review server mail logs
Wrong recipient#
- Verify attendee email is correct
- Check admin email settings
- Review email trigger conditions
Missing content#
- Check placeholder syntax
- Verify data exists in attendee record
- Test with complete attendee information