Get the App
SLTechnology News&Howtos  ›  Development  › 

How HTML works

Shulou Source: shulou.com Published: 2022-06-01 12:38:31 09月13日 Update

Editor to share with you how HTML works, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!

Method 1, right-click the HTML file directly, and finally, choose to use the notebook to open the file.

Method 2. Open it with Dreamweaver software, and you can edit the HTML file, so here are the specific steps

1. First download a Dreamweaver software, which can be downloaded on Baidu.

2. Installing the Dreamweaver software is the next step, and the next step is the installation.

3. Open the Dreamweaver software. Finally, open the HTML file in the software.

Answer: send an email in HTML format voID jButton8_actionPerFormed (ActionEvent e) {

Try

{/ / this code is used to send messages with HTML messages

Properties PRoPS=new Properties ()

Authenticator Auth=new EmAIl_Autherticator ()

PRoPS.put ("mAIl.smtp.host", host)

PRoPS.put ("mAIl.smtp.Auth", "true")

Session session=Session.getDefAultInstance (PRoPS,Auth)

MimeMessage message=new MimeMessage (session)

/ / set the message body

String HTMLtext= "hello" + "click me please!"

Message.setContent (HTMLtext, "text/HTML"); / / text/plAIn format the message in text/HTML format because it has an HTML document

Message.setSubject (mAIl_SUbject)

/ / message.setText (mAIl_body); it seems that message.setText () cannot be used when using message.setContent ()

Message.setHeader (mAIl_head_name,mAIl_head_value)

Message.setSentDate (new Date ())

Address address=new InternetAddress (mAIl_from, "SUnxiaoming")

Message.setFrom (address)

Address toAddress=new InternetAddress (mAIl_to)

Message.addRecipient (Message.RecipientType.TO,toAddress)

Transport.send (message)

System.out.PRintln ("send ok!")

}

Catch (Exception ex)

{

System.out.PRintln ("fAIld" + ex)

}

}

VoID jButton9_actionPerFormed (ActionEvent e) {

Try

{/ / this code is used to send an email with a picture

The above is all the contents of the article "how HTML works". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Software mail file format article run code content that is method up and down not much information picture most document time more text step Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Huawei Shulou Tech Info Apple NVidia