Skip Menu |

This queue is for tickets about the MIME-Lite CPAN distribution.

Report information
The Basics
Id: 35549
Status: new
Priority: 0/
Queue: MIME-Lite

People
Owner: Nobody in particular
Requestors: craig [...] constantine.name
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: minor feature request: support pass-thru of 'NOTIFY' option for 'RCPT TO'
Date: Wed, 30 Apr 2008 10:46:26 -0400
To: bug-MIME-Lite [...] rt.cpan.org
From: craig [...] constantine.name
Adding "Notify" to the @_recip_opts array will allow users to specify NOTIFY options to be passed through to Net::SMTP. This would then permit... $msg = new MIME::Lite( To => 'foo@example.com', From => 'foo@example.com', Subject => 'This is a simple test message', Type => 'multipart/alternative', ); $mime->attach( Type => 'text/plain', Data => [ "hello world!" ] ); $msg->send('smtp', smtp.example.com, Timeout => 300, Debug => 1, Notify => ['SUCCESS'] ); Here's a diff against V3.021: --- Lite.pm.ORIG 2008-04-30 10:37:14.000000000 -0400 +++ Lite.pm 2008-04-30 10:42:07.000000000 -0400 @@ -2764,6 +2764,12 @@ and some are not valid. See L<Net::SMTP::recipient()|Net::SMTP/recipient> for details. +=item Notify + +The value should be an array of SMTP delivery notification words. "NEVER" +suppresses all delivery notices, or a combination of "SUCCESS", "FAILURE" +and/or "DELAY". + =item AuthUser Authenticate with L<Net::SMTP::auth()|Net::SMTP/auth> using this username. @@ -2811,7 +2817,7 @@ # external opts my @_mail_opts = qw( Size Return Bits Transaction Envelope ); -my @_recip_opts = qw( SkipBad ); +my @_recip_opts = qw( SkipBad Notify ); my @_net_smtp_opts = qw( Hello LocalAddr LocalPort Timeout ExactAddresses Debug ); # internal: qw( NoAuth AuthUser AuthPass To From Host);