| @@ 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 | } |
|
| @@ 1702-1717 (lines=16) @@ | ||
| 1699 | $admin_bcc = true; |
|
| 1700 | } |
|
| 1701 | ||
| 1702 | if($admin_bcc === true){
|
|
| 1703 | $sent = wp_mail($to, $subject, $message, $headers); |
|
| 1704 | if( ! $sent ) {
|
|
| 1705 | if ( is_array( $to ) ) {
|
|
| 1706 | $to = implode( ',', $to ); |
|
| 1707 | } |
|
| 1708 | $log_message = sprintf( |
|
| 1709 | __( "Email from GeoDirectory failed to send.\nMessage type: %s\nSend time: %s\nTo: %s\nSubject: %s\n\n", 'geodirectory' ), |
|
| 1710 | $message_type, |
|
| 1711 | date_i18n( 'F j Y H:i:s', current_time( 'timestamp' ) ), |
|
| 1712 | $to, |
|
| 1713 | $subject |
|
| 1714 | ); |
|
| 1715 | geodir_error_log( $log_message ); |
|
| 1716 | } |
|
| 1717 | } |
|
| 1718 | ||
| 1719 | } |
|
| 1720 | } |
|