Answered by:
Error in sending mails !

Question
-
I am trying to send email thro DTS using Activex Script.
Here is the code :
'**********************************************************************
' Visual Basic ActiveX Script
'************************************************************************Function Main()
const SMTP_SERVER = "MPBAKOREX01.corp.mphasis.com"set iMsg = CreateObject("CDO.Message")
set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.FieldsWith Flds
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPickup
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = SMTP_SERVER
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 90
.Update
End With
With iMsg
Set .Configuration = iConf
.To = "ausrg@yahoo.com"
.From = "shanmuga.r@mphasis.com"
.Subject = "TEST"
.HTMLBody = "jfldsajfldk;sajf ;lksadjf;lkasdjlfkjasdlkfjlasdkj flkdsajflsadjf ljasdlf a"
.Send
End With
Main = DTSTaskExecResult_Success
End FunctionWhen i am executing this , i am getting the following error :
Error Source : Microsoft Data Transformation Services (DTS) PackageError Description : Error Code: 0
Error Source= CDO.Message.1
Error Description: The "SendUsing" configuration value is invalid.
Error on Line 27
How to solve it ?
Tuesday, January 9, 2007 7:30 AM
Answers
-
Hi,
You question has nothing to do with SSIS (or DTS) and more about CDO programming in VBScript. This is SSIS group, I doubt you'll find many CDO experts here.
The best advice you'll get in this forum is to move to SSIS - there is a nice SMTP Mail Task that will likely do what you need.
Regards,
Michael.Tuesday, January 9, 2007 8:09 AM
All replies
-
Hi,
You question has nothing to do with SSIS (or DTS) and more about CDO programming in VBScript. This is SSIS group, I doubt you'll find many CDO experts here.
The best advice you'll get in this forum is to move to SSIS - there is a nice SMTP Mail Task that will likely do what you need.
Regards,
Michael.Tuesday, January 9, 2007 8:09 AM -
ohh Thanks michael
Tuesday, January 9, 2007 8:48 AM -
Try searching, this will have been answered before on the DTS newsgroup -http://groups.google.com/advanced_search?q=+group%3Amicrosoft.public.sqlserver.dtsTuesday, January 9, 2007 9:40 AM
-
Hi DarrenSQLIS,
Thanks. But i dont have access to the site which u mentioned. Can you plz details the article in that site ?
:)
Tuesday, January 9, 2007 12:32 PM