kevin_reading
asked on
ASP: CDONTS email gets stuck in pickup folder
I'm writing a program in ASP/HTML to send e-mails. It goes something like this (except I'm using actual e-mail addresses):
-------------------------- ---------- ---------- ---------- ---------- --
set objSendMail = CreateObject("CDONTS.NewMa il")
objSendMail.From = "abc@xyz.com"
objSendMail.To = "def@xyz.com"
objSendMail.Subject = "test"
objSendMail.Body = "hi, this is a test."
objSendMail.Send
-------------------------- ---------- ---------- ---------- ---------- --
I don't get any errors or anything, but I never recieve the e-mail. It just stays in the Pickup folder in mailroot, with the extension .EML. My anonymous internet users (IUSR_SERVER and IWAM_SERVER) have operator rights to my Default SMTP Virtual Server. Why aren't the e-mails getting through, and what can I do to fix it?
Please help! and thanks in advance,
Kevin
--------------------------
set objSendMail = CreateObject("CDONTS.NewMa
objSendMail.From = "abc@xyz.com"
objSendMail.To = "def@xyz.com"
objSendMail.Subject = "test"
objSendMail.Body = "hi, this is a test."
objSendMail.Send
--------------------------
I don't get any errors or anything, but I never recieve the e-mail. It just stays in the Pickup folder in mailroot, with the extension .EML. My anonymous internet users (IUSR_SERVER and IWAM_SERVER) have operator rights to my Default SMTP Virtual Server. Why aren't the e-mails getting through, and what can I do to fix it?
Please help! and thanks in advance,
Kevin
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've looked at the event log. It was mentioned only as notices ("the service has started", etc), no warnings or errors.
The mail files aren't moved to Queue or Badmal; they stay in Pickup.
The mail files aren't moved to Queue or Badmal; they stay in Pickup.
Open a command prompt in the web server and do this
ping yahoo.com
nslookup
>set q=mx
>yahoo.com
What do you get?
ping yahoo.com
nslookup
>set q=mx
>yahoo.com
What do you get?
ASKER
>ping yahoo.com
Pinging yahoo.com [66.218.71.198] with 32 bytes of data:
(All four pings were replied correctly; I'm not going to write them out)
>nslookup
***Can't find server name for address 192.168.0.1: No response from server
Default server: eli-mail1-int.syptec.com
Address: 192.168.1.42
> set q=mx
> yahoo.com
Server: eli-mail1-int.syptec.com
Address: 192.168.1.42
Non-authoritative answer:
yahoo.com MX preference = 5, mail exchanger = mx4.mail.yahoo.com
(it gives me a bunch of other IPs for yahoo, too.)
Just FYI, 192.168.0.1 is a BSD computer I have, through which my internet connection is running and being shared. 192.168.1.42 is the primary DNS server at my ISP. My ISP is SYPTEC. The computer I'm running my ASP and SMTP off of is 192.168.0.84.
Pinging yahoo.com [66.218.71.198] with 32 bytes of data:
(All four pings were replied correctly; I'm not going to write them out)
>nslookup
***Can't find server name for address 192.168.0.1: No response from server
Default server: eli-mail1-int.syptec.com
Address: 192.168.1.42
> set q=mx
> yahoo.com
Server: eli-mail1-int.syptec.com
Address: 192.168.1.42
Non-authoritative answer:
yahoo.com MX preference = 5, mail exchanger = mx4.mail.yahoo.com
(it gives me a bunch of other IPs for yahoo, too.)
Just FYI, 192.168.0.1 is a BSD computer I have, through which my internet connection is running and being shared. 192.168.1.42 is the primary DNS server at my ISP. My ISP is SYPTEC. The computer I'm running my ASP and SMTP off of is 192.168.0.84.
Do this also from command prompt
telnet mx4.mail.yahoo.com 25
helo
quit
Is your DSN IP given or obtained automatically?
telnet mx4.mail.yahoo.com 25
helo
quit
Is your DSN IP given or obtained automatically?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What was the resolution to your problem? Is it resolved? If yes, you should not grade it C. If it was not resolved, you should ask for refund rather than grading it C. Whatever is the reason, you should have at least posted a comment about it and the way you resolved it. When you accept an comment, the question goes to PAQ where people look for solution before posting their question. The way this question stands now, no one will know how this problem was resolved. Please read...
https://www.experts-exchange.com/Web/qnaFAQ.jsp#3
Please post a question in https://www.experts-exchange.com/Community_Support/ if you want to change the grade.
https://www.experts-exchange.com/Web/qnaFAQ.jsp#3
Please post a question in https://www.experts-exchange.com/Community_Support/ if you want to change the grade.
ASKER
I apologize for my poor ettiquitte; this is my first time on Experts Exchange. I'll include an explanation of what I did to resolve the problem:
What I ultimately did to resolve the problem was I gave Everyone Modify rights to the mailroot folder. (It wouldn't work with just enabling the internet guest accounts.) After that, my e-mail client could pick it up.
While your comments and GripSavage's comments didn't directly solve the problem, they gave me ideas to exercise which led to my finding a solution.
What I ultimately did to resolve the problem was I gave Everyone Modify rights to the mailroot folder. (It wouldn't work with just enabling the internet guest accounts.) After that, my e-mail client could pick it up.
While your comments and GripSavage's comments didn't directly solve the problem, they gave me ideas to exercise which led to my finding a solution.
Well if you think our comments helped, it should be graded B :) If I were you, I would rather ask for refund. None of the comments mentioned about the permissions, so if you see it, you figured out the solution yourself. Please post a 0 point question in https://www.experts-exchange.com/Community_Support/ and the moderators will take care of this. I think they can refund the points even now. If not, at least they can change the grade to B. Most experts will not answer your next question if they see that you have graded a previous question as C. Moreover you don't loose anything by grading better because grading changes only the multiplication factor. You have already spent your points and they remain same. In this site grade C is very frowned upon and is treated as an insult.
ASKER
The Simple Mail Transport Protocl (SMTP) service is stopping.
The Simple Mail Transport Protocl (SMTP) service was stopped successfully.
>net start stmsvc
The Simple Mail Transport Protocl (SMTP) service is starting.
The Simple Mail Transport Protocl (SMTP) service was started successfully.
It is still doing the same behavior. The SMTP service is installed, but I haven't done anything to configure it. I had this script working on a different W2K Server machine before, and just got a new server, upon which it doesn't work. But, yes, the service is indeed running.
Kevin