I
I
Ivan Baturin2020-04-26 17:11:34
PHP
Ivan Baturin, 2020-04-26 17:11:34

How to format the text of a letter sent to the mail?

There is a function to send E-mail messages. It is necessary to make a beautiful text in several lines. At the moment, everything is displayed on one line.

Here is the I would like function
5ea59634063ce053758069.png

in this form:

"Thank you for choosing our company!
We will call you back soon to clarify the details.

Best regards, Ivan Baturin!
______________

Phone: ..... E-mail: ........"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Daria Motorina, 2020-04-26
@MrLumus

Email content can be formatted as html, google email markup

E
Evgeny Nikolaev, 2020-04-26
@nikolaevevge

That's just the question asked on SMTP here is a sample code for your question - PHP. PhpMailer how to send SMTP mail via gmail.com from google? Why authorization error?
Only in the body of the message, send your required HTML type. Thank you for choosing our company! You will be called back soon to clarify the details. and so on
. That is if you have a simple enough text message.
If everything is done beautifully, then a tabular layout is used for markup in letters. Look for information in search engines on how to typeset letters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question