Skip to content

Email Notifications

SpecCart includes custom email notifications to keep customers informed throughout the prescription workflow.

EmailSent toWhen
Prescription ReminderCustomerA Send Later order is placed; the daily reminder check; staff send a reminder; the customer asks for a new link
Prescription VerifiedCustomerStaff verify the prescription
WooCommerce Processing orderCustomerSent by WooCommerce when a verify, or a prescription arriving through an upload link, moves the order to Processing
Lab orderYour lab email addressesStaff click Send to lab, or on verify when auto-send is switched on
Your fitting photo for order #[number]CustomerMeasurements 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 emailMeasurements 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.

SpecCart adds two custom email types to WooCommerce:

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

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

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

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.

  1. Navigate to WooCommerce > Settings
  2. Click the Emails tab
  3. Find Prescription Reminder and Prescription Verified in the list
  4. Click on individual email types to configure

Configure the reminder email:

  1. Click Prescription Reminder in email list
  2. 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

Configure the verification confirmation email:

  1. Click Prescription Verified in email list
  2. 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

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

To customise email templates beyond the settings:

  1. Create directory: wp-content/themes/your-theme/woocommerce/emails/
  2. Copy template from plugin:
    • Source: wp-content/plugins/speccart/templates/emails/
    • Copy prescription-reminder.php or prescription-verified.php
  3. Paste into your theme’s woocommerce/emails/ directory
  4. Edit the copied template file
  5. Changes persist through plugin updates

For plain text versions:

  1. Create directory: wp-content/themes/your-theme/woocommerce/emails/plain/
  2. Copy from: wp-content/plugins/speccart/templates/emails/plain/
  3. Edit copied files

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

To test email appearance:

  1. Create a test order with lens configuration
  2. Select “Send Later” for prescription
  3. Check email received
  4. Verify all elements display correctly
  5. Test magic link functionality

To manually send a reminder:

  1. Open order in admin
  2. Below the Prescription Verification section, click Send Prescription Reminder (shown while the order is awaiting its prescription)
  3. Confirmation message appears: “Prescription reminder email has been sent.”
  4. Check customer email inbox

To test verification email:

  1. Create test order
  2. Mark prescription as verified
  3. Check customer email
  4. Verify content and formatting

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

Monitor email sending:

  1. Install email logging plugin (WP Mail Logging, etc.)
  2. Track all SpecCart emails sent
  3. Verify delivery status
  4. Debug failed sends

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.

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:

  1. Install WP Crontrol plugin
  2. Navigate to Tools > Cron Events
  3. Find speccart_send_prescription_reminders
  4. Verify schedule is set

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.

In Prescription Reminder additional content:

Need help uploading your prescription? Contact our support team:
Phone: 020 7946 0000
Live Chat: Available Mon-Fri 9am-5pm

In Prescription Reminder subject:

Action Required: Upload Prescription for Order #{order_number}

Check these common issues:

  1. Email disabled: Verify email is enabled in settings
  2. WooCommerce emails disabled: Check WooCommerce > Settings > Emails
  3. Server mail function: Test with WP Mail SMTP
  4. Cron not running: Check WP Crontrol for scheduled events
  5. Order status: Ensure order status triggers email

If customer reports missing emails:

  1. Check spam/junk folder
  2. Verify email address in order is correct
  3. Check email logs for send confirmation
  4. Test email deliverability to that domain
  5. Resend manually if needed

If upload link is broken:

  1. Check link hasn’t expired (7-day expiration)
  2. Check it is the newest link: each reminder from the daily check sends a new link and the older one stops working
  3. Check it has not been used: a link works once
  4. Test link in different browser
  5. 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

If emails show wrong information:

  1. Clear template cache
  2. Verify template overrides are correct
  3. Check for theme conflicts
  4. Test with default WordPress theme