开发者

How do I create a message with interpolated variables and send it with Perl's Mail::Outlook?

开发者 https://www.devze.com 2023-01-17 11:26 出处:网络
I\'m using Mail::Outlook to send messages, but when the con开发者_开发问答tent of the message is dynamic, for e.g. Time:$time\\nEntry:$e, it prints this as it is and doesn\'t substitute the variables.

I'm using Mail::Outlook to send messages, but when the con开发者_开发问答tent of the message is dynamic, for e.g. Time:$time\nEntry:$e, it prints this as it is and doesn't substitute the variables. What do I do for that?


I notice that in the documentation for that module, the example code always uses single-quoted strings for the body text. Of course, if you use variables in a single-quoted string then the variables won't get expanded. Is that, perhaps, what you're doing?

This is only a guess though. You don't give anywhere near enough detail for us to give any real help.

0

精彩评论

暂无评论...
验证码 换一张
取 消