This is perfect,

Is there a way that I can pull the sender from the quarantined message and
maybe the subject so that I can create a notification to the recipient with
some detail of the message that was blocked ?


Thank you,

Mark Adrian Coetser
[EMAIL PROTECTED], [EMAIL PROTECTED]
http://www.bwbtrading.co.za http://www.thummb.com
cel: +27 83 296 1199
tel: +27 11 334 7779
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David F.
Skoll
Sent: 26 July 2005 10:19 PM
To: [email protected]
Subject: Re: [Mimedefang] quarantine and notify recipient

Mark Coetser wrote:
> Thank you for the response you don't happen to have a sample/example of
> either Mail::Send or Mail::Sendmail that I could  use in my setup

MIMEDefang has a built-in function for sending mail:

send_mail('<[EMAIL PROTECTED]>',
          'Full Name of Sender',
          '<[EMAIL PROTECTED]>',
          $body_of_email_including_headers);

Example:

foreach my $recip (@Recipients) {
        send_mail('<[EMAIL PROTECTED]>',
                  'Useless Notification Service',
                  $recip,

                  "From: <[EMAIL PROTECTED]>\n" .
                  "To: $recip\n" .
                  "Subject: Annoying notification\n" .
                  "\n" .
                  "Hello.  This is an annoying notification!\n");
}

Regards,

David.
_______________________________________________
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list
[email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

_______________________________________________
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list
[email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to