[問題] 關於使用 Net::SMTP
use Net::SMTP;
my $smtp = new Net::SMTP '192.168.1.1';
$smtp -> mail('example@192.168.1.1');
$smtp -> to('example@192.168.1.1');
$smtp -> data();
$smtp -> datasend('From: example@192.168.1.1\n');
$smtp -> datasend("To: example@192.168.1.1\n");
$smtp -> datasend("Subject: 大家好..\n");
$smtp -> datasend("\n");
$smtp -> datasend('這是內文~');
$smtp ->dataend();
$smtp ->quit;
我用 outlook 收信時,會出現亂碼,請問這個問題有解嗎?
謝謝大大的回答 :)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 210.243.227.60
※ 編輯: Xphenomenon 來自: 210.243.227.60 (03/26 19:52)
→
03/26 20:10, , 1F
03/26 20:10, 1F
→
03/27 12:24, , 2F
03/27 12:24, 2F
→
03/27 12:25, , 3F
03/27 12:25, 3F
→
06/10 12:59, , 4F
06/10 12:59, 4F
Perl 近期熱門文章
PTT數位生活區 即時熱門文章