Email Notifications
SpecCart includes custom email notifications to keep customers informed throughout the prescription workflow.
Every Email SpecCart Sends
Section titled “Every Email SpecCart Sends”| Sent to | When | |
|---|---|---|
| Prescription Reminder | Customer | A Send Later order is placed; the daily reminder check; staff send a reminder; the customer asks for a new link |
| Prescription Verified | Customer | Staff verify the prescription |
| WooCommerce Processing order | Customer | Sent by WooCommerce when a verify, or a prescription arriving through an upload link, moves the order to Processing |
| Lab order | Your lab email addresses | Staff click Send to lab, or on verify when auto-send is switched on |
| Your fitting photo for order #[number] | Customer | Measurements module only: the order reaches Processing with a fitting height to be sent later, or staff click Request fitting photo |
| Measurements received for order #[number] | Your lab email addresses, or the site’s admin email | Measurements module only: a fitting photo arrives through a link |
Only the first two are WooCommerce emails you can switch off and edit at WooCommerce > Settings > Emails.
Email Types
Section titled “Email Types”SpecCart adds two custom email types to WooCommerce:
1. Prescription Reminder
Section titled “1. Prescription Reminder”When sent:
- Immediately when customer selects “Send Later” (initial reminder, with a new upload link)
- By the daily reminder check, 7 and 14 days after the order was put on hold (each with a new upload link)
- When staff click Regenerate & Email New Link on an order whose link has expired (with a new upload link)
- When the customer asks for a new link from the expired-link page (with a new upload link)
- Manually via the Send Prescription Reminder button on the order, Send reminder on the Prescriptions screen, or the Send Rx Reminder bulk action. These reminders carry no upload link
Purpose: Remind customers to upload their prescription using the magic upload link.
Includes:
- Order number
- An Upload Prescription Now button for the secure upload page, when the email carries a link, with “This secure link expires in 7 days”
- An invitation to reply to the email with a photo or scan of the prescription
- Reminder that order cannot be processed until the prescription arrives
- Order details and customer details
2. Prescription Verified
Section titled “2. Prescription Verified”When sent:
- When staff mark the prescription as verified, from the order screen, the Prescriptions screen or the Mark Rx Verified bulk action
- Triggered automatically by verification action, whether or not the order moves to Processing
Purpose: Confirm prescription was accepted and order is processing.
Includes:
- Order number
- Confirmation that prescription was verified, with the date and time
- Next steps (order processing and shipping confirmation)
- Order details and customer details
Standard WooCommerce Emails (Modified)
Section titled “Standard WooCommerce Emails (Modified)”SpecCart enhances these standard WooCommerce emails:
- Every order email: Includes a Lens Configuration Details section for each lens item. Manually entered prescription values appear in customer emails; admin emails also show the file ID of an upload, and, when PD requirement is Required with a default and the customer left the PD on “63 (average)”, the line “Shop default, not chosen by the customer” under the PD (see Orders with a default PD). Customer emails print the 63 as any PD, with no extra words
- Order On hold: Includes a Prescription Reminder box with the upload link while the order is awaiting its prescription (as does any other customer email sent while it waits)
- Order Processing: Sent by WooCommerce when the verify or an upload link moves the order to Processing
- Order Completed: Standard completion email
Lab Email Automation
Section titled “Lab Email Automation”SpecCart includes automated lab email functionality that sends order details to your lab:
- Send to lab: A button on the SpecCart > Prescriptions screen once the prescription is verified
- Auto-send on verification: When Auto-send to lab when prescription is verified is switched on, sent once when the prescription is verified
- Configurable addresses: Set lab email addresses in SpecCart > Settings > General, Lab email settings
- PDF attachments: The lab PDF of each lens item, with the lens configuration, prescription and measurements
- Email history: The order notes and the Prescriptions screen record when it was sent and by whom
See Automation for details.
Fitting Photo Emails (Measurements Module)
Section titled “Fitting Photo Emails (Measurements Module)”With the Measurements module switched on:
- When an order reaches Processing and a varifocal, bifocal or occupational line’s fitting height is to be sent later, the customer is emailed one Take your fitting photo link per such line. This is sent once per order, and the order note “Fitting photo link sent. We emailed it to [email].” is added
- When staff click Request fitting photo on the order, the customer is emailed a link to take the photo. The link works until the order is Completed or cancelled, and can be used again to retake
- When a fitting photo arrives through a link, a Measurements received for order #[number] email goes to your lab email addresses (or the site’s admin email when none are set)
The two customer emails use the shop’s WooCommerce email styling; the Measurements received email is plain text. None of them has settings of its own.
Email Settings
Section titled “Email Settings”Accessing Email Settings
Section titled “Accessing Email Settings”- Navigate to WooCommerce > Settings
- Click the Emails tab
- Find Prescription Reminder and Prescription Verified in the list
- Click on individual email types to configure
Prescription Reminder Settings
Section titled “Prescription Reminder Settings”Configure the reminder email:
- Click Prescription Reminder in email list
- Configure settings:
Enable/Disable
- Toggle to activate or deactivate reminder emails
- Default: Enabled
Subject Line
- Default:
[{site_title}]: Prescription Reminder for Order #{order_number} - Available placeholders:
{site_title},{order_date},{order_number}
Email Heading
- Default: “We Need Your Prescription”
- Appears as main heading in email body
Additional Content
- Custom text below main email content
- Default: “Thank you for your order! Please send your prescription soon so we can complete your order.”
- Use for return policies, contact info, or special instructions
Email Type
- HTML (styled email with branding)
- Plain Text (simple text-only)
- Multipart (both HTML and plain text)
Reply-To Address
- Automatically set to the prescription email address (see below), so a customer’s reply with their prescription reaches it
Prescription Verified Settings
Section titled “Prescription Verified Settings”Configure the verification confirmation email:
- Click Prescription Verified in email list
- Configure settings:
Enable/Disable
- Toggle verification confirmation emails
- Default: Enabled
Subject Line
- Default:
[{site_title}]: Prescription Verified - Order #{order_number} - Placeholders:
{site_title},{order_date},{order_number}
Email Heading
- Default: “Your Prescription Has Been Verified”
Additional Content
- Default: “Your order is now being processed and will ship soon!”
- Add estimated processing time or shipping information
Email Type
- HTML, Plain Text, or Multipart
Prescription Contact Information
Section titled “Prescription Contact Information”The prescription email address and fax number are read from two WordPress options. Version 1.8.0 has no settings screen for them:
Prescription Email (speccart_prescription_email)
- Email address for prescription submissions
- Used as Reply-To address on the Prescription Reminder email
- Shown to customers on the order confirmation page of a Send Later order
- Defaults to the site’s admin email address
- Example:
[email protected]
Prescription Fax (speccart_prescription_fax)
- Optional fax number for prescription submissions
- Passed to the email templates as
$prescription_fax; the default templates do not print it - Leave blank if not accepting fax submissions
Email Content Customisation
Section titled “Email Content Customisation”Using Template Overrides
Section titled “Using Template Overrides”To customise email templates beyond the settings:
- Create directory:
wp-content/themes/your-theme/woocommerce/emails/ - Copy template from plugin:
- Source:
wp-content/plugins/speccart/templates/emails/ - Copy
prescription-reminder.phporprescription-verified.php
- Source:
- Paste into your theme’s
woocommerce/emails/directory - Edit the copied template file
- Changes persist through plugin updates
Plain Text Templates
Section titled “Plain Text Templates”For plain text versions:
- Create directory:
wp-content/themes/your-theme/woocommerce/emails/plain/ - Copy from:
wp-content/plugins/speccart/templates/emails/plain/ - Edit copied files
Available Template Variables
Section titled “Available Template Variables”In email templates, you have access to:
Prescription Reminder:
$order- WC_Order object$email_heading- Email heading text$additional_content- Additional content from settings$prescription_email- Prescription email address$prescription_fax- Prescription fax number$magic_link_url- Secure upload link for customer (empty when the reminder carries no link)
Prescription Verified:
$order- WC_Order object$email_heading- Email heading text$additional_content- Additional content from settings$verification_notes- Staff notes from verification (not printed by the default template)$verified_by- Staff member who verified (WP_User object)$verified_date- Verification timestamp
Testing Emails
Section titled “Testing Emails”Send Test Email
Section titled “Send Test Email”To test email appearance:
- Create a test order with lens configuration
- Select “Send Later” for prescription
- Check email received
- Verify all elements display correctly
- Test magic link functionality
Manual Reminder Send
Section titled “Manual Reminder Send”To manually send a reminder:
- Open order in admin
- Below the Prescription Verification section, click Send Prescription Reminder (shown while the order is awaiting its prescription)
- Confirmation message appears: “Prescription reminder email has been sent.”
- Check customer email inbox
Verification Email Test
Section titled “Verification Email Test”To test verification email:
- Create test order
- Mark prescription as verified
- Check customer email
- Verify content and formatting
Email Deliverability
Section titled “Email Deliverability”Ensuring Emails Reach Customers
Section titled “Ensuring Emails Reach Customers”To improve email deliverability:
Use SMTP Plugin
- Install WP Mail SMTP or similar plugin
- Configure with transactional email service (SendGrid, Mailgun, etc.)
- Prevents emails going to spam
Configure SPF/DKIM
- Add SPF record to DNS
- Configure DKIM authentication
- Verify domain ownership
Use Real Email Address
- Don’t use noreply@ addresses
- Use monitored inbox for prescription email
- Respond to customer replies
Test Spam Filters
- Send test emails to Gmail, Outlook, Yahoo
- Check if emails land in spam
- Adjust content if flagged
Email Logs
Section titled “Email Logs”Monitor email sending:
- Install email logging plugin (WP Mail Logging, etc.)
- Track all SpecCart emails sent
- Verify delivery status
- Debug failed sends
Email Scheduling
Section titled “Email Scheduling”Reminder emails are sent automatically:
- Day 0: Initial reminder when order placed (if “Send Later” selected)
- Day 7: Second reminder
- Day 14: Third and last automatic reminder
Days are counted from when the order was put on hold. Every reminder sent, including manual ones, counts towards the three, so a manual reminder takes the place of the next automatic one.
Cron Configuration
Section titled “Cron Configuration”Reminders use WordPress cron:
- Schedule: Daily, first scheduled for 9:00 AM the day after activation
- Action hook:
speccart_send_prescription_reminders - Processes all orders awaiting prescriptions
- Sends reminder based on days since order
To verify cron:
- Install WP Crontrol plugin
- Navigate to Tools > Cron Events
- Find
speccart_send_prescription_reminders - Verify schedule is set
Customisation Examples
Section titled “Customisation Examples”Example 1: Add Lab Processing Time
Section titled “Example 1: Add Lab Processing Time”In Prescription Verified additional content:
Your prescription has been verified! Your order will be sent to our lab within 24 hours.Please allow 7-10 working days for lens making and delivery.Example 2: Add Support Contact
Section titled “Example 2: Add Support Contact”In Prescription Reminder additional content:
Need help uploading your prescription? Contact our support team:Email: [email protected]Phone: 020 7946 0000Live Chat: Available Mon-Fri 9am-5pmExample 3: Add Urgency
Section titled “Example 3: Add Urgency”In Prescription Reminder subject:
Action Required: Upload Prescription for Order #{order_number}Troubleshooting
Section titled “Troubleshooting”Emails Not Sending
Section titled “Emails Not Sending”Check these common issues:
- Email disabled: Verify email is enabled in settings
- WooCommerce emails disabled: Check WooCommerce > Settings > Emails
- Server mail function: Test with WP Mail SMTP
- Cron not running: Check WP Crontrol for scheduled events
- Order status: Ensure order status triggers email
Customer Not Receiving Emails
Section titled “Customer Not Receiving Emails”If customer reports missing emails:
- Check spam/junk folder
- Verify email address in order is correct
- Check email logs for send confirmation
- Test email deliverability to that domain
- Resend manually if needed
Magic Link Not Working
Section titled “Magic Link Not Working”If upload link is broken:
- Check link hasn’t expired (7-day expiration)
- Check it is the newest link: each reminder from the daily check sends a new link and the older one stops working
- Check it has not been used: a link works once
- Test link in different browser
- When it has expired, use Regenerate & Email New Link on the order, or ask the customer to request a new link from the expired-link page
Wrong Email Content
Section titled “Wrong Email Content”If emails show wrong information:
- Clear template cache
- Verify template overrides are correct
- Check for theme conflicts
- Test with default WordPress theme
Related Topics
Section titled “Related Topics”- Learn about Order Workflow
- Configure Automation Settings
- Review Prescription Verification process