send.pl

#!/usr/bin perl -w

use strict;
use Mail::Sender;
#use MIME::Base64;

my $sender = new Mail::Sender({
#smtp => ‘smtp.163.com‘,
smtp => ‘mfast.163.internal‘,
from => ‘[email protected]‘,
fake_from => ‘"网易邮件中心"<[email protected]>‘,
debug=> \*STDOUT,
debug_level => 3,
to => ‘XXX <[email protected]>‘,
#maxiaoqin
cc => [
‘XXX <[email protected]>‘,
],
client => ‘Young‘,
on_errors => ‘die‘,
}) || die "Create sender: $Mail::Sender::Error";

my $subject = shift;
#my $subject= ‘一元夺宝web wap端各渠道转化数据统计需求‘;
$Mail::Sender::NO_X_MAILER = 1;

=head
$sender->OpenMultipart();
$sender->Body({
charset => ‘gbk‘,
encoding => ‘Base64‘,
#ctype => ‘‘,
msg => "请见附件",
});
=cut

#if ($sender->MailMsg({
my $files = join(‘,‘,@ARGV);
if ($sender->MailFile({
subject => $subject,
#encoding => ‘Base64‘,
#charset => ‘gbk‘,
file => $files,
msg => "file attached",
}) < 0) {
die "$Mail::Sender::Error\n";
}
#$sender->Close();
print "Mail sent OK."

file_list="result_kaijiang_`date -d"$cur_date -1day" +%F`.txt result_liushui_`date -d"$cur_date -1day" +%F`.txt";
echo ${file_list}>tmp
list=`sed ‘s/\n/,/g‘ tmp`
javamail "一元夺宝每日流水组成-商品分布数据统计数据" $list [email protected]

file_list="result_kaijiang_2015-08-25.txt result_liushui_2015-08-25.txt";echo ${file_list}>tmp;list=`sed ‘s/ /,/g‘ tmp`;echo $list

./isql.sh -utongji_lch -ptongji_lch -h10.110.9.91 -o8886 -l dirpath -e "select id from prize_type where name like ‘%考拉海购%‘"

时间: 2024-10-15 09:32:29

send.pl的相关文章

How to Send an Email Using UTL_SMTP with Authenticated Mail Server. (文档 ID 885522.1)

APPLIES TO: PL/SQL - Version 9.2.0.1 to 12.1.0.1 [Release 9.2 to 12.1]Information in this document applies to any platform.***Checked for relevance on 07-Apr-2014*** GOAL The UTL_SMTP package is designed for sending electronic mails (emails) over Sim

PL/SQL : Procedural Language / Structual Query Language and it is an exrension to SQL.

SQL is not very flexible and it cannot be made to react differently to differing sutuations easily. In  SQL queries we normally tell database what we want but not tell it how to do it. SQL : give commands, commands complete with ; PL/SQL : follow the

Check SMTP Server Availability for ORA-29278 or ORA-29279 errors using UTL_SMTP to Send Email

Check SMTP Server Availability for ORA-29278 or ORA-29279 errors using UTL_SMTP to Send Email. (文档 ID 604763.1) 转到底部 修改时间:2014-5-13类型:PROBLEM 为此文档评级 通过电子邮件发送此文档的链接 在新窗口中打开文档 In this Document   Symptoms   Cause   Solution   References APPLIES TO: PL/S

PL/SQL 下邮件发送程序

对DBA而言,尽管在os级别下发送邮件是轻而易举的事情,然而很多时候我们也需要在PL/SQL中来发送邮件,比如监控job的执行状况等.本文根据网友(源作者未考证)的代码将其改装并封装到了package,感谢这位网友的无私奉献.文章首先给出演示调用该包发送邮件的情形后面给出了完整的代码.经测试Oracle 10g,Oracle 11g下均可用.关于os下发送邮件可参考:不可或缺的 sendEmail 1.调用SENDMAIL_PKG来发送邮件 [sql] view plain copy print

PL/SQL APIs for Concurrent Processing

Ref:Oracle E-Business Suite Developer's Guide Overview This chapter describes concurrent processing APIs you can use in your PL/SQL procedures. It also includes example PL/SQL code using these concurrent processing APIs. The following concurrent proc

How to Send an Email Using UTL_SMTP with Authenticated Mail Server

In this Document   Goal   Solution   References APPLIES TO: PL/SQL - Version 9.2.0.1 to 12.1.0.1 [Release 9.2 to 12.1] Information in this document applies to any platform. ***Checked for relevance on 07-Apr-2014*** GOAL The UTL_SMTP package is desig

Using PL/SQL APIs as Web Services

Overview Oracle E-Business Suite Integrated SOA Gateway allows you to use PL/SQL application programming interfaces (APIs) to insert or update data in Oracle E-Business Suite. APIs are stored procedures that let you update or retrieve data from Oracl

Oracle PL/SQL常用47个工具包

Oracle PL/SQL Utility Library PL/SQL 各种常用工具包代码,包含: PDF文件生成工具包 Excel文件生成. RTF文件生成. Zip文件压缩与解压. JSON格式文件生成与解析. 通过PLSQL调用FTP. 电子邮寄SMTP.POP工具包. SOAP and REST web services工具包. XML.HTTP工具包等 工具包文件下载地址: http://download.csdn.net/detail/sunansheng/8728337 This

PL/SQL developer 连接oracle数据库报错“initialization error could not load oci.dll”

声明:PL/SQL 版本:PL/SQL Developer 9.0.6 (http://files.allroundautomations.com/plsqldev906.exe) 报错提示如图: 原因:PL/SQL只对32位OS进行支持,解决方法是额外加载一个oci.dll文件 解决办法:1.下载OCI.DLL相关库文件.地址: (需注册Oracle账号) http://www.oracle.com/technetwork/topics/winsoft-085727.html ----->