2016-12-16 29 views

回答

0

有些電子郵件也決定不顯示html內容,但這不是你的情況。 首先我會建議你使用(帶從快速入門指南CPAN)

use strict; 
    use Email::Sender::Simple qw(sendmail); 
    use Email::Simple; 
    use Email::Simple::Creator; 

    my $email = Email::Simple->create(
    header => [ 
     To   => '"Xavier Q. Ample" <[email protected]>', 
     From   => '"Bob Fishman" <[email protected]>', 
     Subject  => "don't forget to *enjoy the sauce*", 
     Content-Type => 'text/html'; 
    ], 
    body => "This message is short, but at least it's cheap.\n", 
); 
    sendmail($email); 

看看mail sender example,我們將無法幫助你,如果你不把一些代碼爲例

相關問題