2012-09-25 27 views
1

強制text/html MIME類型我試圖使用PeopleCode中的SendMail()發送HTML格式的電子郵件。我想要做的是非常基本的HTML電子郵件(例如粗體文本,href標籤等)。如何使用PeopleSoft SendMail()

我們最近升級到PeopleTools的8.52

當我使用默認的發郵件()例如,從PeopleBooks,電子郵件被髮送純文本,無論是我指定的內容類型爲「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 = "[email protected]"; 
&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 = "[email protected]"; 
&MAIL_SEP = ";"; 
&CONTTYPE = "Content-type: text/html; charset=utf8"; 
&REPLYTO = "[email protected]"; 
&SENDER = "[email protected]"; 
&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; 

回答

2

事實證明,這是Oracle觀察到的一個記錄的錯誤(Bug:13714374)。從PeopleTools 8.51升級到8.52時會發生這種情況(這就是我們遇到的原因)。從Oracle

解決方案:

這個BUG在PT 8.52.08補丁修復,從而成爲可在 05月24日