Steve Burton
Posts: 0
Joined: Mon Feb 03, 2014 7:07 pm

Problems with SendGrid Service

When I am using the SendGrid service I receive the email with + signs in place of all spaces. Is there any way to stop this? Also is there any way to create the email body with mutliple lines of text e.g.

Data 1: localstoragevariable1
Data 2: localtsoragevariable2
Data 3: etc.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Problems with SendGrid Service

Hello!
[quote:]When I am using the SendGrid service I receive the email with + signs in place of all spaces. Is there any way to stop this?[/quote]It's a known problem, we're working on it. Sorry for inconvenience.
[quote:]Also is there any way to create the email body with mutliple lines of text e.g.[/quote]I'll update.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Problems with SendGrid Service

Try to send html instead text and form html the way you need http://sendgrid.com/docs/API_Referenc...

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

Problems with SendGrid Service

same here...this is what I got on hotmail...Hope you can fix this soon...

thanks!!
Image

Catalyst Creations
Posts: 0
Joined: Sat Dec 28, 2013 1:34 am

Problems with SendGrid Service

Ive read the send grid doc, but still dont understand, would you be able to give us a quick example as I have multiple inputs for my text body - Sample code -

var To = localStorage.getItem("To");
var ToName = localStorage.getItem("ToName") + "\n";
var From = localStorage.getItem("From");
var OrderFrom = localStorage.getItem("OrderCompanyName") + "\n";
var ContactNumber = localStorage.getItem("OrderCompanyContact") + "\n";
var TextMessage = localStorage.getItem("Msg") + "\n";
var DateOrdered = localStorage.getItem("OrderDateOrdered") + "\n";
var Item1 = localStorage.getItem("Item1");
var Amount1 = localStorage.getItem("Amount1");
var Size1 = localStorage.getItem("SizeInput1") + "\n";
var Item2 = localStorage.getItem("Item2");
var Amount2 = localStorage.getItem("Amount2");
var Size2 = localStorage.getItem("SizeInput2") + "\n";
var Item3 = localStorage.getItem("Item3");

  • sample code

    how would I change this to html. Sorry if noob question.

    Cheers Maryna.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Problems with SendGrid Service

Hello Callum! If you need to add the next line use \n\r as a line separator (instead \n as shown in your code).
If you need to do this using html:
1) Rename request parameter text to html
2) Use < br tag if you need to add the next line. Besides that if you're going to send html instead text you can use any html formatting of email body (color highlighting, bold, italic, etc.)

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Problems with SendGrid Service

Hello Alex! It's a known bug, should be fixed on February 11.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Problems with SendGrid Service

Hello! This bug should be fixed now.

Return to “Issues”