[問題] 關於使用 Net::SMTP

看板Perl作者 (啦 )時間17年前 (2008/03/26 19:51), 編輯推噓0(004)
留言4則, 3人參與, 最新討論串1/1
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
Encode::MIME::Header
03/26 20:10, 1F

03/27 12:24, , 2F
假如我要編碼成 =?big5?... 呢?
03/27 12:24, 2F

03/27 12:25, , 3F
Encode::MIME:Header 似乎只能編成 UTF-8? 謝謝:)
03/27 12:25, 3F

06/10 12:59, , 4F
$smtp -> rawdatasend() 可能會有用?
06/10 12:59, 4F
文章代碼(AID): #17wZZSZJ (Perl)
文章代碼(AID): #17wZZSZJ (Perl)