如何使用curl发送带有HTML正文的SMTP电子邮件 [英] How to send a SMTP email with HTML body using curl
本文介绍了如何使用curl发送带有HTML正文的SMTP电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用libcurl从ubuntu服务器发送SMTP电子邮件。
我被要求更改电子邮件以从寺庙中获取HTML正文存储在
文件中。
libcurl是否能够发送HTML正文,如果有的话,任何有关如何实现它的建议或示例感谢。
谢谢
问候
我尝试过:
我试过把HTML放在邮件中但是没有解码
Hi,
I am using libcurl to send SMTP emails from a ubuntu server.
I have been asked to change the emails to have a HTML body from a temple stored in a
file.
Is libcurl able to send the HTML body and if so any advice or example on how to
achieve it would be appreciated.
Thank You
Regards
What I have tried:
I have tried putting the HTML in the message but it is not decoded
推荐答案
此示例 [ ^ ]可能会有所帮助。
Curl完全支持电子邮件正文中的HTML。
This example[^] might help.
Curl fully support HTML in email's body.
这篇关于如何使用curl发送带有HTML正文的SMTP电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文