小编Bin*_*abu的帖子

如何在curl中将邮件正文设置为html?

我需要将 html 表作为电子邮件正文发送。我只是做了下面提到的内容类型为 html,但它没有工作。

headers = curl_slist_append(headers, "Content-Type: text/html");
/* pass our list of custom made headers */
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
Run Code Online (Sandbox Code Playgroud)

我在图书馆网站上找不到示例。

c++ curl http

2
推荐指数
1
解决办法
2575
查看次数

标签 统计

c++ ×1

curl ×1

http ×1