View Issue Details

IDProjectCategoryView StatusLast Update
0012649mantisbtemailpublic2011-08-05 02:36
Reporteridale Assigned Toatrol  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Product Version1.2.3 
Summary0012649: Doesn't sends anything to Exchange emails
Description

I have set "g_validate_email = OFF" in config_inc.php file, but doesn't send anything to emails as "user@domain" (example joe@enterprise). It works fine with "well-formed" mails.

TagsNo tags attached.

Relationships

duplicate of 0012335 closeddregad PHPMailer 5.0 does not send email to local network addresses 

Activities

idale

idale

2011-01-05 11:37

reporter   ~0027814

It can be fixed modifying function "ValidateAddress($address)" in:
library/phpmailer/class.phpmailer.php

public static function ValidateAddress($address) {
if(OFF == config_get('validate_email')) {
return true;
} else {
if (function_exists('filter_var')) { //Introduced in PHP 5.2
if(filter_var($address, FILTER_VALIDATE_EMAIL) === FALSE) {
return false;
} else {
return true;
}
} else {
return pregmatch('/^(?:[\w!#\$\%\&\'*+-\/\=\?\^`{|}\~]+.)[\w!#\$\%\&\'\+-\/\=\?\^`{|}\~]+@(?:(?:(?:[a-zA-Z0-9](?:a-zA-Z0-9_-){0,61}[a-zA-Z0-9-]?.)+[a-zA-Z0-9](?:a-zA-Z0-9_-){0,61}[a-zA-Z0-9_]?)|(?:[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5]).){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])]))$/', $address);
}
}
}

atrol

atrol

2011-01-05 11:50

developer   ~0027816

is this a duplicate of 0012335 ?

idale

idale

2011-01-06 07:41

reporter   ~0027822

Yes, it's the same problem.

atrol

atrol

2011-01-06 15:38

developer   ~0027830

idale, thanks for the feedback