Lesson 3 of 4
In Progress

Step 3: Configure Email

Video Summary:

In the video, we learned how to configure the email that we’ll be sending to users after they’ve completed a lesson topic or quiz.

The delay for the email will be respected based on the time you set. To set it up, we clicked on “Add New Automation” and selected “Logged in Users” as the trigger. We then selected the trigger “User Meta gets updated with a value” under WordPress and entered the key and value.

Once the value gets updated, we used the “Send an Email” action under WordPress to send an email to the user. We could modify the default values, including the subject line and email body, and use merge fields to insert relevant information.

After setting the times per user, we clicked on “Save and Activate” to activate the triggers and email. It’s important to ensure all triggers and emails are active to avoid errors.

In the next video, we’ll log in as a user and complete some lessons to test the email. We’ll use testing tools such as WP control and email log to trigger the email without waiting for the delay.

Trigger:

  • WordPress → User Meta Gets Updated with a Value

Meta Key = ld_notification_triggered
Meta Value = true 

Actions:

WordPress → Send an Email

Merge Fields:

Course Name: {user_meta:ld_notification_course} 

Title of the last item completed: {user_meta:ld_notification_last_item_completed} 

Next Lesson Title: {user_meta:ld_notification_next_lesson_title} 

Next Lesson URL: {user_meta:ld_notification_next_lesson_url}

Sample Email:

Subject Line:

Keep Up Your Learning Momentum with {user_meta:ld_notification_course}

Dear {first_name},

Congratulations on completing {user_meta:ld_notification_last_item_completed}! We hope that you found it insightful and that you're excited to move on to the next one.

Your next lesson is called "{user_meta:ld_notification_next_lesson_title}" and it's waiting for you. We recommend that you log in and start the lesson as soon as possible to keep up the momentum of your learning journey.

To access the next lesson, please click on this link: {user_meta:ld_notification_next_lesson_url}

Remember, regular and consistent learning is the key to success. We believe that you have the potential to achieve great things with {user_meta:ld_notification_course} and we are here to support you every step of the way.

If you have any questions or need any help, please don't hesitate to contact us. We are always happy to help.

Best regards