How to insert horizontal and vertical lines in google docs

I am working with data from a Google Spreadsheets obtained from a Google Forms and I want to send an email of response to a customer. That”s why I created a Google Script.

You are reading: How to insert horizontal and vertical lines in google docs

Is it possible to add an horizontal line/rule to the Gmail body using GmailApp.sendEmail(…)? Something like:

GmailApp.sendEmail(“example
gmail.com”, “Title”, “Hello.nn”);I know I can use “———” to simulate the bar, but I am curious if there exists such command in Google Script.

Searchs

I have searched on the Google Developers webpage but the results are for Google Docs, not Gmail App.

From above, this seems to be the command I am looking for, but I don”t know how to implement it inside the parameters of GmailApp.sendEmail(…).

*

Q1: Is it possible to add an horizontal line/rule to the Gmail body using GmailApp.sendEmail(…)?

A1: In this case, when the HTML body is used, the horizontal line can be put using . The sample script is as follows.

See also: Exportar, Crear Copias De Seguridad O Restaurar Contactos, Como Puedo Recuperar Mis Contactos De Gmail

GmailApp.sendEmail(“mail address”, “sample subject”, “sample text body”, {htmlBody: “sample text 1sample text 2”});Q2: Since you have found the htmlBody I don”t need anymore the 3rd parameter of sendEmail so: For a correct syntax do we have to write “” as 3rd parameter?

A2: If you doesn”t use the text body, you can also modify above script as follows.

See Also:  Hanoitelecom webmail client sign in

GmailApp.sendEmail(“mail address”, “sample subject”, “”, {htmlBody: “sample text 1sample text 2”});or, you can also use MailApp.sendEmail() as follows.

MailApp.sendEmail({to: “mail address”, subject: “sample subject”, htmlBody: “sample text 1sample text 2”});

References:

Share
Improve this answer
Follow
answered Apr 2 at 5:23

*

TanaikeTanaike
110k88 gold badges5555 silver badges9191 bronze badges
Add a comment |

Your Answer

Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

See also: Cách Để Đồng Bộ Danh Bạ Gmail Vào Iphone ? Cách Đồng Bộ Danh Bạ Iphone Lên Gmail Đơn Giản

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Submit

Post as a guest

Name
Email Required, but never shown

Post as a guest

Name
Email

Required, but never shown

Post Your Answer Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged google-apps-script gmail horizontal-line or ask your own question.

The Overflow Blog
Featured on Meta
Related
400
Send email using the GMail SMTP server from a PHP page

Is there a way to automatically collect gmail id in webform and Google sites?

Save a GMail to Google Doc keeping the same appearance
4
Searching for file by name within a folder in google Drive using google scripts
1
Google Apps Script – Parsing Data from Gmail Body Text with Identical Subject Line

How do I call the function in server side script : Google App Script when I hit a hyperlink in Gmail body (client side)?
2
How to include the users Gmail signature when using GmailApp.sendEmail from Google Sheet
Hot Network Questions more hot questions

See Also:  What is google circles?

Question feed
Subscribe to RSS
Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

lang-js
Stack Overflow
Products
Company
Stack Exchange Network
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.9.14.40215
Stack Overflow works best with JavaScript enabled

*

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Categories: Mail

Leave a Reply

Your email address will not be published. Required fields are marked *