---
schema_version: "1"
id: 68979339d555fa6b159dff230bffc1a43325102a83d318e0462fc4e21838fc71
title: Schedule the Confirmation and Verification Emails
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/vaccine_packages_hv_schedule_notifications_mc.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.vaccine_packages_hv_schedule_notifications_mc.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 919b5fa18cb003daab6526cf2448e6ceef3e699ababdb42460a37f1bed03df6d
description: With the Developer Console, you can schedule the SendConfirmationEmails and the SendVerificationEmails Apex class
products:
  - Salesforce Platform
release: "264"
---
# Schedule the Confirmation and Verification Emails

With the Developer Console, you can schedule the `SendConfirmationEmails` and the `SendVerificationEmails` Apex class

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong> and <strong>Unlimited</strong> Editions</td></tr></tbody></table>

Complete these steps to schedule the confirmation and verification emails.

1. Schedule the `ScheduleConfirmationEmails` Apex class through the Developer Console.
    
    We suggest scheduling the ScheduleConfirmationEmails every 5 minutes.
    
    **Sample code for the confirmation email:**
    
    ```
    
    for (Integer i = 0; i < 60; i = i + 5) {
        System.schedule('Confirmation ' + i + ' mins', '0 ' + i + ' * * * ?', new safetycloud.ScheduleConfirmationEmails());
    }
    ```
2. Schedule the `ScheduleVerificationEmails` Apex class through the Developer Console.
    
    We suggest scheduling the ScheduleVerificationEmails every 10 minutes.
    
    **Sample code for the verification email:**
    
    ```
    
    for (Integer i = 0; i < 60; i = i + 10) {
        System.schedule('Verification ' + i + ' mins', '0 ' + i + ' * * * ?', new safetycloud.ScheduleVerificationEmails());
    }
    ```

#### See Also

- [Set up Marketing Cloud Engagement to Send Customer Health Verification Notifications](https://help.salesforce.com/s/articleView?id=service.vaccine_packages_send_hv_notifications_mc.htm&release=264.0.0&type=5 "Prepare and send COVID-19 health verification notifications such as confirmation and status updates to your customers. Send notifications using Content Builder and Journey Builder in Marketing Cloud Engagement.")
- [Define the Send Definitions Configured in Marketing Cloud Engagement](https://help.salesforce.com/s/articleView?id=service.vaccine_packages_hv_define_send_defintions_mc.htm&release=264.0.0&type=5 "Use Occasion objects to define the send definitions for email notifications configured in Marketing Cloud Engagement. When the criteria you define in the send definitions are met, Engagement sends email notifications to users. The context of the email that Engagement sends depends on the criteria specified in the send definition, as defined by the Occasion objects.")
- [Set up an Email Template for Health Verification](https://help.salesforce.com/s/articleView?id=service.vaccine_packages_setup_email_templates_hv.htm&release=264.0.0&type=5 "You can use Occasion Email Mapping to set up an email template for Health Verification. The template determines the content of the Health Verification email.")
- [Apex Scheduler](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm)