Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which service is used to send CDO mail. 2

Status
Not open for further replies.

JonMa

Programmer
Jul 16, 2003
69
NO
Please Help.
We are using windows 2000 professional and use CDO to send mail. I thought there should be SMTP service to control mail like I have at home on windows xp, but there is none.
1. Does anyone know which SERVICE is used to send mail by CreateObject("CDO.Message").
2. Not important but do you also know where the delay for sending messages can be found.

Thank you for any help.
Sometimes the mail stops and we do not know how to control it unless we make a reboot of the machine.

Regards Jon.
 
You specify a smtp server in your cdo configuration. So cdo basically forwards emails to another smtp site. You can try restarting the IIS service rather than rebooting next time.




Claudius (What certifications??)
 
Hello again.
Thank you Claudek for the answer.
The funny thing is that no IIS service og SMTP service is running.
We do not have any connection to another server so I am not quite sure what you mean by forwarding emails to another smtp site. Could there be a SMTP service hidden in some other service ? I can see we have a service called MESSENGER, could it be that one ?
Thanks.
Jon.
 
OK, here is a list of all my services.
Which one should it be ?
Thanks.
Jon.

Alerter
AnmChannelFactoryserver
AnmChannelserver
AnmLoggerserver
Anmsupplierserver
Application Management AsP,NET State Service
Ati HotKey Poller
ATIsmart
Automatiskeoppdateringer
ClipBook
COM+ Event System
Computer Browser
CT Bus Broker DHCPClient
Dialogic
Dialogic 557 Service
Distributed LinkTrachng Client
Distributed Transaction Coordinator
DM3Config
DNsClient
Event Log
Fax Service
Indexing Service
Internet Connection Sharing
IPLinkH,323stack
IPsEC Policy Agent
Logical DiskManager
Logical DiskManager Administrative Service
Machine Debug Manager
Messenger
Net Logon
NetMeeting Remote Desktop Sharing
NetworkConnections
NetworkDDE
NetworkDDE DSDM
Norton AntiVirus Auto Protect Service
Norton Internet Security Accounts Manager
NT LM Security Support Provider
pcAnywhere Host Service
Performance Logs and Alerts
Plug and Play
PrintSpooler
Protected Storage
QoSRSVP
Remote Access Auto Connection Manager
Remote Access Connection Manager
Remote Procedure Call (RPC)
Remote Procedure Call (RPC) Locator
Remote Registry Service
Removable Storage
Routing and Remote Access
RunAsService
ScriptBlochngService
Security Accounts Manager Server
Smart Card
Smart Card Helper
Symantec Event Manager
Symantec NetworkDrivers Service
Symantec Password Validation Service
Symantec Proxy Service
System Event Notification
TaskScheduler
TCP!IP NetBIOS Helper Service
Telephony
Telnet
Tjenesten Background Intelligent Transfer
Tjenesten Portable Media Serial Number
Trådløs konfigurasjon
Uninterruptible Power Supply
Utility Manager
Windows Installer
Windows Management Instrumentation
Windows Management Instrumentation Driver Extensions
Windows Time
Workstation
 
Nearest I can see from that list is Application Management AsP,NET State Service

CDO uses ASP, o rather is a component in ASP. I assumed IIS by default resulting in my last replies.

Try restarting that service and seeing how it goes.




Claudius (What certifications??)
 
Thank you for your help Claudius.
It was'nt Application Management AsP,NET State Service so I will have to take som time to think it over. Anyway you have told me about IIS and SMTP and that is what I've also found when searching the internet.
Thanks again.
Jon.
 
CDO itself does not use a service - it is a COM object.

CDO needs either an internal SMTP server or an external server running on the network to relay the E-Mail.

What you say does not add up - no SMTP service running on the system and no SMTP server available on your network?

post the CDO part of your script
 
Hello Sunny4ever.
Glad for your answer.
Here is the script.
Thanks Jon.

Dim MyMail
set args = WScript.Arguments
if args.Count < 2 then WScript.Quit (99)
mottaker = args(0)
rapportfil = args(1)
for I = 2 to args.Count-1
melding = melding & args(I) & " "
next
fra = "name@company.no"
Set MyMail = CreateObject("CDO.Message")
MyMail.From = fra
MyMail.To = mottaker
'MyMail.Cc = fra
MyMail.Subject = melding
MyMail.TextBody = "Vennligst se vedlegget for nærmere informasjon."
MyMail.AddAttachment rapportfil 'Hele path
MyMail.Fields("urn:schemas:httpmail:importance").Value = 2
MyMail.Fields.Update()
on error resume next
MyMail.Send()
if not err.Number=0 then err.clear
Set MyMail = Nothing
WScript.Quit (0)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top