Loading ...
Sorry, an error occurred while loading the content.
 

using sendmail to send mail to multiple receipients

Expand Messages
  • kshkid
    hi all, i tried the following piece of code and i was successful # !/usr/local/bin/perl use Mail::Sendmail; open (SENDMAIL, |/usr/lib/sendmail -oi -t ) or die
    Message 1 of 1 , Mar 31, 2006
      hi all,

      i tried the following piece of code and i was successful

      # !/usr/local/bin/perl

      use Mail::Sendmail;

      open (SENDMAIL, "|/usr/lib/sendmail -oi -t") or die "unable to do so \n" ;
      print SENDMAIL << "EOF";
      From: id <xyz\@...>
      To: m <tfy\@...>
      Subject: sub

      done

      EOF
      close(SENDMAIL);

      exit 0

      now the question is how to use sendmail to send to multiple address entries
      any pointers please?

      i tried sending it with a comma seperated list but i was not successful.

      any help !!!


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.