Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: sendmail AND color

by eXile (Priest)
on Aug 24, 2006 at 04:33 UTC ( #569285=note: print w/replies, xml ) Need Help??


in reply to Re^2: sendmail AND color
in thread sendmail AND color

Other options that come to my mind besides HTML, are RTF (mime-type: application/rtf), or SVG? (mime-type: image/svg+xml).

I'd advice the OP to learn something about how to send MIME email, pick a mime-type that supports colored text and use a module like MIME::Lite to send off the colored-text containing message.

Replies are listed 'Best First'.
Re^4: sendmail AND color
by perrin (Chancellor) on Aug 24, 2006 at 13:20 UTC
    I can't iamgine that someone who objects to HTML e-mail is going to be happy with RTF or SVG. I admit though, it was a flippant answer and not very helpful.
Re^4: sendmail AND color
by suhasbharadwaj (Initiate) on Aug 24, 2006 at 05:17 UTC
    use Term::ANSIColor; print color("red"), "Stop!\n", color("reset"); print color("green"), "Go!\n", color("reset");
      That's a nice one too, but I think it'll only work if the email is read in a text-based email client in a (UNIX) terminal window that supports the color escape characters (that a setup quite a small fraction of the world population uses for reading their email).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://569285]
help
Chatterbox?
[choroba]: Corion Sounds reasonable
[Corion]: choroba: Yeah - I basically have the same for regenerating README and README.mkdown already, except that I do that in Makefile.PL, but I guess one or the other thing should somehow work ;)
[ambrus]: was this bug: https://rt.cpan. org/Public/Bug/ Display.html?id= 59814
[Corion]: ambrus: Oh - that one would be much harder to automate... The SYNOPSIS section should mostly be a runnable program IMO, but I write only small snippets in my documentation for single functions/methods, and creating the appropriate environment for ...
[Corion]: ... those in an automated fashion seems somewhat hard to me. Although it should do wonders for the test coverage ;)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2017-02-27 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (384 votes). Check out past polls.