ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-web
perl-win32-web
AW: MIME::LITE ... problems with Bcc
by Kristofer Wolff other posts by this author
Aug 29 2001 9:40AM messages near this date
view in the new Beta List Site
Re: MIME::LITE ... problems with Bcc | MIME::LITE ... problems with Bcc
hm,
so i fit the comma and change to standart(sendmail), I done the Bcc for
testing to Cc.
the To is ok and in the cc field of the incomming mail are all other
adresses, but: they never come in ! still the same problem !

strange things today

-----Ursprüngliche Nachricht-----
Von: Newton, Philip [mailto:Philip.Newton@[...].de]
Gesendet: Mittwoch, 29. August 2001 09:22
An: 'Kristofer Wolff'; perllist
Betreff: Re: 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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved