简体   繁体   中英

Send email using mailto (JavaScript) — change the font size of the specific characters inside the mail body or make it BOLD

Is it possible to insert a BOLD/bigger characters when using mailto in javaScript?

Username: user1 Password: pass1

I want to emphasize or highlight the user1 and pass1.. I've tried styling in html and css, and also in JavaScript using .bold() but it's not working.. Anyone can help me?

The mailto option has the following restrictions:

  1. you are opening the email address to spammers. This is the first thing that they look for to add names and addresses to their spam lists
  2. you must have your e-mail client setup to send html content otherwise any e-mail is sent as plain text
  3. e-mail clients understand a small subset of css. You need to use the style attribute ie <p style='color:red;'>This is an alert</p>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM