473,386 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

SMTP Mail Queue

windows server 2003

SMTP appears to be running, connection tab has "all except the list
below" checked, and there is nothing in that list

I have this bit of code:

Dim ObjSendMail
Dim iConf
Dim Flds

Set ObjSendMail = Server.CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields

Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1

'**** Path below may need to be changed if it is not correct
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory")
= "c:\inetpub\mailroot\pickup"
Flds.Update

Set ObjSendMail.Configuration = iConf
ObjSendMail.To = "my*******@mydomain.com" ' I've used my real address here
ObjSendMail.Subject = "this is the subject"
ObjSendMail.From = "so*****@someone.net"

' we are sending a text email.. simply switch the comments around to
send an html email instead
'ObjSendMail.HTMLBody = "this is the body"
ObjSendMail.TextBody = "this is the body"

ObjSendMail.Send

Set ObjSendMail = Nothing

Everytime that gets run, I find a new message in:

"c:\inetpub\mailroot\queue

There is nothing in any of the other mailroot subfolders

(I tried changing the smtpserverpickupdirectory path to queue, but
changed back)

What have I done wrong?

Jeff
Aug 10 '06 #1
2 4261
Everytime that gets run, I find a new message in:
>
"c:\inetpub\mailroot\queue
http://www.aspfaq.com/2268
Aug 10 '06 #2
Jeff wrote:
Everytime that gets run, I find a new message in:

"c:\inetpub\mailroot\queue

There is nothing in any of the other mailroot subfolders

(I tried changing the smtpserverpickupdirectory path to queue, but
changed back)

What have I done wrong?
Probably nothing. The script is working properly if the message ends up un
the [pickup] folder. SMTP Services must be running, because the message gets
picked up and moved to [queue].

Does the message stay there forever, or does it eventually end up in
[badmail]? Either way, have you opened the .eml file in a text editor and
looked for errors?

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Aug 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Shawn Zheng | last post by:
I have a problem with SmtpMail.Send. the message sent by SmtpMail.Send stuck in Inetpub\mailroot\Queue folder could not be sent out. The SMTP server is in Windows 2000 server. the code that I used...
5
by: Charlie | last post by:
Hi: I'm working on an e-commerce site. Using the SMTP class, my site sends out confirmation messages. It works most of the time, but sometimes raises an error. I need a way of making sure it...
2
by: Al Wilkerson | last post by:
Does anyone know why smtp messages stay in the queue folder? Every time I send a message using my local smtp server I get no error, but I never receive the message, and the messages just stay in...
1
by: madfisher | last post by:
Hi, I am trying to send email via a ASP .NET page using the local SMTP virtual server. My mail items go in the Queue but do not get sent out. Can this be done this way, or do I need a true email...
0
by: Dan Sikorsky | last post by:
This is a C# console app using SMTP to send an email. The .EML file stays in the Queue folder because I close down the Internet Connection prematurely. What's the best way to keep the Internet...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
1
by: Benny Ng | last post by:
Dear All, Now I just finished my winform application. And a part of that is to send email reminder to the users. It's working fine in the server that with SMTP service in Windows 2003. But now...
11
by: ibiza | last post by:
Hi all, I am trying to use the System.Net.Mail class for the first time, with ASP.NET 2.0. I setup everything according to http://www.codeproject.com/aspnet/EasySMTP_package.asp, which gives...
4
by: lage | last post by:
Hi, I am working with a web site that uses CDONTS from a function in a Com+ component to send mail to clients after sign up etc, as well as sending clients mail to support from a web form. A...
5
by: Josh | last post by:
I'm curious about the limits of my current method of sending out e- mail w/ php and possibly alternatives. Right now, I have a mysql DB of registered users. I have a PHP file accessed daily that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.