Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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: +//\">Fresh flowers from Flowershop X</a>\n<a href=\" +\">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";

Velusamy R.

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

Comment on Re: Inserting a hyperlink
Select or Download Code
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://585442]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2015-12-02 02:14 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (31 votes), past polls