Try seperating your $toList email addresses with a comma instead of the semi 
colon


Ravinder Arepally wrote:


All,



I am having problem when I use multiple users in to or cc list while
sending a email.

I am using Mail::Sender module. I have a list of email addresses in
$toList and I am just using that for to list.

I am not getting any email or error message. If I just use on email
address like [EMAIL PROTECTED] instead of $toList, it works fine.

I am not understanding problem here. Can anyone suggest what I am doing
wrong.



Thanks,

Ravi.





sub sendHTMLMail {



    my $htmlfile = shift;

    open IN, $htmlfile or die "Cannot open $htmlfile : $!\n";

    my $subject = "$buildName:$options{'subjectprefix'}: ";



    my $toList = "[EMAIL PROTECTED]; [EMAIL PROTECTED]";



    print" tolist is $toList \n\n";



    my $sender =

      new Mail::Sender { smtp => 'mail.ariba.com',

        from => "$buildName<[EMAIL PROTECTED]>" };

    $sender->Open(

        {

            to       => $toList,      -------------------------- Problem

            cc       => $options{'email'},

            subject  => "$subject",

            ctype    => "text/html",

            encoding => "UTF-8"

        }

      )

      or die $Mail::Sender::Error, "\n";

    while (<IN>) { $sender->SendEx($_) }

    close IN;

    $sender->Close();



}




--
Mike(mickalo)Blezien
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
http://thunder-rain.com/
Tel: 1.712.395.0670
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




  • Mail::Sender Ravinder Arepally
    • Re: Mail::Sender Mike Blezien

Reply via email to