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 => '[email protected]',
To => '[email protected]',
'Return-Path' => '[email protected]', # <---
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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/