I'm trying to set the Return-Path in emails that I send out, but I'm 
not having any luck.  Here's the code I'm trying:


use strict;
use warnings;
use MIME::Lite;

my $msg = MIME::Lite->new (
                        From          => 'sen...@example.com',
                        To            => 'i...@test.com',
                        'Return-Path' => 'bou...@sss.com',             # <--- 
why doesn't this work?
                        'Message-ID'  => 'This is only a test ID.',
                        Subject       => 'My photo for the brochure',
                        Type          => 'multipart/mixed',
                        );

$msg->attach (Type       => 'image/jpeg',
             Path        => '/home/user/admin/dollar.gif',
             Filename    => 'discount.jpg'
             );

$msg->attach (Type       => 'TEXT',
             Data        => 'I hope you can use this!'
             );

$msg->send( );


        The docs for Mime::Lite don't say much about this.  Everything works 
fine, even the 'Message-ID', but not the 'Return-Path'.  Does anyone know what 
I'm doing wrong?

Thanks,
Marc
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to