dbTalk Databases Forums  

send mail in dts

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss send mail in dts in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jen
 
Posts: n/a

Default send mail in dts - 11-04-2003 , 11:51 AM






HI,
I have a function worked before in DTS, but I got error
recently:

DTSStep_DTSActiveScriptTask_1, Error = -2147220482
(800403FE) Error string: Error Code: 0 Error
Source= jmail.SMTPMail Error Description: The message
was undeliverable. All servers failed to receive the
message Error on Line 178 Error source:
Microsoft Data Transformation Services (DTS) Package
Help file: sqldts.hlp Help context: 1100 Error
Detail Records: Error: -2147220482 (800403FE);
Provider Error: 0 (0) Error string: Error Code: 0
Error Source= jmail.SMTPMail Error Description: The
message was undeliverable. All servers failed to receive
the message Error on Line 178 Error source:
Microsoft Data Transforma... Process Exit Code 1. The
step failed.


function sendEMail(sRecip, sSender, sSub, sMsg)
dim objMail
dim sReceive
dim sResponse
dim j

Set objMail = CreateObject("JMail.SMTPMail")
objMail.ServerAddress = "mail.imsns.com"
objMail.Sender = sSender
objMail.Subject = sSub
objMail.Body = sMsg
sReceive = Split(sRecip, "|")
For j = LBound(sReceive, 1) To UBound(sReceive, 1)
objMail.AddRecipient sReceive(j)
Next
'WriteText sMsg
If Not objMail.Execute Then
sResponse = sResponse & "ERROR MESSAGE: " &
objMail.ErrorMessage & vbCrLf
sResponse = sResponse & "ERROR SOURCE: " &
objMail.ErrorSource & vbCrLf
sResponse = sResponse & "LOG: " & objMail.Log &
vbCrLf
WriteText sResponse
End If
Set objMail = Nothing
end function

But in the log file:
errNumb=0: ErrorDesc= :ErrorSource=


Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: send mail in dts - 11-05-2003 , 01:44 PM






In article <0e7f01c3a2fc$53d9b220$a601280a (AT) phx (DOT) gbl>, Jen
<anonymous (AT) discussions (DOT) microsoft.com> writes
Quote:
HI,
I have a function worked before in DTS, but I got error
recently:

DTSStep_DTSActiveScriptTask_1, Error = -2147220482
(800403FE) Error string: Error Code: 0 Error
Source= jmail.SMTPMail Error Description: The message
was undeliverable. All servers failed to receive the
message Error on Line 178 Error source:
Microsoft Data Transformation Services (DTS) Package
Help file: sqldts.hlp Help context: 1100 Error
Detail Records: Error: -2147220482 (800403FE);
Provider Error: 0 (0) Error string: Error Code: 0
Error Source= jmail.SMTPMail Error Description: The
message was undeliverable. All servers failed to receive
the message Error on Line 178 Error source:
Microsoft Data Transforma... Process Exit Code 1. The
step failed.


I would find out exactly what the error means from Dimac.

Best guess would be name resolution of the SMTP server Fqdn or perhaps a
relay restriction, although I would have expected the error to mention
that if so.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.