ddd
Showing
1 changed file
with
4 additions
and
3 deletions
| ... | @@ -11,12 +11,13 @@ function send_planner_email($data) | ... | @@ -11,12 +11,13 @@ function send_planner_email($data) |
| 11 | exit; | 11 | exit; |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | if(strpos($email, 'tenzing') !== false || $_SERVER['HTTP_HOST'] !="yournumbers.ca") { | 14 | if(strpos($email, 'tenzing') !== false) { |
| 15 | $to = 'support@gotenzing.com'; | 15 | $to = 'support@gotenzing.com'; |
| 16 | } else { | 16 | } else { |
| 17 | $to = get_post_meta($panner_id, 'wpsl_email', true); | 17 | $to = get_post_meta($panner_id, 'wpsl-email', true); |
| 18 | } | 18 | } |
| 19 | 19 | error_log( $panner_id); | |
| 20 | error_log( $to); | ||
| 20 | $subject = 'You\'ve got a new client prospect!'; | 21 | $subject = 'You\'ve got a new client prospect!'; |
| 21 | $headers = array('Content-Type: text/html; charset=UTF-8'); | 22 | $headers = array('Content-Type: text/html; charset=UTF-8'); |
| 22 | 23 | ... | ... |
-
Please register or sign in to post a comment