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-users
perl-win32-users
Mime::Lite question.
by Christopher Hahn other posts by this author
Nov 6 2002 12:39AM messages near this date
view in the new Beta List Site
RE: TK - stop dos window minimising? | Disabling the x in a window.
Hello,

I have this small test script that:
=======================================
use Mime::Lite;

my $ToList = [ "user1\@server.com", "user2\@server.com"];
my $ebody = "TEST EMAIL BODY";
my $msg;

# Define email object
$msg = MIME::Lite-> new(
          From    => 'user1@server.com',
          Subject => "Test Email",
          Type    => 'multipart/related'
       );

$msg-> add("To" => $ToList);

$msg-> attach(Type => 'text/html', Data => $ebody);

MIME::Lite-> send('smtp', "smtp.server.com", Timeout=>60);

$msg-> send;
=======================================

Only the first recipient, in ToList, receives the email.  The second
recipient
appears on the header and look fine.  In fact, if the first recipient
executes
a Reply-To-All (we are using "LookOut" (sic) for email here) then both users
get a copy of the reply.  Reversing the order of the recipients switches who
get a copy.

I first added the users one-by-one, but assigning a arrayref is allowed.
Anyhow
they both had the same bad effect. I do not yet see what I am doing wrong.  
Any pointers appreciated.  (I am betting that this is another brain-dead
question!)

Christopher

-- 
There are only 10 types of people in the world:
Those who understand binary and those who don't.
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

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