Working With Unicode E-mail Using ASP And CDONTS

Can anybody tell me how to send unicode mails using ASP and CDONTS.

Here is what I tried but it will display ??? for special characters in outlook.

I want to send email in lithunian and russian languages.

MY Server is MS 2003 running IIS6 .....

View Replies


ADVERTISEMENT

Mail (CDONTS) Not Working

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

Send An Unicode (UTF-8) Mail

How can i send an Unicode mail with ASPclassic? I want to send an email in Farsi ( or same Persian ) I use this code but this is ...

View Replies View Related

CDONTS Not Working

I'm using IIS 5 on a win xp machine for all my testing, before I upload to our live server. I've installed the SMTP service and it's running with no errors.

Dose anyone know anything about the above set-up not supporting "CDONTS.NewMail" for sending email using ASP..?

I get the following error message: "Server object, ASP 0177 (0x800401F3) Invalid class string".

View Replies View Related

CDONTS Not Working

I have set up a simple form that takes a users email, name, address etc. It is working fine when I test it using various email addresses with a yahoo.com or hotmail.com etc style address - but when I test it with a .ws ending email (a valid account), the message never arrives at its intended location?

It seems to only work occasionally - it's not consistently working? Does anyone have any ideas why this could be?

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

Email Using CDONTS Not Working,though It Is Installed

I ran some script and confirmed tht CDONTS exists on the server...which runs on Win2k and has IIS 5.0 When i run my email script,no error is displayed ,but i NEVER get the emails im trying to send. What could be the problem.

View Replies View Related

CDONTS Not Working On W2000 Server

I am trying to run a test sending mail using CDONTS on my W2K3 machine.

It works fine running from my WXP Pro, but I don't recieve the mail if
run the W2K3 machine.

Both machines have IIS configured essentially the same. Code:

View Replies View Related

CDONT Mail Not Working

Hi what is wrong here?

<%
Dim MyMail
Set MyMail = Server.CreateObject("CDONTS.NewMail")
MyMail.From = email
MyMail.To = "myemail@site.com"
MyMail.Cc = ""
MyMail.Bcc = ""
MyMail.Subject = "Message From Contact Page"
MyMail.BodyFormat = 1
MyMail.MailFormat = 0
MyMail.Importance = 2
MyMail.Body = message
Set MyMail = Nothing
%>

Its not working (dont worry I specified the right email)

View Replies View Related

ASPEmail Not Working In My Mail Script

I have a flash email contact form that uses ASP to execute the send mail. My sendmail component of choice is ASPEmail. The original script was CDONTS, but I needed it changed. I'm no programmer, but I got tired of posting for assistance in various forums only to receive plenty of looks but little help.

One person is offering to help me out, but I want to figure it out on my own until he gets some time to write up a script for me. Here is my script, which is sectioned out for easier reference. My form still doesn't send any mail and I don't know what I'm doing wrong. I do not wish to rewrite the script because then I'd have to change the text input fields in my Flash contact form. I merely am seeking assistance on fixing my existing script in sections IV and V (toward the bottom of the script).

Would someone explain to me what I'm doing wrong, please? Oh, and before you ask, I did test my ASPEmail configuration and it is working fine via the test scripts that came with it.

When you fill out the form and click SUBMIT the acknowledgement (i.e Thank you very much...blah, blah, blah) appears and everything looks okay, but the mail never reaches my inbox, which to me means that it's not being sent.

So far, I haven't had much success with anyone tackling this, so I'm hoping that I can get some help here...I was able to get some really good and knowledgeable help a year ago...any takers?

<%
'SECTION I
Response.Buffer = True
Dim strBody
Dim objCDOMail
Dim strMyEmailAddress
Dim strCCEmailAddress
Dim strBCCEmailAddress
Dim strReturnEmailAddress
' END ....

View Replies View Related

CDONTS Text Based Email Message Not Working

I'm trying to send email through a form I created and everything works except the email portion. It's not sending the text message. Code:

View Replies View Related

CDONTS Mail

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

CDONTS New Mail

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

CDONTS Mail.to

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

Sending Mail Code On Website Not Working

When I attempt to send mail from my IIS, it works, but after I upload to a website, the feature does not seem to work as nothing is arriving in my inbox. Here is the source of my test code:....

