You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// fp>erwin : not super urgent but I don't like it that you add tracking twice (waste of resources). Is it possible to optimize by changing order of code?
$Debuglog->add( 'Sending mail to «'.htmlspecialchars( $to_email_address ).'» FAILED, because this email marked with spam or permanent errors.', 'error' );
3885
3885
3886
-
if( mail_is_blocked( $to_email_address ) )
3887
-
{ // Check if the email address is blocked
3888
-
$Debuglog->add( 'Sending mail to «'.htmlspecialchars( $to_email_address ).'» FAILED, because this email marked with spam or permanent errors.', 'error' );
{ // The email sending is in simulation mode, Don't send a real message:
3898
-
$send_mail_result = true;
3908
+
debug_die( 'Sending mail from «'.htmlspecialchars($from).'» to «'.htmlspecialchars($to).'», Subject «'.htmlspecialchars($subject).'» FAILED.' );
$Debuglog->add( 'Sending mail from «'.htmlspecialchars($from).'» to «'.htmlspecialchars($to).'», Subject «'.htmlspecialchars($subject).'» FAILED.', 'error' );
debug_die( 'Sending mail from «'.htmlspecialchars($from).'» to «'.htmlspecialchars($to).'», Subject «'.htmlspecialchars($subject).'» FAILED.' );
3913
-
}
3914
-
else
3915
-
{ // Soft debugging only....
3916
-
$Debuglog->add( 'Sending mail from «'.htmlspecialchars($from).'» to «'.htmlspecialchars($to).'», Subject «'.htmlspecialchars($subject).'» FAILED.', 'error' );
$Debuglog->add( 'Sent mail from «'.htmlspecialchars($from).'» to «'.htmlspecialchars($to).'», Subject «'.htmlspecialchars($subject).'».' );
3921
+
$Debuglog->add( 'Sent mail from «'.htmlspecialchars($from).'» to «'.htmlspecialchars($to).'», Subject «'.htmlspecialchars($subject).'».' );
$Form->begin_fieldset( T_('Send test email').get_manual_link( 'campaign-send-test-panel' ) );
117
+
$Form->checklist( array(
118
+
array( 'track_test_email_click_html', 1, T_('track clickthroughs in HTML version'), 1 ),
119
+
array( 'track_test_email_click_plain_text', 1, T_('track clickthroughs in plain text version'), 1 )
120
+
), 'track_test_email', T_('Track email opens') );
117
121
$Form->text_input( 'test_email_address', $Session->get( 'test_campaign_email' ), 30, T_('Email address'), T_('Fill your email address and press button "Send test email" if you want to test this list'), array( 'maxlength' => 255 ) );
* @var integer|NULL This global var stores ID of the last inserted mail log
306
306
*/
307
307
// TODO fp>erwin: why do we need a global below? Why don't we just return $DB->insert_id; ?
308
+
// erwin>fp: I agree that we should just return $DB->insert_id but this is how it was done before and I never changed it for fear of breaking something somewhere.
308
309
global$mail_log_insert_ID;
309
310
$mail_log_insert_ID = NULL;
310
311
@@ -1195,7 +1196,7 @@ function php_email_sending_test()
0 commit comments