sub categories now sent in email, testing checkout email.
Showing
| <?php | ||
| $to_mail = get_option('vq_lms_payment_notify_email'); | ||
| var_dump($to_mail); | ||
| die(); | ||
Please
register
or
sign in
to reply
|
||
| $order_id = $_GET['order_id']; | ||
| ... | ... | @@ -35,6 +39,10 @@ if($data && (string) $req_id === (string) $data->application->request_id) { |
| /* Email Configuration */ | ||
| $to = get_option('vq_lms_payment_notify_email'); | ||
| //$to = "ammaryasir14@gmail.com"; | ||
| //var_dump($to); | ||
| $sub = get_option('vq_lms_payment_email_subject'); | ||
| $body = get_option('vq_lms_payment_email_template'); | ||
| ... | ... | @@ -49,8 +57,9 @@ if($data && (string) $req_id === (string) $data->application->request_id) { |
| $body = str_replace('[[STATUS]]', $status, $body); | ||
| $body = str_replace('[[RESPONSE]]', $pmsg, $body); | ||
| $mail_status = wp_mail($to, $sub, $body); | ||
| if(wp_mail($to, $sub, $body)) { | ||
| if($mail_status) { | ||
| update_post_meta($order_id, 'email_status', 1); | ||
| } else { | ||
| update_post_meta($order_id, 'email_status', 0); | ||
| ... | ... | |