Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Perl Sendmail Html

  • 07-06-2005 11:53pm
    #1
    Closed Accounts Posts: 1,541 ✭✭✭


    Hi All,

    I am trying to send an email using PERL, on a UNIX server using the sendmail programme. It works fine except for 1 thing. I cannot define the font size, colour etc using HTML. Here is my code:
    my $to2 ='someone@someweb.ie';                      
    my $from2 ='someone@someweb.ie';                     
    my $Subject2 = "Some Subject"; 
                
    
    open(MAIL, "|/usr/lib/sendmail -t");               
    print MAIL "To: $to2 \nFrom: $from2\n";      	   
    print MAIL "Subject: $Subject2\n"; 
    print MAIL '<body><font size=5 color=red>Testing<br><font size=4 color=green></body>'; 
    close(MAIL);
    

    The code above sends the email ok but the HTML comes out as plain text in the email. Anyone got any ideas how to send different style texts, sizes, pics etc via sendmail?

    Thanks.


Comments

Advertisement