Nodemailer: adding href to email content

Created on 28 Nov 2013  路  4Comments  路  Source: nodemailer/nodemailer

I use this
image
to create a link in receiver but I receive a plain text like this
image
. What I want is a link to facebook like this www.facebook.com and when I click on it will drive to facebook.com. So I do the right thing?. Can I do this without html mail template?

Most helpful comment

Oh my god!, my head, I so sorry. Maybe I work so much and need some sleep. Thank you so much for your help. This is very simple, the problem is me. By the way, this is wonderful example for me

All 4 comments

Your HTML seems to be invalid. href="http://www.facebook.com" is exactly the output what is expected when using such html

what do you mean when saying "Your HTML seems to be invalid"?. I just want to create a link to www.facebook.com (just example) in body of receiver, so what should I do? Thanks!

Your html is like this:

<a> href="http://www.facebook.com"</a>

but it should be

<a href="http://www.facebook.com">link title</a>

href property is outside the <a> tag, so this has nothing to do with Nodemailer but is related of how you generate your HTML

Oh my god!, my head, I so sorry. Maybe I work so much and need some sleep. Thank you so much for your help. This is very simple, the problem is me. By the way, this is wonderful example for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mdevDE picture mdevDE  路  13Comments

hippich picture hippich  路  21Comments

AshishkrGoyal picture AshishkrGoyal  路  17Comments

renanbastos93 picture renanbastos93  路  11Comments

jonathanong picture jonathanong  路  12Comments