| @@ 869-885 (lines=17) @@ | ||
| 866 | $admin_bcc = true; |
|
| 867 | } |
|
| 868 | ||
| 869 | if($admin_bcc===true){
|
|
| 870 | $sent = wp_mail($to, $subject, $message, $headers); |
|
| 871 | ||
| 872 | if( ! $sent ) {
|
|
| 873 | if ( is_array( $to ) ) {
|
|
| 874 | $to = implode( ',', $to ); |
|
| 875 | } |
|
| 876 | $log_message = sprintf( |
|
| 877 | __( "Email from GeoDirectory failed to send.\nMessage type: %s\nSend time: %s\nTo: %s\nSubject: %s\n\n", 'geodirectory' ), |
|
| 878 | $message_type, |
|
| 879 | date_i18n( 'F j Y H:i:s', current_time( 'timestamp' ) ), |
|
| 880 | $to, |
|
| 881 | $subject |
|
| 882 | ); |
|
| 883 | geodir_error_log( $log_message ); |
|
| 884 | } |
|
| 885 | } |
|
| 886 | ||
| 887 | } |
|
| 888 | } |
|
| @@ 1710-1725 (lines=16) @@ | ||
| 1707 | $admin_bcc = true; |
|
| 1708 | } |
|
| 1709 | ||
| 1710 | if($admin_bcc === true){
|
|
| 1711 | $sent = wp_mail($to, $subject, $message, $headers); |
|
| 1712 | if( ! $sent ) {
|
|
| 1713 | if ( is_array( $to ) ) {
|
|
| 1714 | $to = implode( ',', $to ); |
|
| 1715 | } |
|
| 1716 | $log_message = sprintf( |
|
| 1717 | __( "Email from GeoDirectory failed to send.\nMessage type: %s\nSend time: %s\nTo: %s\nSubject: %s\n\n", 'geodirectory' ), |
|
| 1718 | $message_type, |
|
| 1719 | date_i18n( 'F j Y H:i:s', current_time( 'timestamp' ) ), |
|
| 1720 | $to, |
|
| 1721 | $subject |
|
| 1722 | ); |
|
| 1723 | geodir_error_log( $log_message ); |
|
| 1724 | } |
|
| 1725 | } |
|
| 1726 | ||
| 1727 | } |
|
| 1728 | } |
|