Subject: | ENVID / ORCPT bug |
Date: | Wed, 17 Nov 2010 15:08:15 +0100 |
To: | bug-Mail-Sender [...] rt.cpan.org |
From: | "Massimo \"CtRiX\" Cetra" <ctrix [...] navynet.it> |
Hello,
in Sender.pm at about line 1068, function _prepare_ESMTP, ENVID and
ORCPT parameters are encoded with quoted printable.
This is not correct as both parameters should not include (for example
the '=' char) (and quoted printable does).
The right way is to encode such values is by using XTEXT (See
http://tools.ietf.org/html/rfc3461)
Of you Open the sender with code like this:
$sender->Open( {
to => $to,
subject => 'Test mail',
msg => "I'm sending you the list you wanted.",
confirm => "delivery, reading",
ESMTP => {
NOTIFY => 'SUCCESS,FAILURE,DELAY',
RET => 'HDRS',
ORCPT =>
'this+donot=work@example.com',
ENVID => 'iuhsdfobwoe8t237',
SIZE => 30000,
},
} );
and send the email for example, to postfix, it will be rejected with
Show quoted text
>> 501 5.5.4 Error: Bad ORCPT parameter syntax
Thanks,
Max