|
发表于 2008-9-24 18:06:43
|
显示全部楼层
楼主,修改下脚本:
业务模型\协同系统\个人事务\邮件库\邮件编辑窗体
procedure TMailEditForm.SaveToStream(AStream: TStream);
begin
if Pos('@', edtSendTo.Text) <> 0 then
begin
if edtFrom.text <> '' then
msgMail.From := edtFrom.text
else
msgMail.From := DoGetMailFrom;
end
else
msgMail.From := DoGetInternalMailFrom;
msgMail.Subject := edtSubject.Text;
if msgMail.Date = '' then
msgMail.Date := FormatDateTime('yyyy-mm-dd hh:mm:ss', SysUtils.Now);
CheckName;
msgMail.SendTo := edtSendTo.Text;
msgMail.CC := edtCC.Text;
msgMail.Bcc := edtBcc.Text;
case msgMail.ContentFormatType of
TContentFormatType.ftText : SaveText(AStream);
TContentFormatType.ftHTML : SaveHTML(AStream);
end;
FModified := False;
end; |
|