CDO.Mail Error
I have these pages running in my localhost, windows xp pro sp2 and constantly getting error. I have spent hours trying to solve the problem, but I am getting no where. I have changed the email address of mine here, but everything is verbatim.....
View Replies
ADVERTISEMENT
I'm using CDO from my vb component to fire email. The problem is
whenever one of the email addresses in to, or cc is wrong then none of
the mails are fired even to the correct addresses. It gives an error
like
The server rejected one or more recipient addresses. The server
response was: 550 Relaying denied for <xfd@wre.com>
My code goes like this. Why is the mail server trying to look for the
validation of email ids??I want that atleast the mail should be fired
to the correct email addresses rather than no email fire. Can i
achieve that.
Dim iMsg As New CDO.Message
Dim iConf As New CDO.Configuration
With iConf
.Fields.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Fields.Item(cdoSMTPConnectionTimeout) = 10 ' quick timeout
.Fields.Item(cdoSMTPAuthenticate) = cdoBasic
.Fields.Item(cdoSendUserName) = "username"
.Fields.Item(cdoSendPassword) = "password"
.Fields.Item(cdoURLProxyServer) = "server:80"
.Fields.Item(cdoURLProxyBypass) = "<local>"
.Fields.Item(cdoURLGetLatestVersion) = True
.Fields.Update
End With
Set iMsg.Configuration = iConf
With iMsg
.To = strToEmail
.From = strFromEmail
.CC = strCCEmail
.BCC = strBCCEmail
.Subject = strMailSubject
If strMailFormat = "TEXT" Then
.TextBody = strMailBody
Else
.HTMLBody = strMailBody
End If
If strAttachment <> "" Then
.AddAttachment strAttachment
End If
If intPriority = 2 Then
.Fields.Item("urn:schemas:mailheader:X-Priority") =
cdoHigh
.Fields.Update
End If
.Send
End With
View Replies
View Related
What i'm trying to do is if a person hits an error page, these are differnt error pages not the 404's or 500's.. When they hit that page i want it to send me an e-mail with all the information that was displayed on that page.
Can i do this in java or asp?
View Replies
View Related
while i still have a couple of hairs left on my head i decided to crawl in here on my begging knees and ask all you clevar programming sharks for advice before my needs for a wig becomes a reality.
okay here it goes. I made a function in asp that is suppose to send mails. First i had no clue why the email didn't reach it's destination so i tried every possible variation of the code i could think of, but nothing worked. In my frustration i tried adding and removing text inside the body of the email if i add e: to the end of the text in the body - the email gets delivered every single time... but as soon as i remove it from the text body the email doesn't arrive. I get no error (i disabled friendly error messages) the page loads as nothing is wrong. The event viewer has no errors. there's no mails inside badmail or queue.
The server is a windows 2003 with exchange 2003 installed on it as well.
if there's anything i forgot please do not hesitate to ask.
the email i try to send to is a hotmail account. If i send to an email address located on the exchange server the email gets delivered successfully no matter what's inside of the body.
here's the function i use:
function sendmail(strToEmail, strFromEmail, strSubject, strBody)
Set myMail=CreateObject("CDO.Message")
myMail.BodyPart.CharSet="iso-8859-1"
myMail.From=strFromEmail
myMail.To=strToEmail
myMail.Subject=strSubject
myMail.HTMLBody=strBody
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
="localhost"
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
end function
View Replies
View Related
I have an ASP script that collects information from a form on my site and
sends it as an email. The ASP script is calling CDONTS.DLL which is
registered on a win2k3 server with Exchange server running.
When submitting the form there is an error when it comes to the 'mail.send'
part of the script. I have given all the necessary folders the correct
permissions as per microsoft however I still get the same errors.
I believe it is something to do with permissions because if I disallow
anonymous access to the site and access it through the local network as a
logged in user the script works fine.
View Replies
View Related
I am using this code to send a mail from a feedback form page, but this code is not working. can anybody tell me what mistake I am doing . My requirement is , the message of feedback form will go as a content of a mail to a specific person.
<%
Set Mail=Server.CreateObject("CDONTS.NewMail")
Mail.To="emailid"
Mail.From="emailid"
Mail.Subject="Just testing my script"
Mail.Body="Hey! I am sending this email through an ASP Page, and
guess what? I haven’t learnt much yet, but know that ASP is very
powerful."
Mail.Send
Set Mail=nothing
%>
View Replies
View Related
I patched lastnight. My cdo send email code worked until this AM. The code has been working for months on my 2003 web server relaying to my exchange 2003 server. I now get
error '80040211'
/Ricweb/standards/testemail.asp, line 35 .....
View Replies
View Related
I have a small problrm in sending mail in HTML
I'v done this code, but.:
Code:
Private sub SendMail()
MailBefore = "<html>" & chr(13)
MailBefore = MailBefore & "<head><title>" & MailSubject & "</title></head>" & chr(13)
MailBefore = MailBefore & "<body>"
MailBody = MailBefore & MailBody & "</body></hmtl>"
select case strMailMethod
case "cdonts":
SendCdonts()
I receive like this....:
View Replies
View Related
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
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
My global.asa file looks like this
<script language=Vbscript RUNAT=server>
Sub Application_OnStart
application("ADOSqlConnection")="driver=SQL Server;Server=;uid=;pwd=;database="
application("ConnectString") = "driver=SQL Server;Server=;uid=;pwd=;database="
Sub Session_OnStart
Set Session("arrTo") = Server.CreateObject("Scripting.Dictionary")
Set Session("arrCC") = Server.CreateObject("Scripting.Dictionary")
Set Session("arrBCC") = Server.CreateObject("Scripting.Dictionary")
Set Session("arrFiles") = Server.CreateObject("Scripting.Dictionary")
Session("Count") = 0' to generate unique keys for the dictionaries
end sub
Sub Session_OnEnd
end sub
End Sub
</script>
I get this error
Microsoft VBScript compilation error '800a03ea'
Syntax error
/LM/W3SVC/542313792/Root/global.asa, line 8
Sub Session_OnStart
View Replies
View Related
I want to Send mail using the following code but an error appear like this:
----------------------
Error Type:
(0x8004020F)
The event class for this subscription is in an invalid partition
/tests/a.asp, line 27
---------------------
<%@ Language=VBScript %>
<!-- #include file="cdonts.inc" -->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<HTML>
<body>
<%
'Email to customer ......
View Replies
View Related
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'm using CDO to send mail to the site owner from ASP pages with forms.
Recently one of my forms is occasionally sending email with what seems
to be an insertion which is replacing the plain text part of the email
with something else. Looking at the server sent email source, the
hacked emails have the following:
View Replies
View Related
Here's the scenario. I'm currently using cdosys/asp to send mail to
our SMTP server. We use a product called MailFilter to check for SPAM.
It doesn't work very well. If MailFilter isn't working cdosys also has
problems and emails don't get sent. As these email are confirmations
for customer's bookings this means lots of customers calling to see
where their confirmation emails have gone. The root of the problem is
MailFilter but that here to stay. So I had this thought of sending the
message to a queue of some sort so at least they will get to the
customer eventually rather than being lost for good. So here's the
question:
Can I/How do I send messages to a mailbox on our exchange server using
cdo.message?
View Replies
View Related
I would like to know if this can be achieved! On the form I a drop down menu that's called ("Escalation_type") the values are eta, hdtv, and supervisors. I have some ideas but I am not sure if it will work or not. If the use chooses an eta as a value I would like it to be sent a mailbox for exam: no@where.com. If they choose hdtv as value I would like it to be sent to a different mailbox. Can this be achieve by using the case statement or the if statement?
View Replies
View Related
I'm looking for an asp code who can send an email without using a mail component. I started to write somethings using winsock but I don't have enough time to finish it.
View Replies
View Related
I got an error saying
Microsoft VBScript runtime error- Error '800a000d'
Type mismatch
/briansforums/default.asp, line 923
also another error called Code:
View Replies
View Related
# Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
/CoxAxis/adminEditPage.asp, line 6
My code:
<%
dim self, pid, i, c
self = Request.ServerVariables("URL")
pid = Request.Querystring("pid")
set Session("pageContent") = Server.CreateObject("Scripting.Dictionary")
Set custObj = Server.CreateObject("NFIFunctions.ValidateField") Line 6
set psi = Session("pageContent")
set errDict = Server.CreateObject("Scripting.Dictionary")
i = 1
View Replies
View Related
i'm getting
Provider error '80004005' Unspecified error
admin/dbconnection.inc, line 4
what this is, it only started happening after i did a recent upload of my database!, i 've tryed uploading it again but the error still appears.
View Replies
View Related
Have created a contact page which uses CSS and am using asp mail object to send email on the page. However, I have encountered problems and think it might be down to the DOC type that am using ....
View Replies
View Related
I have to create a send mail code after registration had taken place. i want to know how to code for that ....
View Replies
View Related
Our company has recently migrated from Windows 2000
servers to Windows 2003 servers. Since the move to IIS 6,
I have been unsuccessful in finding how to configure the
server to support CDONTS to send smtp mail.
I have used this method in asp pages for years without
any issues, until 2003 server. I have even tried opening
the smtp server completely, and still no luck. I can send
mail using OE through the server, so I don't believe it's
an smtp configuration issue.
View Replies
View Related
I am facing a problem,
I am using CDONTS for mailing,
and the following Code:
<%
set sendMail=server.CreateObject("CDONTS.NewMail")
sendMail.To="divyesh.shah@softsolvers.com"
sendMail.Body="Hello Testing"
sendMail.From="divyesh.shah@softsolvers.com"
sendMail.Subject ="Test"
sendMail.BodyFormat =0
if sendMail.Send then
Response.Write ("Mail Send")
else
Response.Write ("Mail Not Send")
end if
set sendMail=nothing
%>
I have two windows 2000 server, while running from one server i got the mail, while from the other i don't got the mail,on the second one the mail is dump in the mailrootqueue.
is there is some problem with the CDONTS setting on the second server, or some other problem
View Replies
View Related
I have a simple ASP app (not ASP.Net) that I need to send email from.
Can anyone make a recommendation, and share why that's the best one?
(cdo, msxml, etc)
View Replies
View Related
I am trying to get cdo.message working on my home development machine,
however, when I send it it appears to get stuck in the queue and never
actually gets sent.
If I don't have a domain SMTP set (either alias or remote) then I get an
error on page. But if I set these, the email just sits on the queue. I have
been trying to work it out from other posts and forums, aspFAQ etc but with
no joy.
Could someone supply a step by step guide to getting SMTP set up on a win2K
pro machine and how to get these mails out of my servers queue and into the
outside world so I can properly test code withing having to upload to my
hosts server and get the email back?
View Replies
View Related
We use a custom built mail system at work. It is an asp based webmailing system. It uses cdonts.When we try to mailout to our clients (as a group) about 1500 of them, most of them get the full email. Others get about a third of the email.
View Replies
View Related
how can i send the mail to multiple receipients like yahoo.mail or hotmail.
View Replies
View Related
I made a form in which I send the visitor a link to my page but when the visitor gets that link in the mail it dosent send him to the page just says invalid syntax or something like outbound. I'm not trying to spam
this is the code iput into body variable
text= "<table width='310' border='0'> "&_
"<tr><td class='all'><p align='center'> Something <br>"&_
"something<br>"&_
" Something<br>"&_
" <strongAnd something <br>"&_
" </strong>Something!<br>"&_
" <a href='http//www.something.com'>www.something.com</a></p>
</td></tr> </table>"
I looked at code that works and its the same why dosent this work.
View Replies
View Related
I was wondering what is the best method for mailing with asp? There is CDONTS and ASP MAIL and something else. What do you guys recommend?
I want to send my mailing list of 315 (its a celebrity gossip ezine) by html/graphic way. SO when a user checks their hotmail, they SEE the html message (I think this is called "in-line viewing" and not to have it come as attachments. Is there any script I can run and try out on PWS?
View Replies
View Related
I am generating Purchase Order from database. Then i send it to the
supplier. I am using CDONTS to send mail.
I am not sure that it was sent or not.
So i need confirmation when they read it or received. How can i send a mail
with acknowledgement?
View Replies
View Related
My mail server and web server are 2 different servers.
Both servers run win2k.
Therefore the web server does not have an SMPT server.
ASP throws the Server.CreateObject failed error when using a CDONT.NewMail object.
What I need to be able to do is configure IIS or ASP on the web server to look at the mail server for the SMTP server.
Is this possible? If so, how is IIS/ASP configured for this?
View Replies
View Related
I'm trying to create a mail script "not formmail" to email me a test message using asp. Could somebody tell me what's wrong with me script? it doesn't send me a message???. I'm using windows 2000 & mailenable email server.
<%@ Language=VBScript %>
<%
Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NEWMAIL")
objCDO.To = "4@yahoo.com"
objCDO.From = "4@yahoo.com"
objCDO.cc = ""
Dim txtSubject
txtSubject = "Test Test Test"
objCDO.Subject = "Testing Email Script"
objCDO.Body = txtSubject
objCDO.Send
%>
<html>
<head>
<title>Comersus Diagnostics and Tools</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<img src="images/logocomersus.gif" width="194" height="57">
<br><br><b>Comersus Diagnostics and Tools</b> <br><br>
<body>
</body>
</html>
View Replies
View Related