[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-Modules] Module Newbie: Mail subject?



Hi
I don't seem to be able to add a 'subject' field. 
Also the 'From' doesn't have anything in my mail client, only
Return-Path: <workshop@tesco.net> is specified in the header. 
Any ideas?
    
    #!perl -w
    
    use Net::SMTP;
    #### Host
    $smtp = Net::SMTP->new('mail.easynet.co.uk');
        
    ### From, but only "Return-Path: <workshop@tesco.net>"
    $smtp->mail('workshop@tesco.net');  
    
    ### I'd like to add normal 'From' here
    
    ### Target email address            
    $smtp->to('campbell-lange@easynet.co.uk');
        
    ### I'd like to add 'Subject' here
        
    ### Body     
    $smtp->data(q!body of text message!);
    
    ### Send it (do I need text in the method?)
    $smtp->datasend("to rory\n");
        
    ### Quit
    $smtp->quit;
    
Thanks for any help.
Rory
--
Rory Campbell-Lange     			            Campbell-Lange Workshop
--



==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org