On 5 Nov 2005, at 09:25, Anilkumar wrote:

Dear Matt,
  I found the command for getting all the e-mail id
from mail.

  my @recipients = $transaction->recipients;
  foreach my $recip (@recipients)
  {
     $user = $user . ", " . $recip->address;
  }
  $user = substr($user,2);

This is easier as:

  $user = join(', ', map { $_->address } @recipients);

  my $size= @recipients;

$user will give me all the E-mail seperated by comma
and $size will give me total no of receipents.

Now i am working for finding the Subject.

$transaction->mail->header('Subject');

Note that this will be the possibly encoded subject (i.e. it might be in base64).

Matt.

Reply via email to