Changing CDONTS Email Form To CDOSYS

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


ADVERTISEMENT

CDONTS Or CDOSYS UTF-8 Email

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

How To Send CDONTS Or CDOSYS Email With Specified Attachment?

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

Using CDOSYS To Email Form Results

Can someone please tell me if its possible to create an instance of CDOSYS (to send an emails) on one host and have the email sent from another host.. or are there obvious gaps in my understanding of what takes place when one tries to send an email using CDOSYS or CDONTS?

View Replies View Related

ASP Email Form And CDOSYS Ain't Working

I contacted my hosting people and they said they're running Windows 2003, which uses CDOSYS and not CDONT. So, I followed the advice on the sitepoint site for converting to CDOSYS and have concocted the following script: ....

View Replies View Related

Contact Form Sending Through Email Using Cdosys

I am new to asp i am facing in sending the contact form sending through email using cdosys the following is the code server space work on Microsoft Windows 2003 w/IIS 6.0.

When i press send button i get a error as The page cannot be displayed and HTTP 500 - Internal server error .....

View Replies View Related

CDONTs - Problem Formatting An Email, From Form To Email

I am having a problem formatting an email message which comes from a form.

I am currently having difficulty with the <br> tag which I am using for line spaces within my email. I am getting an expected statement error message which is pointing to the line which is underlined below. I can't think what is causing this.

The code for my processing page is below:-

View Replies View Related

Cdonts Email Form

I made an contact form, and an asp script for the email, but my messages get sent to the mail/queue folder in inetpub. I have a hunch it has something to do with the email address I put in the "from" area since it's just made up.

I'm using cdonts object, and registered the dll, and it works fine. I also opened port 25 on my router, and tested if it really was open, and it is. Code:

View Replies View Related

Cdonts Email Form Not Working.

Can anyone take a look at this code and see where I may be going wrong?

************************************************** *
html page:
<form method=Post action=get.asp>
valley secretary<br>
<input type="text" name="t1" size="20"><p>
<input type=submit value=Submit></form>
************************************************** *
asp page:
<%
Dim t1name,t1
t1name = "valley secretary"
t1 = Request.Form("t1")
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "kklimarchuk@supremecouncil.org"
ObjMail.From = "kklimarchuk@supremecouncil.org"
ObjMail.Subject = "Form Submission"
ObjMail.Body = t1name & vbcrlf&_t1
ObjMail.Send
Set ObjMail = Nothing
Response.Write"Thank You"
%>

Here are the two pages html and calling the asp. As you can see I am new to this. I also had our Network Admin make sure CDONTS was installed correctly on IIS. Any help would be awesome. I have been trying to create an email form for months now......

View Replies View Related

HTML EMail Form CDonts

How to I wrap this to process the information as HTML EMail?

I have enabled all the HTML options in the script but I still get a text email:....

View Replies View Related

Sending Form Via Email - CDONTS / SMTP

I have Road Runner cable internet access and Im working in a local development environment (writing .ASP) and have a site running on my network on a windows xp pro machine via IIS with CDONTS installed.

When I try to send a confirmation email (simple text) via CDONTS the message is built but remains on the server in the QUEUE folder ... how can I tweak the SMTP settings on the server to allow me to send email out from the server...

just the occassional test as I develop sites - not looking to spam and have a fairly full featured router to block external access to SMTP machine so its not abused.

View Replies View Related

CDONTS To CDOSYS

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

Cdonts To Cdosys

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

Cdonts And CDOSYS

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

CDONTS To CDOSYS

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

Cdonts And Cdosys

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

CDONTS And CDOSYS

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

CDONTS, CDOSYS & JMail

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

CDOSYS And CDONTS Quirks

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

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 View Related

Get .Send Status In CDONTS Or CDOSYS

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

CDOSYS AND CDONTS On W2K3 Machine

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

Hotmail Blocks Emails Sent W/ CDONTS/CDOSYS?

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

How To Replace CDONTS With CDOSYS And Set The Server Name Property

I was told that I need to replace CDONTS with CDOSYS. Code:

View Replies View Related

Email & CDOSYS

does anyone know why the code below wont work ?

It doesnt thow any errors, but no email is being sent!

