Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Inserting a hyperlink

by Samy_rio (Vicar)
on Nov 22, 2006 at 05:57 UTC ( #585442=note: print w/replies, xml ) Need Help??


in reply to Inserting a hyperlink

Hi rio, give the hyperlink using HTML tags in the message part and mention the type as "text/html". See as below:

my $message_body = "This is a list of things to bring\n<a href=\"http: +//www.perlmonks.com\">Fresh flowers from Flowershop X</a>\n<a href=\" +http://www.perl.org\">Today's Arragement instructions from instrucito +n home page</a>\n"; ### Add the text message part $msg->attach (Type => 'text/html', Data => $message_body ) or die "Error adding the text message part: $!\n";

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';

Replies are listed 'Best First'.
Re^2: Inserting a hyperlink
by dorward (Curate) on Nov 22, 2006 at 08:33 UTC

    Don't do that.

    HTML formatted email without a plain text alternative is a strong indicator or spammyness (or at least cluelessness). It is a very good way to get diverted to the spambucket.

    If you must do HTML formatted email, then Email::MIME::CreateHTML is a decent choice, and makes it easy to provide the plain text alternative.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://585442]
help
Chatterbox?
[KurtZ]: mice?
[Discipulus]: your cat is dryarian holli
[holli]: not even remotely KurtZ. i did find feathers in the garden a few times though
[holli]: yet no body
[virtualsue]: I was called upon to remove a gnawed mouse carcass from the living room this morning
holli googles dryarian just to make sure that isn't actually thing
[holli]: I mean, you never know, right?
[shmem]: good $localtime monkses
[holli]: mmh. maybe a user handle "dry arian" is a bit unfortunate? https://www. pinterest.de/ dryarian/
[Discipulus]: exists!

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2017-11-21 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (300 votes). Check out past polls.

    Notices?