473,386 Members | 1,720 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.

CDONTS Sends to some addresses but not others

38
Hi there,

This is a weird one. My CDONTS mail script runs fine, with no errors. When using my hotmail account as the recipient I receive the mail fine. However, if I change this to an outlook email account, it never arrives. Is anyone aware of what the problem is?

thanks.
Feb 26 '08 #1
7 2552
markrawlingson
346 Expert 100+
Doesn't sound like it's on the sending side of things, it's probably a receiving issue on the outlook account's end.

Could be a variety of things.

1) Server-side junk mail filter settings of the account in outlook
2) client-side junk mail filter settings for the account in outlook itself
3) auto-delete/block settings in outlook
4) Server-Side 'blacklist' setting or firewall.

Sincerely,
Mark

Hi there,

This is a weird one. My CDONTS mail script runs fine, with no errors. When using my hotmail account as the recipient I receive the mail fine. However, if I change this to an outlook email account, it never arrives. Is anyone aware of what the problem is?

thanks.
Feb 26 '08 #2
CroCrew
564 Expert 512MB
I agree with markrawlingson. Check your “junk Mail Folder” and you might find it there or another place to look would be any antivirus program that you might have running in the back-ground that is attached to Outlook.
Feb 26 '08 #3
Philth
38
Thanks for your replies.

I've turned off all of Norton restrictions on incoming mail and have checked the junk mail folders - still nothing. Just incase, here's my coding...

Expand|Select|Wrap|Line Numbers
  1.  
  2. <%
  3. Dim t1name,t1,t2name,t2,t3name,t3
  4. t1name = "Name:"
  5. t1 = Request.Form("t1")
  6. t2name = "Email:"
  7. t2 = Request.Form("t2")
  8. t3name = "Telephone:"
  9. t3 = Request.Form("t3")
  10. Dim stname,st
  11. stname = "Message:"
  12. st = Request.Form("st")
  13. Dim ObjMail
  14. Set ObjMail = Server.CreateObject("CDONTS.NewMail")
  15. ObjMail.To = "email"
  16. ObjMail.From = "postmaster"
  17. ObjMail.Subject = "Contact Form From Website"
  18. objMail.MailFormat = 0
  19. ObjMail.Body = t1name & vbcrlf&_
  20. t1 & vbcrlf&_
  21. t2name & vbcrlf&_
  22. t2 & vbcrlf&_
  23. t3name & vbcrlf&_
  24. t3 & vbcrlf&_
  25. stname & vbcrlf&_
  26. st
  27. ObjMail.Send
  28. Set ObjMail = Nothing
  29. Response.Redirect ""
  30. %>
  31.  
  32.  
Feb 26 '08 #4
CroCrew
564 Expert 512MB
This might be your problem.

ObjMail.To = "email"
ObjMail.From = "postmaster"

You’re not using the variable email or postmaster. What you are using is the string "email" and "postmaster". If somewhere in your code you are declaring and setting a value for the variables email and postmaster then you can just remove the quotes around the two words to make them variables and not strings. If the still does not work post the code again with your changes.

Hope that helps~
Feb 26 '08 #5
Philth
38
CroCrew, sorry, I should have said, I've removed any personal email address references. So ignore those two points.
Feb 26 '08 #6
Philth
38
This is how it looks...

Expand|Select|Wrap|Line Numbers
  1. <%
  2. Dim t1name,t1,t2name,t2,t3name,t3
  3. t1name = "Name:"
  4. t1 = Request.Form("t1")
  5. t2name = "Email:"
  6. t2 = Request.Form("t2")
  7. t3name = "Telephone:"
  8. t3 = Request.Form("t3")
  9. Dim stname,st
  10. stname = "Message:"
  11. st = Request.Form("st")
  12. Dim ObjMail
  13. Set ObjMail = Server.CreateObject("CDONTS.NewMail")
  14. ObjMail.To = "me@hotmail.com"
  15. ObjMail.From = "postmaster@hotmail.com"
  16. ObjMail.Subject = "Contact Form From Website"
  17. objMail.MailFormat = 0
  18. ObjMail.Body = t1name & vbcrlf&_
  19. t1 & vbcrlf&_
  20. t2name & vbcrlf&_
  21. t2 & vbcrlf&_
  22. t3name & vbcrlf&_
  23. t3 & vbcrlf&_
  24. stname & vbcrlf&_
  25. st
  26. ObjMail.Send
  27. Set ObjMail = Nothing
  28. Response.Redirect "thanks.htm"
  29. %>
  30.  
Feb 26 '08 #7
markrawlingson
346 Expert 100+
Which domain is the email account set up in outlook registered with?

EG:
@sympatico.ca
@somedomain.com
@iamsocool.net

Also, can you access this account from a webmail interface?

Junk mail filters are not only limited to outlook itself, there's usually all sorts of junkmail/whitelist/blacklist features on the server side as well. Outlook is a clientside application, checking mail filters and settings inside of it is pointless if the mail is being stopped at the server. If it's still not there I would see if there is a whitelist feature and add the from address from your CDONTS code to it on the server side as well as the client side. In addition your provider might think it's junk and automatically threw out the email to reduce spam domain wide. There's blacklisting issues here too, if your IP or the domain you're sending from is email blacklisted by the provider, they'll bounce it with or without your consent.
Feb 26 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Sean | last post by:
Hi I have a website hosted on a virtual server, and am trying to run a script that sends an email with a BCC address. The email gets sent just fine, except for the BCC recipient, who doesnt...
16
by: tshad | last post by:
I have both cdosys.dll and cdonts.dll on my W2K3 server. We have been told by our web authors that their asp code won't work on our machine and that we don't have CDONTS installed on our machine....
2
by: Dean J Garrett | last post by:
We use CDONTS from ASP quite a bit to send out e-mails. Everything works well "most" of the time. Sometimes, we find that the same e-mail gets sent out 2-3 times. Does CDONTS have any known...
5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
9
by: scott | last post by:
I have my win 2003 server setup correct with SMTP. I know because I've tested it ok. However, when I issue CODE 1 below, I get ERROR 1 below. I thought having SMTP installed correctly allowed...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
4
by: Dr. Harvey Waxman | last post by:
I guess I should change from cdonts to cdosys. Since I am ignorant about asp I hope you forgive this basic question. There are two asp files for handling mail, the one that gets the info from a...
3
by: Hugo Lefebvre | last post by:
Is there a maximum number of emails CDONTS can handle in an asp script? I have different questions about this. Question1: example1: set objSendMail = createobject("CDONTS.NewMail") ...... ...
7
by: Jason1983 | last post by:
Hello sir, When iam trying to send emails to my user accounts which are gmail id's using my application it is giving me this error. Here is the error... Server object error 'ASP 0177 : 800401f3'...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.