Dan Hoeck
Posts: 0
Joined: Sat May 17, 2014 3:55 am

Create hyperlinks in SendGrid email text?

When using SendGrid services to send an email, is it possible to send anything other than plain text?

I would like to send the words "Sign up" with a link attached to the words, is that possible?

Also is it possible to change the color/font/size of text?

The javascript I'm placing in the "text" parameter in the service is as follows:

var body1 = "Hi,";
var body2 = value;
var body3 = " reached out to you.";
var body4 = "Sign in";

return (body1 + "\n" + body2 + "\n" + body3 + "\n" + body4);

Thanks again for your help!

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Create hyperlinks in SendGrid email text?

Hello Dan,

Please use request parameter html instead of text: https://sendgrid.com/docs/API_Referen...
You can use any HTML content in that parameter.

Dan Hoeck
Posts: 0
Joined: Sat May 17, 2014 3:55 am

Create hyperlinks in SendGrid email text?

Thank you Sergiy, that's perfect!

Return to “Issues”