View Replies View Related

Error Type: (0x8007007E), CDO Mail Not Working

My other problem with the code that I am writing is that I cannot get the email funtion working. I eventually want it to use another SMTP server rather than running on the local machine using IIS' built in email system.

The code is very simple as follows:

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Email Test"
myMail.From="me@test.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a CDO email test."
myMail.Send
%>

This should work fine as far as I can tell, I am running win xp pro with IIS installed and SMTP service running. When I access the page though I get the following error:

<LI>Error Type:
(0x8007007E)
/mycal/email.asp, line 12

<LI>Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

<LI>Page:
GET /mycal/email.asp

<LI>Time:
09 March 2005, 10:26:01

CDOSYS.dll is present in the windowssystem32 directory, I can only presume it is something to do with that, but I really don't know. I tried to register the dll in regsvr32 to see if that was the problem, but it said it couldn't register it (return code 0x800704da).

View Replies View Related

Script For Working Out Royal Mail Postage

Anyone know where I can get hold of a script to work out royal mail postage
depending on weight?

View Replies View Related

ASP In HTML-mail Using CDONTS

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

Send Mail In ASP Using CDONTS

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

Cdonts Mail To Jscript

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

CDONTS Mass E-mail

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

Send Mail With CDONTS

I just found out that CDONTS was indeed installed on our web server so I've been playing around with some easy sample codes. However, when I run the code, nothing happens. I get no errors, it seems like everything went OK, but no email! Are there firewall issues with CDONTS? If so, how can I work around them?

View Replies View Related

CDONTS TO SEND MAIL

I'm not sure if CDONTS is loaded or what is wrong. On a new 2003 Web server w/FP extentions but mail is not being sent. In and ASP page I have:

set objSendMail = CreateObject("CDONTS.NewMail")

Which worked fine when I was using an NT 4 and IIS 4 or 5

View Replies View Related

CDONTS Mail.CC Question

The code itself is working, this is more of a cosmetic thing for me...
lets say objRS("memail") = Join Bytes!

strEmail = objRS("memail") & ";bill.clinton@aol.com"
Mail.CC= strEmail

When the person (Mail.To) get's the message, the header only shows the objRS
value, followed by a semicolon, the bill.clinton address doesn't show up,
although he does get the email.

So, if the 'to' was for Sally Brown, when she get's the email, she only
see's one name on the CC line, in this case tom.petersen, she doesn't know
it went to bill.clinton as well, unless of course she does a reply to all,
then his name will show in the CC part.

Again, the code works, but I am trying ot get it to display right and was
wondering if it's the code, as it usually is in my case!

View Replies View Related

Cdonts Mail Sent But Can't Receive

After I run my cdon't.asp file, I saw a successful message saying "mail sent". Then, I went to open my inbox but find no mail. So, I went back to c:inetpubmailroot, I saw a folder called queue and saw that mail there. How do I solve this problem?

View Replies View Related

CDONTs Mail Object

When I sent the below statement in body of the CDONTs mail object it replaced the hyphens with question marks.Actual sent message: "Thursday, June 10, 1 - 3 pm"
Actual recieved message: "Thursday, June 10, 1 ? 3 pm"

View Replies View Related

CDONTS Mail Object

I am working with CDONTS mail object. The code doesn't give any syntax error; but, actually it doesn't work because I don't know how to give my local sever's machine name in the Mail Object's .From property. :P What is the machine name? Could any one give me the right format? Where do I know the machine name from? I tired by right clicking "My Computer" and seeing it's properties. But, I think that's not the machine name.

View Replies View Related

CDONTS Mail Question

Let me first outline the environment. The ASP app is running on a Windows 2000 Server within a large controlled network. I know Exchange Server is not required on this server for messages to be forwarded but I have to believe that the Exchage Server on the domain is the only way messages are passed once they leave the Web server.

If the domain's Exchange Server goes down what will happen to messages generated by the ASP app using CDONTS? Will the Web server's SMTP server continue to attempt delivery or do they just get dumped into the bad mail folder?

View Replies View Related

Sending CDONTS Mail Within Loop

