Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

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