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 lớn send an gmail of response to a customer. That"s why I created a Google Script.

Bạn đang xem: How to insert horizontal and vertical lines in google docs

Is it possible to add an horizontal line/rule khổng lồ the Gmail toàn thân using GmailApp.sendEmail(...)? Something like:

GmailApp.sendEmail("example
gmail.com", "Title", "Hello. ");I know I can use "---------" to lớn simulate the bar, but I am curious if there exists such command in Google Script.

Searchs

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

From above, this seems lớn 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 toàn thân using GmailApp.sendEmail(...)?

A1: In this case, when the HTML toàn thân is used, the horizontal line can be put using . The sample script is as follows.

Xem thêm: 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 sầu found the htmlBody I don"t need anymore the 3rd parameter of sendE-Mail so: For a correct syntax bởi we have to write "" as 3rd parameter?

A2: If you doesn"t use the text toàn thân, you can also modify above script as follows.

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 sầu this answer
Follow
answered Atruyền thông quảng cáo 2 at 5:23
*

TanaikeTanaike
110k88 gold badges5555 silver badges9191 bronze badges
Add a phản hồi |

Your Answer


Thanks for contributing an answer to lớn Stack Overflow!

Please be sure lớn answer the question. Provide details and share your research!

But avoid

Asking for help, clarification, or responding khổng lồ 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.

Xem thêm: 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 Thư điện tử & Password
Submit

Post as a guest


Name
Email Required, but never shown


Post as a guest


Name
E-Mail

Required, but never shown


Post Your Answer Discard

By clicking “Post Your Answer”, you agree to lớn our terms of service, privacy policy & 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
Sover tin nhắn using the GMail SMTPhường hệ thống from a PHPhường. page
0
Is there a way to automatically collect email id in webform và Google sites?
0
Save sầu a GMail lớn Google Doc keeping the same appearance
4
Searching for tệp tin by name within a thư mục in google Drive sầu using google scripts
1
Google Apps Script - Parsing Data from Gmail Body Text with Identical Subject Line
0
How vị I Hotline the function in VPS side script : Google App Script when I hit a hyperliên kết in Gmail body (client side)?
2
How lớn include the users Gmail signature when using GmailApp.sendEmail from Google Sheet
Hot Network Questions more hot questions

Question feed
Subscribe lớn RSS
Question feed To subscribe lớn this RSS feed, copy & paste this URL into lớn your RSS reader.


*

lang-js
Stachồng Overflow
Products
Company
Stack Exchange Network
site kiến thiết / biệu tượng công ty © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.9.14.40215


Staông xã Overflow works best with JavaScript enabled
*

Your privacy

By clicking “Accept all cookies”, you agree Stachồng Exchange can store cookies on your device và discthất bại information in accordance with our Cookie Policy.


Chuyên mục: Mail