【问题标题】:How to force text/html mime type using PeopleSoft SendMail()如何使用 PeopleSoft SendMail() 强制 text/html mime 类型
【发布时间】:2012-09-25 21:50:14
【问题描述】:

我正在尝试使用 PeopleCode 中的 SendMail() 发送 html 格式的电子邮件。我要做的是非常基本的 html 电子邮件(例如粗体文本、href 标记等)。

我们最近升级到 PeopleTools 8.52

当我使用 PeopleBooks 中的默认 SendMail() 示例时,电子邮件以纯文本形式发送,而不管我将内容类型指定为“text/html”。

Local string &MAIL_CC, &MAIL_TO, &MAIL_BCC, &MAIL_SUBJECT, &MAIL_TITLES, &MAIL_TEXT, &MAIL_FILES, &MAIL_FROM, &REPLYTO, &SENDER;
Local number &MAIL_FLAGS;
&MAIL_FLAGS = 0;
&MAIL_TO = "laurie_thomas@peoplesoft.com";
&MAIL_CC = "";
&MAIL_BCC = "";
&MAIL_SUBJECT = "Testing SendMail - Are you receiving Attachment?";
&MAIL_TEXT = "This is a test for SendMail function";
&MAIL_FILES = "/data9/ps/e841g2bp/lat/attach.txt";
&MAIL_TITLES = "";
&MAIL_FROM = "peoplesoft@peoplesoft.com";
&MAIL_SEP = ";";
&CONTTYPE = "Content-type: text/html; charset=utf8";
&REPLYTO = "lthomas@peoplesoft.com";
&SENDER = "00972@peoplesoft.com";
&RET = SendMail(&MAIL_FLAGS, &MAIL_TO, &MAIL_CC, &MAIL_BCC, &MAIL_SUBJECT, &MAIL_TEXT, &MAIL_FILES, &MAIL_TITLES, &MAIL_FROM, &MAIL_SEP, &CONTTYPE, &REPLYTO,&SENDER);
If &RET <> 0 Then
MessageBox(0, "", 0, 0, "Return code from SendMail=" | &RET);
End-If;

【问题讨论】:

    标签: email mime-types sendmail peoplesoft


    【解决方案1】:

    事实证明,这是 Oracle 观察到的一个记录在案的错误(错误:13714374)。从 PeopleTools 8.51 升级到 8.52 时会发生这种情况(这就是发生在我们身上的原因)。

    Oracle 的解决方案:

    此错误已在 PT 8.52.08 补丁中修复,该补丁于 2012 年 5 月 24 日

    【讨论】:

      猜你喜欢
      • 2023-03-19
      • 2018-12-13
      • 2011-09-22
      • 1970-01-01
      • 1970-01-01
      • 2022-08-05
      • 2019-08-06
      • 2019-08-25
      • 2020-05-31
      相关资源
      最近更新 更多