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
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
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 ---------------------
I have asp for an employee directory with photos. All the info is stored in an Access database including e-mail address and phone number. I would really like to get the e-mail and phone numbers from our Outlook/Exchange address book. This address book is kept updated but my database is not. How would I go about extracting this info from our global address list? Would it be better to create something that updated the Access database offline rather than dynamically query each persons entry from the web server? Any hints on how to do either?
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 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:
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?
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.....
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.
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
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.
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 %>
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 .....
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).
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
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
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?
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.
Let me start by saying I'm fairly new to Asp coding. That said...
My ISP only uses AspSmartMail. I've created an online form that uses fill out, which is then e-mailed to the collector of the information and CC-ed to the person who submitted the information.
The error I'm receiving is this: aspSmartMail.SendMail : Error 28 error '8004001a' 504 Invalid Username or Password
In my script, I've Dimensioned several items, as you'll see below, passing the authenticating username/password to the smtp server, but it's not working. I tried not passing the information by entering in the actual info without it being passed by the diminsioned items. This didn't work either. I of course verified that the username/password I'm usine is correct.
Can someone plase tell me why I can't authenicate? I would really appreciate any help that might be out there.
Relavant Asp code below: ----------------------------------------- Dim smtpserver,youremail,yourpassword,yourusername,rem oteemail
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 ....
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.
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
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)
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?
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.
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
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?
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?
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>
I created an Email sender to get emails out of my database, and send it! But when they get the Email it goes into Junk Mail, which most people dont read. Just wondering is there a way of sending the Email, and for it to NOT go into junk mail?