0
我想用new mail()
發送電子郵件,它幾乎可以工作。已發電子郵件有內容,但無法看到
發送的電子郵件在原始郵件中具有所需的內容,但Apple Mail(應用程序)無法讀取它。
這是郵件(Apple App)問題還是郵件(ColdFusion object)問題?
最後但並非最不重要的,ColdFusion的運行在Windows上10
ColdFusion代碼
var mail = new mail();
mail.setFrom(application.EMAILFROM);
mail.setTo(arguments.email);
mail.setSubject(application.GSSITE_FULL_NAME & " Password Reset");
mail.addPart(type="plain", charset="utf-8", body="This is a test message.");
mail.send();
電子郵件程序會導致
Return-Path: <[email protected]>
Received: from 10.211.55.15 (cpe-76-169-198-102.socal.res.rr.com [76.169.198.102]) by mail.xxx.com with SMTP;
Sat, 1 Jul 2017 19:41:27 -0700
Date: Sat, 1 Jul 2017 19:41:26 -0700 (PDT)
From: [email protected]
To: [email protected]
Message-ID: <[email protected]>
Subject: xxx Password Reset
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_78_1984282986.1498963286427"
X-Mailer: ColdFusion 2016 Application Server
X-SmarterMail-TotalSpamWeight: 0 (Authenticated)
------=_Part_78_1984282986.1498963286427
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
This is a test message.
------=_Part_78_1984282986.1498963286427
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
------=_Part_78_1984282986.1498963286427--
幫助
這是怎麼回事?
其他電子郵件網站或客戶端會發生什麼情況? –
將HTML部分添加到郵件中,它將在iOS設備上正確顯示。上次我查了一下,這些部分的順序也很重要,也就是plain必須是第一個,然後是HTML。 – Alex
這正是需要的。你可以把你的評論作爲答案嗎? –