【发布时间】:2016-10-22 13:10:48
【问题描述】:
#!/usr/bin/perl
my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.com',
-login=>'sample@gmail.com',
-pass=>'password');
my $body = '<h1>buddy I got it ...</h1>';
$mail->send(-to=>'to@gmail.com',-cc=>'',-subject=>'subject',
-body=>$body,-contenttype=>'text/html');
$mail->bye;
Everytime i run my script here's the output
有人可以建议并帮助我解决为什么我的 html(正文电子邮件)不起作用。
【问题讨论】:
-
my $body ='<h1>buddy I got it . . . </h1>';