'--------------------------------------------------------------
'-------- now use CDOSYS to send email because im using IIS5.1
'--------------------------------------------------------------
Dim objConfiguration
Dim objFields
Dim objMessage
Set objConfiguration = CreateObject("CDO.Configuration")
Set objFields = objConfiguration.Fields
With objFields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) ="localhost"
.Item(cdoSMTPServerPort) = 25
.Item(cdoSMTPAuthenticate) = cdoBasic
.Update
End With

Set objMessage = CreateObject("CDO.Message")
With objMessage
Set .Configuration = objConfiguration
.From = "mark@mark.com"
.To = "mark-wheeler@tiscali.co.uk"
.Subject = "Here comes a Subject"
.TextBody = "Here is a text body"
.Send
End With
Set objMessage = Nothing
Set objConfiguration = Nothing

View Replies View Related

CDOSYS: No Email Is Getting Sent

I am trying CDOSYS code to send out email. The problem is when I try to send email to gmail and hotmail account, it never works. Means, no email appears at gmail and hotmail account. But when I send it to yahoo mail, it works.

I run the code at localhost. I use Win XP Pro. I just wonder why this happen.
Can someone explain to me?

Below is the code that Im trying out: ....

View Replies View Related

CDOSYS Email

How can you create a hyperlink in the HTML body of CDOsys email? Line 7 is a link for yahoo.com, but the asp page does not work.

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject ="Test Page - File upload"
objMessage.Sender = "" & Request.Form("email1") & ""
objMessage.To ="jason@yahoo.com"
objMessage.HTMLBody = "Email: " & Request.Form("email1") & vbCrLf & _
"Confirmation #: " & Request.Form("ConfirmID") & vbCrLf & _
"<a href="http://yahoo.com.com/">yahoo</a>" & vbCrLf & _
"FileName: " & Request.Form("file1") & vbCrLf & _
"Name: " & Request.Form("Name") & vbCrLf

View Replies View Related

Sending Email Using CDOSYS

I used the below code to try and send an e-mail. On my local machine (XP machine) using IIS, the e-mail got generated and was placed in this folder.

C:InetpubmailrootQueue

So I am assuming the mail got generated correctly and the reason the e-mail did not get sent is that I do not have SMTP setup in my IIS. Do you agree with this statement? The reason I asked that is because I am not sure if I have SMTP setup or not in IIS and I am not sure how I check that.

To continue, I migrated my code up to the production web server and I tried executing it there. I have some display.write statements and they all were displayed so again, I am assuming the mail got generated correctly.

The problem is that the e-mail was not sent (or at least I am assuming it did not because I do not see the e-mail in my inbox).

I have never generated an e-mail before so this process is new to me. My code will be attached below but I was trying to understand some basic concepts.

-If I get my code to work on my local machine thru IIS, should it then also work in the production environment?

-It seems like I am calling so pretty specific components for the configuration settings. Is this the correct way to handle this?

-If you are familiar with this type of code, have I implemented this correctly? I would assume I have not since an e-mail is not getting set.....

View Replies View Related

Sending Email Using CDOSYS

I want to send auto email using CDOSYS but in backdate. is it possible to set the date for an email? Code:

View Replies View Related

CDOSYS Multipart Email

can anyone post or direct me to a code snippet for sending a plaintext/html mutlipart email using CDOSYS? I can do basic code, but this is way beyond me. If a user enters html into a form, is there a way for code to strip that out and leave only plaintext behind?

The idea is that a user would fill in one html field, the form would email it in multipart, with one part using the html the user entered and the plaintext part using the same info but with the html code stripped out.

View Replies View Related

Cdonts Email Script Won't Send Email

i used the following script but it won't send the email. any suggestions why?

<%
Dim TBdy
Dim MyCDO
CR = Chr(13)
Set MyCDO = Server.CreateObject("CDONTS.NewMail")
MyCDO.From = "person@something.org"
MyCDO.To = "allstar@aol.com"
MyCDO.Subject = "collegebound info"
TBdy = Request.Form("cb_name")
MyCDO.Body = TBdy
MyCDO.Importance = 1 (Normal)
MyCDO.Send
Set MyCDO = nothing

%>

View Replies View Related

Queue Email Sending With CDOSYS

I'm running a mailing list which has grown to around 5000 recipients. I'm currently using ASP to cycle through a database of recipients to send each a custom email with their name, unsubscribe link etc.