I am trying to send e-mails to customers in a database. Each e-mail is customised for each customer, so I cannot simply copy all customers on the same e-mail. My logic loops through the appropriate recordset and attempts to send a notification e-mail to each customer. The problem is that about 10 - 20% of the e-mails do not get sent! (I know this because I :bcc myself on all the e-mails.) I also know that there is no problem with the e-mail addresses because when I try again to run the program with the same addresses but a smaller list of customers, those mails go out just fine.

The program generates a report which shows that it tried to send all the appropriate e-mails, but in reality several of the mails were not sent. What's interesting is that all of the e-mails near the beginning of the program execution get sent. But as the program goes on, more and more get skipped. It seems that CDONTS cannot keep up with the program execution.

Does anyone know of a way to solve this? What would be great would be a DO... WHILE loop that kept trying until the e-mail was sent successfully. But, for that approach to work, there would have to be some way for the program to check if the e-mail had gone out successfully. Another option would be a loop that waited until the *previous* e-mail had been sent successfully before attempting to send the next one.

Does anyone know of a way to test either of those conditions or of an alternate approach to avoid this problem I am having?

View Replies View Related

Configuring Form For Cdonts Asp Mail

I have to ask for some help on this simple task. I have a form that I want to sent via email. I made an asp mail form/file that looks like this:

Code:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<form method="POST" name="aspmail.asp" action="--WEBBOT-SELF--">
&nbsp;<p>&nbsp;</p>
<p><input type="text" name="T1" size="20"></p>
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>

</body>

</html>

Ib have linked this form via POST to my aspmail.asp cdonts code. This looks like like this:

Code:

<%
Dim objMail
Set objMail = Server.CreateObject("CDO.Message")
Set objConfig = Server.CreateObject("CDO.Configuration")

'Configuration:
objConfig.Fields(cdoSendUsingMethod) = cdoSendUsingPort

objConfig.Fields(cdoSMTPServer)="smtp.1and1.com"
objConfig.Fields(cdoSMTPServerPort)=25
objConfig.Fields(cdoSMTPAuthenticate)=cdoBasic
objConfig.Fields(cdoSendUserName) = "mdinrune-1"
objConfig.Fields(cdoSendPassword) = "rtdhe"

'Update configuration
objConfig.Fields.Update
Set objMail.Configuration = objConfig

objMail.From ="info@justonedomain.com"
objMail.To = "kmuel@aol.net"
objMail.Subject ="Information"
objMail.TextBody="This is a test for CDO.message"
objMail.Send

If Err.Number = 0 Then
Response.Write("Mail sent!")
Else
Response.Write("Error sending mail. Code: " & Err.Number)
Err.Clear
End If
Set objMail=Nothing
Set objConfig=Nothing
%>

Can anyone point out why this is not working? It should work.

View Replies View Related

E-Mail With CDONTS Attach Problem

I'm sending an email in ASP using CDONTS and I'm trying to attach a file from the user's machine (i.e. client side) and right now it works... BUT what im doing now is having the user upload the file and it is saved on the server in the temp directory, then once the email is sent, the file is deleted.

So here's the question... Is there a way to attach a file using only the file info and data - i.e. without saving the file to the server. I have a pure asp upload include file that will let me view a file's data in binray format and I was wondering how I could use this to attach the file.

So to reiterate, can I attach a file that is not saved on the server... any takers?

View Replies View Related

Mail Went To Queue Folder With CDONTS?

My ASP code is:

<%
dim mailComp,mailObj
mailComp="CDONTS"
set mailObj = Server.CreateObject("CDONTS.NewMail")
mailObj.BodyFormat = 0
mailObj.MailFormat = 0
mailObj.From = "Didem.Gultoprak@vestel.com.tr" 'sadece bir örnek
mailObj.To = "Pinar.Gokcen@vestel.com.tr"
mailObj.Subject = session("admin")
mailObj.Body = request.Form("comments")
mailObj.Send
set mailObj=nothing
response.Write("mail sent")
%>

but no mail comes to me.All mails stored in Queue folder in MailRoot.

View Replies View Related

How To Send A Mail With Atachment By CDONTS?

i am devloping a carrer page. i want 2 give the facility 2 user to upload the resume and send to the mail id. for example in yahoo mail. one can attach resume and send to the desired id. i want to do it in cdonts. so can anybody help me?????

View Replies View Related







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