Hello
I'm new in the forum
Can anyone help me with some hints
how can i send email php mail with this format on body?
On every closing of turn on local pos system the system sends data to webhost and the webhost deliver email to recipient

<!DOCTYPE html> <html> <head> <title>XhiroDitore</title> </head> <body> <b>Subjekti:</b> "pronari"
<br><b>Adresa:</b>"Adresa"
<br><b>Data/Ora:</b>"data"
<br><b>Perdoruesi:</b> "perdoruesi"
<br><br>Mbyllja e turnit u realizua me sukses!"
<br><br><br><table border=1><th align=left>Artikulli</th><th>Sasia</th><th>Cmimi</th><th>Vlefta</th></tr> <td>"emertim"</td><td>"sasia_shitur"</td><td>"cmimi"</td><td>"vlefta"</td></tr></table> <br><br><b>Total:</b>"#,##0.00"
</body> </html>

Hi,

you mean you want to send an email in HTML format rather than plain-text? Check example 4 in the documentation of the mail() function:

However, I suggest you to look into libraries like PHPMailer or SwiftMailer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.