Sam Varshavchik a écrit :
> Use the -f parameter to set the envelope return address.

It works perfectly, thanks.


Verbose mode for those who would encounter the same problem :

#!/usr/bin/perl -w

use MIME::Lite;

my $body = MIME::Lite -> new (
    Type => "multipart/related",
    From => 'testname <[EMAIL PROTECTED]>',
    to => 'Me <[EMAIL PROTECTED]>',
    Subject => "Test subject"
);

$body -> attach(Type => 'text/html', Data => '<html><head></head><body><img 
src="cid:1.jpg" /></body></html>');
$body -> attach(Path => 'test.jpg', Type => 'image/jpg', Id => '1.jpg');
$body -> send("sendmail","/usr/sbin/sendmail -f [EMAIL PROTECTED]");


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to