1
#!/usr/bin/perl
my $mail=Email::Send::SMTP::Gmail->new(-smtp=>'smtp.gmail.com',
-login=>'[email protected]',
-pass=>'password');
my $body = '<h1>buddy I got it ...</h1>';
$mail->send(-to=>'[email protected]',-cc=>'',-subject=>'subject',
-body=>$body,-contenttype=>'text/html');
$mail->bye;
Everytime i run my script here's the output电子邮件发送:: :: SMTP :: Gmail的HTML标签不工作
有人可以建议和帮助我,为什么是我的HTML(身体电子邮件)无法正常工作。
'my $ body ='
buddy我明白了。 。 。 '
';' – Hans