Today I rejected a submission to Links 2.0. I received the following error notice:
I changed the actual email address for privacy reasons but the domain is valid.
Can anyone tell me, is this an error within Links or is this a sendmail error?
I did a whois on the domain and it is valid so I do not understand why email could not be sent to it.
I have found the code that generates the error in db.pl (which is shown below) but do not see anything that would cause the error message:
if ($delete_list{$id}) { next ID; }
elsif (!$in{"reason-$id"}) { next ID; }
elsif (
${$links{$id}}{'Contact Email'} =~ /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/ ||
${$links{$id}}{'Contact Email'} !~ /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/) {
$errstr .= ($errstr, "<li>Email Error: <strong>$id</strong>. Record deleted, but couldn't send rejection letter. Reason: Bad Email addres: '${$links{$id}}{'Contact Email'}'.");
}
else { &html_reject_email (%{$links{$id}}); }
}
Any help would be appreciated.
By the way, I already corrected the misspelled "addres" in the code on my system.
Quote:
Error validating links: - Email Error: 3776. Record deleted, but couldn't send rejection letter. Reason: Bad Email addres: 'someonesemail@shaken-and-stirred.info'.
I changed the actual email address for privacy reasons but the domain is valid.
Can anyone tell me, is this an error within Links or is this a sendmail error?
I did a whois on the domain and it is valid so I do not understand why email could not be sent to it.
I have found the code that generates the error in db.pl (which is shown below) but do not see anything that would cause the error message:
Code:
ID: foreach $id (keys %delete_list) { if ($delete_list{$id}) { next ID; }
elsif (!$in{"reason-$id"}) { next ID; }
elsif (
${$links{$id}}{'Contact Email'} =~ /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/ ||
${$links{$id}}{'Contact Email'} !~ /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/) {
$errstr .= ($errstr, "<li>Email Error: <strong>$id</strong>. Record deleted, but couldn't send rejection letter. Reason: Bad Email addres: '${$links{$id}}{'Contact Email'}'.");
}
else { &html_reject_email (%{$links{$id}}); }
}
Any help would be appreciated.
By the way, I already corrected the misspelled "addres" in the code on my system.
