【发布时间】:2015-08-12 04:48:28
【问题描述】:
这是原始代码。
filename outmail email type='text/html'
subject='see this'
from="..."
to="..."
attach=("\...\a.pdf"content_type="application/pdf");
ods _all_ close;
ods listing close;
ods html body=outmail style=minimal;
title1 'AAA';
title2 'BBB';
proc tabulate data=
...
run;
ods html close;
ods listing;
但现在我不想在电子邮件正文中显示表格输出,所以我从原始代码中删除了这部分。
proc tabulate data=
...
run;
问题是我的电子邮件中不再有标题。看来我必须在代码中添加一些 proc 才能使标题存在于电子邮件中。但我不想在电子邮件正文中显示任何内容,除了
Hi all,
Regards,
Balala
更新
我试过了,但没有运气。
filename outmail email type='text'
subject="AAAA"
from="..."
to="..."
attach=("\\...\text.pdf" content_type="application/pdf");
data _null_;
file outmail;
put 'Hi all,';
put 'First line';
put 'Second line ';
put ' ';
put 'Regards,';
put 'Balala';
run;
但在电子邮件中,它显示Hi all,First lineSecond line Regards,Balala。
更新2
第二个选项对我不起作用。 第一个选项起初不起作用,但是当我重新启动 SAS 会话时,它起作用了。但我没有更改任何设置。
有趣的是,我将类型更改为 text/plain 而不是 text 或 text/html 然后一切正常
【问题讨论】:
-
您是在问如何在不使用标题的情况下将文本内容放入电子邮件中?
-
是的。
put没有按预期工作。
标签: sas