Blocking CDONTS/CDOSYS Mail
I run a web site that uses various forms to send email to customers. For example, I have a "Forgot your password?" script and a "Email this page" script.I've found out that when a user sends an email via my site to a Hotmail address, the email just "disappears." I'm assuming Hotmail is considering the email SPAM because it was send by my web server? The site uses ASP and I've tried using CDONTS and CDOSYS (which I specified a SMTP server for) and nothing seems to work for Hotmail.
A large portion of my customers user Hotmail, so banning it really isn't an option.Is there anything I can do to prevent Hotmail from blocking my site's emails?
View Replies
ADVERTISEMENT
I need some help: with cdosys i'm able to send e-mail from asp using the local exchange
server. Now I also have to save the sent mail into the user's mailbox for future reference: how to?
I'm using:....
View Replies
View Related
I have an email script that used to work but now doesn't, my web host told me I have to use CDOSYS instead of CDONTS.If it's not to much trouble could someone look at my script below and make it CDOSYS compliant.Thanks
<%@LANGUAGE="VBSCRIPT"%>
<%
Dim usxCDO
Set usxCDO = Server.CreateObject("CDONTS.NewMail")
usxCDO.From = cStr(Request("email"))
usxCDO.To = "someone@somewhere.com"
usxCDO.Subject = "Subscription To Magazine"
usxCDO.Body = Chr(13) & Chr(10) &_
"Name: " & cStr(Request("name")) & Chr(13) & Chr(10) &_
"Company: " & cStr(Request("company")) & Chr(13) & Chr(10) &_
"Email: " & cStr(Request("email")) & Chr(13) & Chr(10) &_
"Instructions: " & cStr(Request("instructions")) & Chr(13) & Chr(10) &_
"A SUBSCRIPTION ORDER HAS BEEN PLACED."
If (cStr(Request("Submit")) <> "") Then
View Replies
View Related
I'm trying to convert this code and after several attempts at tutorials I am still scratching my head I am using XP pro IIS
Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")
body = body & " Your username is: " & user & vbCrLf
body = body & " Your password is: " & PasswordTemp & vbCrLf
objCDO.To = email
objCDO.From = "user@wherever.com"
objCDO.Subject = "hello"
objCDO.Body = body
objCDO.Send
View Replies
View Related
I am using Cdonts and CDOSYS to send email. Script runs without any error, but some of the reason I am not receiving any e mails. I am using window 2000 on exchange 2000 sercer, Code:
View Replies
View Related
Is it necessary to set field configurations for CDOSYS?
I have yet to recode all my existing uses of CDONTS over to CDOSYS. In most
of the sample code I've seen on the usual ASP sites, there is code to set
field configurations for CDOSYS (usually using With... End With). However,
in a number of CDOSYS-related code samples offered within this news group,
the field configuration code is absent.
View Replies
View Related
could someone please explain the difference between CDO, CDONTS and CDOSYS. I was just wondering why they don't just have one instead of many. Code:
View Replies
View Related
For send mail from a web page is there any benefit in using CDOSYS over CDONTS? Are the methods the same? How do you Set the object?
View Replies
View Related
I've been searching high and low for a decent comparitive analysis of the various e-mail components for IIS (specifically for use with ASP).
Here are a few that are pretty common: ASPMail - I've been using this, but it seems that if the SMTP server is backed up, it slows down ASP page that submits the mail, apparently because this version does NOT provide message queuing
ASPQMail - This component provides the queuing options, which theoretically would avoid ASP slowdown when the SMTP server backs up. Unfortunately my host doesn't offer this component.
CDONTS - Comes with IIS, so widely supported
CDOSYS - Comes with IIS 5 & later
JMail - A free component, also widely used. Documentation is poorly translated into English and difficult to follow.
Putting aside the fact that every web host supports a different set of mail components and "your mileage may vary"...
What is the best-performing solution?
View Replies
View Related
I have a form that needs to handle international characters withing the UTF-8
character set. I have tried all the recommended strategies for getting utf-8
characters from form input to email message and I cannot get it to work. I
need to stay with classic asp for this.
Here are some things I tried:
'CDONTS
Call msg.SetLocaleIDs(65001)
'CDOSYS
msg.HTMLBodyPart.Charset = "utf-8"
I included the following meta tag in the email HTML:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
I also tried modifying the CharSet and CodePage of all involved Request and
Responses.
I was able to Response.Write the form content on post back to the screen and
it was properly rendered. However, none of my efforts can get the email to
render with the correct codebase. I have tried opening the email in Outlook
and Thunderbird. Neither one picks up on the UTF-8 charset meta tag.
View Replies
View Related
When using CDOSYS, if an email address contains a hyphen(-) prior to the @ sign, the form will fail. Can anyone reading this who uses CDOSYS test this same scenario in their environment? I wonder if this is a CDOSYS issue, or something specific to my situation.
When using CDONTS, we can only send to email addresses that are internal to our company. For example, any emails addressed to(E-Mail address blocked: See forum rules) go through fine. For all non widgetsRus email addresses, such as Internet addresses, the form submits but the delivery never occurs and so failure messages are returned.
This single form has been setup on two servers, on the one server it works fine and can be sent to non widgetsRus recipients. The same form on a different server does not. I know it's not the code so I'm wondering if there are some SMTP settings that could be the problem?
View Replies
View Related
how to check can be made to see if a CDOSYS email was sent successfully? And if not retreve and post the error?
View Replies
View Related
I put the following code into my mailer: Code:
if objIndexMail.Send then
Response.Write("Mail Sent")
else
Response.Write("Failure. ")
end if
and it's coming up as Failure every time. Is there a way I can see the status of the .Send command, and why it came up as a failure? no errors are being generated, it's just not sending..
View Replies
View Related
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. They're getting an error from:
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
I know that the new format is:
Set objCDOMail = Server.CreateObject("CDO.Message")
Is there something special that we have to have installed to make CDONTS work?
View Replies
View Related
I am usually a CDONTS man but the hosting company say I must use CDOSYS. The following code seems to only work correctly when the recipients email address is the same as the sender address.
I have tried to send the email to Hotmail, Yahoo and GMail accounts and it does not send. No error messages, just is not received in the inbox of the account.....
View Replies
View Related
im using code below to send an email, let say sample is my company domain, when i try to put myMail.From and myMail.To as Lee@sample.com.sg, but when i try to put myMail.From and myMail.To as same as code below, it seems like never send ou the mail. Can anyone tell me what is the problem? Code:
View Replies
View Related
I have managed to scag around the internet and find this code posted in a forum way fack in 2004. I have working examples of aspMail written in VBScript but am doing (not through personal choice the coding in JScript).
This code seems to be ok apart form the http:// schema sections, they throw an errror and I can not find any information as to what they should be set to. Code:
View Replies
View Related
For some reason, the email scripts on my web site can't send emails to
Hotmail accounts. No error is generated, but no email is sent either. I've
done some searching on this matter, and it appears as though I'm not the
only one having this problem, but I have yet to find a solution :(
Below is my CDOSYS script that was *supposed to* resolve the problem by
passing the SMTP server's along with the email, but it doesn't work :(
Have any of you had success with sending emails to Hotmail accounts via CDO?
I don't have control over the server's setup because it's a hosted account...
View Replies
View Related
i recently finished a tutorial on cdonts and finished putting together the page and form etc. now ive been reading and it seems cdonts is being discontinued and cdosys is taking over. does this mean that my cdonts will not work and i have to trnasfer it to cdosys ?
how can i transfer it to cdosys ? or do i have to make a completely new mail script?
Code: ....
View Replies
View Related
I am trying to get a asp-mailer setup that will send a specified attachment.
I have tried both CDONTS and CDOSYS methods ... both are giving me headaches.
And the best part is how incredibly helpful the error is: (Sarcasm Intended)
Error Type:
(0x80004005)
Unspecified error <-- They should change that error to ... "Good Luck!"
/knowledgetree/emailer-drivers.asp, line 90
I hilighted the above line in the code as well.
Here is the code I am working with: Code:
View Replies
View Related
I was told that I need to replace CDONTS with CDOSYS. Code:
View Replies
View Related
I've been using CDOSYS Mail and this bit of code fine for a year. Well, we wanted to change the method of sending email from the Webserver sending it, to designating a specific SMPT server.
So, I found this code on MSFT's web site (MSFT CDOSYS SMTP ) that will allow me to do this, and it works, except that the redirect command that I have at the end of the file no longer works. I have no idea why.
Thi is the error I get:
error '8004020f'
/asp/send_email_foundation_conf.asp, line 78
Code: ...........
View Replies
View Related
When I send htm mail to hotmail using cdosys the links appear like this " javascriptl("news01.htm"); " without quotes, the images appears in the worng place and they shows as attached, but when I send the same mail to Outlook there is no problem, the links and images apeears in the right place, there is no problem with it jus in hotmail or free web based application mail. (yahoo, gmail, hotmail, etc...)
Somebody Knows why??
View Replies
View Related
I have downloaded the script from brainjar but it needs a bit of tweaking because my smtp host requires authentication, I have added what i feel are the relevant lines of code but these are giving me a runtime error
These are the relevant lines of code, the 1st line giving me the error:
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'whether you use a authentication on the server
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = *******
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = *****
View Replies
View Related
What I am trying to do is to upload 4 files to my server (Windows 2003 Server Edition , IIS 6.0) and then e-mail them to my e-mail account. I use 2 files. The first is uploadTester.asp...
View Replies
View Related
IS the code for sending email using cdonts different if you are running a windows 2000 server with exchange 2000 as opposed to running a different windows server (NT) with exchange 5.5?
if I upgrade the server to exchange 2000 from 5.5 do i have to reinstall the cdo.dll on the server??? do i need to somehow reinitialize the cdo so it's active?
View Replies
View Related
Catching an error from CDONTS New Mail
I need to find away to catch an error if CDONTS” New Mail dose not deliver the email. I have searched for manuals on this but have only found short references on how to send email, nun of them say anything a bought returning an error
View Replies
View Related
I had a webmail CDONTS script working.quite well too I think
I had an error saying mail.to had a type mismatch. I went through the database (it's a web form mailing list for a client) and found what I thought to be bad email addresses. Tried it again and it works fine.
My question, is there anyway to validate the email address? I am assuming that CDONTS wants the text string to be in a certain format. How can I test the data for a valid format, and then throw out that email address if it is not in the expected format?
View Replies
View Related
can anyone see why this wouldn't work...it's driving me nuts
Set objcdmail = Server.CreateObject("CDONTS.NewMail")
objcdmail.From = "me@mydomain.com"
objcdmail.To = "me@mydomain.com"
objcdmail.Subject = "test"
objcdmail.Body = "testing"
objcdmail.send
Set objcdmail = Nothing
I have copied this from another page that I have. The original page takes
the details from a form on another page, so the results above are all
request.form("whatever") etc, and the original works!!
but if I try to put fixed values in as above it fails to work and I can't
see why?
I've even tried a response.write to check the values..and they look right,
but no mail is sent
I'm running win XP pro but have taken the CDONTS.DLL from my win 2000 pc and
done the regsv32 etc etc
maybe I should try to use CDOSYS but
a) I haven't a clue how and so
b) I copied a script directly from a help page which didn;'t work either!
c) the eventual host server is running NT4
View Replies
View Related
Sending mails using CDONTS works great but I have (for now) just 1 minor problem.
I would like to place the username (of the person located in my database) inside my input-box (type="text") and send that as a page to the person using cdonts.
here's a part of my code (simplified):
HTML = HTML & "<html>"
HTML = HTML & "<head>"
HTML = HTML & "</head>"
HTML = HTML & "<body>"
HTML = HTML & Email: <input type=""text"" name=""email"" value=""<% = strEmail %>"">
HTML = HTML & "</form>"
HTML = HTML & "</body>"
MyCDO.Body = HTML
So the problem arises at line 5 here. He does not understand the asp-tags inside the text. Anyone who knows how to solve this?
View Replies
View Related
I had to write a page in ASP which sends an email. I googled and was able to write the following code:
<html>
<body>
<%
Set Mail = Server.CreateObject("CDONTS.NewMail")
Mail.To = "XXXXXXXXXXXX@XXXXXX.COM"
Mail.From = "YYYYYYYYY@YYYYY.COM"
Mail.Subject = "Test MAIL Subject"
Mail.Body = " Body Body Body Body Body Bodyody Body Body"
If Mail.Send Then
Response.Write("Mail has been sent successfully")
Else
Response.Write("Mail Sending Failed")
End If
Set Mail = nothing
%>
</body>
</html>
When I run this script on a shared hosting server, It's saying "Mail
Sending Failed". I had never written ASP code before and couldn't find
what the reason is.. I also checked whether CDONTS.NewMail component
is available.
View Replies
View Related
Am looking for help in converting a CDONTS mail form script, which is not supported by my new host, into jscript. I have no fromal training in programming etc... Have self taught myself enough to probably get myself in trouble The following script i had written about 6 years ago for automated webimport intomy CRM "Goldmine" for populating database fields. Anyway, here is my old, and now worthless script...
View Replies
View Related
My problem is, when I send e-mail to our members, not all of them are getting them and there is no rhyme or reason. I was thinking of re-writting the program to go through MS Outlook so our Exchange Server will take care of sending it. Then again, probably there is someone who can help me figure out why some e-mail are not getting delivered even though they have valid e-mail addresses. There must just be about 25-35 out of probably close to 2000 members in our mailing list. I am using SMTP do you think it is getting overloaded with delivery? Sometimes they would come back with a delivery delayed notification.
I posted my code because there might be something in my program that does not work for mass e-mail sending and somebody might want to give me a suggestion on handling this matter.
What if I send the e-mail one by one instead of doing a bcc?
View Replies
View Related