Re: MIME::LITE ... problems with Bcc
by Newton, Philip other posts by this author
Aug 29 2001 8:22AM messages near this date
view in the new Beta List Site
complex structures in $Session
|
AW: MIME::LITE ... problems with Bcc
Kristofer Wolff wrote:
> $IN{from}= $from;
> $IN{to}= shift(@sendto);
> $IN{bcc}= join(" ;", @sendto);
This looks wrong. Multiple recipients should be separated by commas, not
semicolons. (Or, in other words, use RFC 822 or RFC 2822 syntax, not Outlook
syntax.) So joining with ',' or ', ' is probably better.
> [...]
>
> $msg = MIME::Lite->new(
> From => "$IN{from}",
> To => "$IN{to}",
> Bcc => "$IN{bcc}",
> Subject => "$IN{subject}",
> Type => 'multipart/related'
> );
You don't need those quotes around the variables.
>
> [...]
>
> MIME::Lite->send('sendmail', "/usr/lib/sendmail -t");
> $msg->send;
As I read the docs (the README for MIME::Lite 2.117), the default method is
'sendmail' anyway, using '/usr/lib/sendmail -t -oi -oem', so you probably
don't need to fiddle with it. (And are you sure you don't want at least -oi
in there?)
> The TO is correct, but the Bcc dosn't come in !
> any help out there ???
I *think* that what's happening is that you're telling sendmail "please send
the messages to the addresses in To:, Cc:, and Bcc: lines", and then you
feed sendmail an illegal Bcc: line.
Cheers,
Philip
--
Philip Newton <Philip.Newton@[...].de>
All opinions are my own, not my employer's.
If you're not part of the solution, you're part of the precipitate.
_______________________________________________
Perl-Win32-Web mailing list
Perl-Win32-Web@[...].com
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
Thread:
Newton, Philip
Kristofer Wolff
|