Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Perl Sendmail Html

  • 08-06-2005 12:53AM
    #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