Mail Headers being set through Mail library 
Author Message
 Mail Headers being set through Mail library

I am having some trouble setting mail headers through the Mail libraries in
Perl.  When I use "test" as the sending method (as shown below) The headers
appear to be correct.  When I use "mail" or "sendmail" as the sending
method, the message is sent properly, but none of the headers are sent. I
have tried not specifying the mail method (omitted the use Mail:Mailer line
completely), and there is no change. It still doesn't send the headers. Any

TIA

Here is my code:

# BEGIN CODE BLOCK

require Mail::Send;
                use Mail::Mailer qw(test);

                my $msg = new Mail::Send;

                my $From = 'From';
                my $cheader1 = 'X-connix-order-type';
                my $cheader2 = 'X-connix-order-tag';

# Get headers to be sent when not using test as mailer method
                # Set Mail Headers
                ##################################
                $msg->set($cheader1, 'members');
                $msg->set($cheader2, '$account');


                $msg->subject('Group Membership Form');

Form\)");

                my($first, $last) = split (" ", $name[$i]);

                my $fh = $msg->open;

                print $fh <<END;
group:$account:group:-:-
$billtype[$i]:$last:$first:$dphone[$i]:$login[$i]

special:$special
special2:$special2
special3:$special3
END
    ;

                $fh->close;

# END CODE BLOCK



Fri, 24 Nov 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Using Mail::Header and Mail::Internet

2. Mail::Send not setting From header

3. Mail Tools, Mail::header scalar array help

4. Mail::Send not setting From header

5. getting mail header from entering mail

6. get ride of mail header(parse mail file)

7. Send Mail - What am I missing here?

8. Perl code for parsing mail headers?

9. Processing E-Mail/News Headers

10. RFC2047 mail header encoder?

11. Splitting mail headers

12. Problem passing header hash to Mail::Mailer routine.

 

 
Powered by phpBB® Forum Software