Support » Plugin: Birthday Emails » Birthday Message Notification

  • Hi, would it be possible to edit the notification message that gets sent to an email(s). Instead of it saying “A birthday email was sent to (person)” I would like to change it to something else. Is that possible?

    If not, alternatively, I would like an an email to be sent to everyone in my office which lets them know that a person has a birthday, and not just to the person who has the birthday. Is this possible?

    Thank you!

Viewing 1 replies (of 1 total)
  • Aliendex


    You can change the string inside the birthday-emails.php located in /wp-content/plugins/birthday-emails

    This is the part of the code you need to find and check:

     * This function sends a Notification email about the birthday wishes just sent if the option is selected in the admin options page.
    if ( ! function_exists( 'cjl_bdemail_sendNotification' ) ) {
        function cjl_bdemail_sendNotification($displayName)
            $options = get_option('cjl_bdemail_settings');
            $fromName = $options['cjl_bdemail_text_field_From_Name'];
            $fromEmail = $options['cjl_bdemail_text_field_From_Email'];
            $headers = [];
            if ($fromEmail) $headers[] = "From: " . 'WebMaster @ ' . get_bloginfo('name') . " <$fromEmail>";
            if ($fromEmail) $headers[] = "Reply-to: $fromEmail";
            $headers[] = 'Content-type: text/plain; charset=utf-8';
            $headers = implode("\r\n", $headers);
            $checked = '';
            if (array_key_exists('cjl_bdemail_checkbox_Notify_YesNo', $options)) {
                if ($options['cjl_bdemail_checkbox_Notify_YesNo']) {
                    $checked = isset($options['cjl_bdemail_text_field_Notification_Email']) ? esc_attr($options['cjl_bdemail_text_field_Notification_Email']) : '';
            if ($checked) {
                wp_mail($checked, __('Notification of Birthday Email Sent', 'birthday-emails'), __('A birthday email was sent to ','birthday-emails') . $displayName . '.', $headers);

    To be specifical, change 'Notification of Birthday Email Sent' and 'A birthday email was sent to ' to whatever text you want to display.

    I will also like to have a custom page in the settings to change the behaviour and the look of the notifications.

    Also, multiple email can be added for notification, you need to use the comma for each email in the “Email Address for Notification” field

    • This reply was modified 8 months ago by Aliendex.
Viewing 1 replies (of 1 total)
  • The topic ‘Birthday Message Notification’ is closed to new replies.