mail2.pl

来自「bonddb 是一个源于PostgreSQL封装包的对象。它是一个由C/C++编」· PL 代码 · 共 27 行

PL
27
字号
#!/usr/bin/perl#use Mail::Sendmail 0.75; # doesn't work with v. 0.74!$html = <<END_HTML;END_HTML%mail = (	SMTP => 'loki.localnet',	from => 'andru@treshna.com',	to => ($ARGV[0] eq '') ? 'andru@treshna.com' : $ARGV[0],	subject => ($ARGV[1] eq '') ? 'BOND DB Report' : $ARGV[1],	'content-type' => 'text/html; charset="iso-8859-1"',);while (<STDIN>) {	$html .= $_;}$mail{body} = <<END_OF_BODY;	<html>$html</html>END_OF_BODYsendmail(%mail) || print "Error: $Mail::Sendmail::error\n";

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?