diff --git a/JobSendAgentMail/JobSendCtn.cs b/JobSendAgentMail/JobSendCtn.cs
index e578bd98..2a6c813b 100644
--- a/JobSendAgentMail/JobSendCtn.cs
+++ b/JobSendAgentMail/JobSendCtn.cs
@@ -78,7 +78,7 @@ namespace JobSendAgentMail
message.Body = bodyBuilder.ToMessageBody();
using (var client = new SmtpClient())
{
- client.Connect(MAILSENDSERVICE, Convert.ToInt16(MAILSENDPORT), Convert.ToBoolean(MAILISSSL));
+ client.Connect(MAILSENDSERVICE, Convert.ToInt16(MAILSENDPORT),false);
client.Authenticate(MAILSENDACCOUNT, MAILSENDPASSWORD);
client.Send(message);
client.Disconnect(true);
diff --git a/JobSendAgentMail/quartz_jobs.xml b/JobSendAgentMail/quartz_jobs.xml
index 5b684a35..9a8ae42d 100644
--- a/JobSendAgentMail/quartz_jobs.xml
+++ b/JobSendAgentMail/quartz_jobs.xml
@@ -10,55 +10,36 @@
JobSendBooking
Job
订阅数据
- JobSendAgentMail.JobSendBooking,JobSendAgentMail
+ JobSendAgentMail.JobSendCtn,JobSendAgentMail
true
false
ConnectString
- Data Source=www.perways.net,18866;Initial Catalog=ShippingWeb_SZYT;Persist Security Info=True;User ID=sa;Password=Ds20040201
+ Data Source=119.167.78.10,1433;Initial Catalog=DATA;Persist Security Info=True;User ID=sa;Password=yongfa_123
QuerySql
- select BSNO,MBLNO,ORDERNO,OPERATORFAX AS BLREMARK,AGENTID,BLFRT,PORTLOAD,PORTDISCHARGE,DESTINATION,CONVERT(varchar(100), ETD, 23) AS ETD,ATD,HBLNO,CONVERT(varchar(100), ETA, 23) ETA,CNTRTOTAL,(
- SELECT CODENAME FROM info_client WHERE SHORTNAME=OP_SEAE.CARRIER) CARRIERID,(CASE WHEN ISSUETYPE='电放' then 'Telex release'else case when ISSUETYPE='正本' then 'Original Bill' else case when ISSUETYPE='SWB' then 'Seaway Bill' else case when issuetype='云提单'then'INTELLIGENT BL'else '' end end end end) ISSUETYPE,(SELECT TOP 1 USERNAME FROM [user] where SHOWNAME=op_seae.OP) OPNAME,(SELECT TOP 1 email1 FROM [VW_user] where SHOWNAME=op_seae.OP) OPEMAIL, (((SELECT TOP 1 EMAIL FROM info_client where SHORTNAME=op_seae.AGENTID ))+';'+( SELECT TOP 1 email1 FROM [VW_userquan] where SHOWNAME=op_seae.SALE )) AGENTEMAIL from op_seae WHERE custno like 'CXE22050397'
+ SELECT 箱号 FROM [dbo].[t_op_ctn_detail] where isnull(是否还箱,0)=0 and (GETDATE()-动态时间)>180
-
- HblQuerySql
-
- select HBLNO,(CASE WHEN ISSUETYPE='电放' then 'Telex release'else
- case when ISSUETYPE='正本' then 'Original Bill' else case when ISSUETYPE='SWB' then 'Seaway Bill' else case when issuetype='云提单'then'INTELLIGENT BL'else '' end end end end ) ISSUETYPE
- from op_seae_billmanage
-
-
-
-
- DocType
- PA
-
-
-
- D7FilePath
- D:\东胜\DONGSHENGWEB\
-
MAILSENDACCOUNT
- szytcus@perways.com
+ han_xuntao@163.com
MAILSENDPASSWORD
- PER202100558YT12
+ ds20040201
MAILSENDSERVICE
- smtp.263.net
+ smtp.163.com
@@ -70,9 +51,14 @@
MAILISSSL
false
-
- MAILTEMPLATE
- MailTemplate.html
+
+ MAILRECEIVER
+ e.control@win-fast.com.cn,e.control2@win-fast.com.cn
+
+
+
+ MAILTITLE
+ 集装箱超期提醒
@@ -85,19 +71,10 @@
订阅数据触发器
JobSendBooking
Job
- 0 34 14 * * ?
+ 0 55 14 * * ?
-
+
\ No newline at end of file