Currently I'm using CDOSYS to send the mail, and have set up a page to trigger the emails in batches of 50 so that they don't create blockages on the mail server.

Is it possible to queue emails with CDOSYS, since this would mean I could fire all the emails at once, safe in the knowledge that they will all be dealt with without a problem.

I've used the ASPEmail component before which does this, and it was very effective, but sadly it's not an option to use it on this domain.

View Replies View Related

Cdosys Body Text Is Not Being Sent By Email

cdosys body text is not being sent by email. Please see if you can spot the problem. Everything below emailHeader & emailFooter is not being sent by email.

see code below:

<!--- BEGIN CDOSYS CODE --->

<%
dim strBody
Set MailObj=CreateObject("CDO.Message")
MailObj.Subject="Your Online order from store-website"
MailObj.From= "store@store.com"
MailObj.To= Request.Form.Item("cEmail")
MailObj.Bcc="store@store.com"
MailObj.TextBody = strBody

emailHeader = "DELIVERY INFORMATION"
strBody = strBody & "DELIVERY INFORMATION (If Delivery was selected):" & VbCrLf
strBody = strBody & "Delivery Choice: " & Request.Form("dChoice") & " on " & Request.Form("choiceDate") & VbCrLf
strBody = strBody & "Delivery Name: " & Request.Form("dName") & VbCrLf
strBody = strBody & "Delivery Address: " & Request.Form("dAddress") & VbCrLf
strBody = strBody & "Delivery City: " & Request.Form("dCity") & VbCrLf
strBody = strBody & "Delivery Zipcode: " & Request.Form("dZip") & VbCrLf
strBody = strBody & "Delivery Phone: " & Request.Form("dPhone") & VbCrLf
strBody = strBody & "Delivery Instructions: " & Request.Form("dInstructions") & VbCrLf
strBody = strBody & "-----------------------------------------" & VbCrLf & VbCrLf

emailFooter = "CONTACT/BILLING INFORMATION"
strBody = strBody & "CONTACT/BILLING INFORMATION: " & VbCrLf
strBody = strBody & "Billing Name: " & Request.Form("cName") & VbCrLf
strBody = strBody & "Billing Address: " & Request.Form("cAddress") & VbCrLf
strBody = strBody & "Billing City: " & Request.Form("cCity") & VbCrLf
strBody = strBody & "Billing Zipcode: " & Request.Form("cZip") & VbCrLf
strBody = strBody & "Billing Phone: " & Request.Form("cPhone") & VbCrLf
strBody = strBody & "Billing Email: " & Request.Form("cEmail") & VbCrLf
strBody = strBody & "Amount to be paid with Gift Certificate: " & Request.Form("GiftCamount") & VbCrLf
strBody = strBody & "Gift Certificate Number: " & Request.Form("GiftCnumber") & VbCrLf
strBody = strBody & "Amount to be paid with Credit Card: " & Request.Form("cCardAmount") & VbCrLf
strBody = strBody & "Credit Card Type: " & Request.Form("cCard") & VbCrLf
strBody = strBody & "Credit Card Number: " & Request.Form("cCardNumber") & VbCrLf
strBody = strBody & "Credit Card Expiration: " & Request.Form("cCardExpiration") & VbCrLf
strBody = strBody & "-----------------------------------------" & VbCrLf

wantedCartColArray = Array(0,0,0,1,1,1,1)
wantedCartColNamesArray = Array("LineItemTax","LineItemTaxValue","ProductID","Quantity","Name","Price","Total")
wantedCartColFormatArray = Array(false,false,false,false,false,true,true)
currencyTypeArray = Array("$",0,-1,-2,-2,-2)

%>

<%
' UltraCart II Email Order Version 2.01
MailObj.TextBody = UCII.BuildEmailBody(false,emailHeader,emailFooter, _
wantedCartColArray,_
wantedCartColNamesArray,_
wantedCartColFormatArray,_
"Order ID",true,_
"Order Date",true,_
"Sub Total",true,_
"Tax",true,_
"Discount",false,_
"Shipping",false,_
"Shipping Method",false,_
"Grand Total",true,currencyTypeArray)


MailObj.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
MailObj.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
MailObj.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
MailObj.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
MailObj.Configuration.Fields.Update
MailObj.Send
Set MailObj = nothing
%>

<!--- END CDOSYS CODE --->

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved