Email Notifications
SpecCart includes custom email notifications to keep customers informed throughout the prescription workflow.
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)
- At 3 days, 7 days, and 14 days after order (automated reminders)
- Manually via “Send Reminder” button in order admin
Purpose: Remind customers to upload their prescription using the magic upload link.
Includes:
- Order number and date
- Magic link for secure prescription upload
- Upload instructions
- Email contact for prescription submission
- Fax number (if configured)
- Reminder that order is on hold pending prescription
2. Prescription Verified
Section titled “2. Prescription Verified”When sent:
- When admin marks prescription as verified
- Triggered automatically by verification action
Purpose: Confirm prescription was accepted and order is processing.
Includes:
- Order number and date
- Confirmation that prescription was verified
- Verification notes (if admin added any)
- Next steps (order processing timeline)
- Contact information for questions
Standard WooCommerce Emails (Modified)
Section titled “Standard WooCommerce Emails (Modified)”SpecCart enhances these standard WooCommerce emails:
- Order On Hold: Includes magic link URL when order held for prescription
- Order Processing: Sent when prescription verified and order released
- 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 when prescriptions are verified:
- Auto-send on verification: Triggered when prescription marked as verified
- Configurable addresses: Set lab email addresses in Settings > General > Lab Email Settings
- Complete order data: Includes lens configuration, prescription data, and customer information
- PDF attachments: Optional prescription file attachment
- Email history: Track all lab emails sent for each order
Email Settings
Section titled “Email Settings”Accessing Email Settings
Section titled “Accessing Email Settings”- Navigate to WooCommerce > Settings
- Click the Emails tab
- Scroll to the SpecCart section
- 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 prescription email from SpecCart settings
- Configure at: SpecCart > Settings > General > Prescription Email
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”Configure contact details customers can use to submit prescriptions:
- Navigate to SpecCart > Settings > General
- Find Prescription Submission section:
Prescription Email
- Email address for prescription submissions
- Displayed in reminder emails
- Used as Reply-To address
- Example:
[email protected]
Prescription Fax
- Optional fax number for prescription submissions
- Displayed in reminder emails if provided
- Leave blank if not accepting fax submissions
Email Content Customization
Section titled “Email Content Customization”Using Template Overrides
Section titled “Using Template Overrides”To customize 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
Prescription Verified:
$order- WC_Order object$email_heading- Email heading text$additional_content- Additional content from settings$verification_notes- Admin notes from verification$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
- Scroll to SpecCart Actions section
- Click Send Prescription Reminder
- Confirmation message appears
- 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 3: First automated reminder
- Day 7: Second automated reminder
- Day 14: Third automated reminder
Cron Configuration
Section titled “Cron Configuration”Reminders use WordPress cron:
- Schedule: Daily at 9:00 AM server time
- 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
Customization Examples
Section titled “Customization 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 business days for lens crafting and shipping.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: 1-800-555-0123Live Chat: Available Mon-Fri 9am-5pm ESTExample 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)
- Verify token meta exists on order
- Test link in different browser
- Regenerate link and resend reminder
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