apps-script-samples icon indicating copy to clipboard operation
apps-script-samples copied to clipboard

Line 100 - Doesn't work when "space" is included.

Open CapitaLinkSolutions opened this issue 11 months ago • 4 comments
trafficstars

I'm having issues with trying to add a space between words for Line 100. image

I do not have coding background so this is very complex to me.

Please help me out.

I've tried using &nbsp but it turned out like this image

Having a "space" in between words will cause Line 100 to not work. Line 100 will work fine without "space" Example: CapitaLink Solutions will cause Line 100 to not work image CapitaLinkSolutions will work fine image

I'm trying to have it look like "CapitaLink Solutions" in recipients' email inbox.

CapitaLinkSolutions avatar Dec 09 '24 12:12 CapitaLinkSolutions

Please post the whole snippet.

vinay-google avatar Dec 09 '24 17:12 vinay-google

Please post the whole snippet.

are these what you were looking for?

image image

CapitaLinkSolutions avatar Dec 09 '24 17:12 CapitaLinkSolutions

Try this simple script. Replace <some email>.

function main() {
  GmailApp.sendEmail('<some email>', 'Test', null, {
    htmlBody: '<h1>HTML Body</h1>',
    name: 'Testing Name with Space'
  });
}

vinay-google avatar Dec 09 '24 17:12 vinay-google

@vinay-google, I replace which line with this code? Captura de tela 2024-12-19 110246

Moldr4n avatar Dec 19 '24 15:12 Moldr4n

GmailApp.sendEmail(row[RECIPIENT_COL], msgObj.subject, msgObj.text); you can replace it with this

Disha-Wali avatar Aug 20 '25 14:08 Disha-Wali