Wrox Programmer Forums
|
BOOK: Professional SQL Server 2000 DTS
This is the forum to discuss the Wrox book Professional SQL Server 2000 DTS (Data Transformation Services) by Mark Chaffin, Brian Knight, Todd Robinson; ISBN: 9780764543685
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SQL Server 2000 DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 10th, 2003, 09:26 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default MAPI Error 273--From Chapter 8 -306 pgno

Hello Gurus,
          sending email from DTS getting error MAPI logon failed 273.
DB Server has mS outlook installed with a MAPI configuration(i can send mail from here)
 any suggestions

Jay


Dim oPackage
Dim oMailTask 'oCustomTask1
Dim oMail 'holds send mail task object
Dim oStep
Set oPackage = DTSGlobalVariables.parent


'Clean the task if there is already exists

For Each oMailTask in oPackage.Tasks

    If oMailTask.Name = ("DTSSendMailTask_runtime") Then
        oPackage.Tasks.Remove ("DTSSendMailTask_runtime")
    End if
Next

'Clean the Steps if there is already exists

For Each oStep in oPackage.Steps
    If oStep.Name = "AutoMailSend" Then
        oPackage.Steps.Remove "AutoMailSend"
     End if
Next

'Adding a new step to this package
    Set oStep = oPackage.Steps.New

'invoking DTSSendMailTask method for a task
    Set oMailTask = oPackage.Tasks.New("DTSSendMailTask")


'Give a namefor the task you are invoking
    oMailTask.Name =("DTSSendMailTask_runtime")

'best way of calling it shorty oMail.CCLine ="ESSSystems" OR "oMailTask.CustomTask.CCLine ="ESS Systems"
Set oMail = oMailTask.CustomTask

     oMail.Profile = "Default Outlook Profile"
     oMail.ToLine = "Barb Nelson"
     oMail.CCLine ="ESSSystems"
     oMail.Subject = "Auto Integrity Check results"
     oMail.MessageText = "This is an auto generated file for CPR(Contact Performance Report) integrity check." & vbCrLf
     oMail.MessageText = oMail.MessageText & "For any furthur questions or concerns " & vbCrLf
     oMail.MessageText = oMail.MessageText & "Regards" & vbCrLf
     oMail.MessageText = oMail.MessageText & "Admin"
    oMail.FileAttachments = ofilename

    oStep.TaskName =oMail.Name
    oStep.Name ="AutoMailSend"
    oPackage.Steps.Add oStep
    oPackage.Tasks.Add oMailTask

oPackage.Steps("AutoMailSend").Execute
    oPackage.Tasks.Remove ("DTSSendMailTask_runtime")
    oPackage.Steps.Remove("AutoMailSend")
 
Old April 8th, 2004, 10:26 AM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You may find this info from Microsoft to be helpful:

http://support.microsoft.com/default...;en-us;Q315886

Cheers

"Oxymoron is not an acne cream for idiots."
 
Old May 7th, 2004, 01:01 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That is a very helpful FAQ page. Thanks autiger!

XUMUSKIEFAN
Wrox Moderator





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapt 8 Try it out (Inserting).. Page 273 Robert Reno BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 4 February 9th, 2006 06:21 PM
Page 273 - HibernateCallbackHandler interrom BOOK: Professional Java Development with the Spring Framework 0 September 8th, 2005 07:05 AM
DTS sendmail mapi error tdl6281 SQL Server DTS 1 April 13th, 2004 03:42 PM
mapi.session error louisantony Beginning VB 6 1 January 26th, 2004 11:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.