无法发送html邮件内容

时间:2016-04-22 14:36:52

标签: email coldfusion

<cfhttp url = "https://api.elasticemail.com/mailer/send?username=myusername&api_key=myapi-key&from=#attributes.from#&from_name=#attributes.from#&to=#attributes.to#&subject=#attributes.subject#&body_html=#attributes.content#&reply_to=#attributes.replyto#"
    method = "POST"
    result="mailResult">
</cfhttp>

我使用上述网络服务发送电子邮件。尝试发送包含HTML内容的大型电子邮件时,通过邮件不会收到任何内容。发送带有HTML内容的简单电子邮件(没有任何样式或背景颜色)时,它将正常工作。发送邮件时是否存在大小限制或任何其他条件?为什么没有发送电子邮件?

1 个答案:

答案 0 :(得分:5)

您的电子邮件内容(html正文)是查询字符串的一部分:// This is the polymorphic root class class ABase { public: ABase(int maxV) : _maxV(maxV) {} int maxValue() { return _maxV; } private: int _maxV; }; // This class gives static method template<int V_MaxValue> class A : public ABase { public: A() : ABase(V_MaxValue) {} static int maxValue() { return V_MaxValue; } }; class B : public A<42> { }; class C : public A<35> { }; // Static access (neex explicit class call) : // B::maxValue() => 42 // C::maxValue() => 35 // // Polymorphic call : // ABase* poly = new B(); // poly->maxValue() => 42 。 URL的最大长度有限制。

如果您可以使用

在POST请求的正文中发送电子邮件的内容,请尝试从您的邮件提供商API的文档中找到
&body_html=#attributes.content#