Using CDONTS For Sending Mails

I am writing an ASP page for sending mails using CDONTS component. Is there any way to capture errors if the components fails to send mails?

View Replies


ADVERTISEMENT

Sending Mails

I have emails sending no problem on other sections of the site but the following piece wont send

Where email is stored with a email variable from stored procedure i tested it and the value is the.....

Dim RegMail
Set RegMail = CreateObject("CDO.Message")
RegMail.From = "somone@gmail.com"
RegMail.To = email
RegMail.Subject = "ISM Mock Theory Test"
RegMail.TextBody = BodyText
RegMail.Send
Set RegMail = Nothing

View Replies View Related

Sending Mails Using CDO

I want to write a code for sending mails using CDO object in ASP. can it is possible to send mail without mentioning name of smtp server.I am using 2k3 O.S. Also one more problem i am facing , i want to send a mail in HTML format, when receipient receive that mail some times it shows in proper HTML formated mail but some times it not showing(it just shows html tags in mails) . I am using .htmlbody property of cdo object.

View Replies View Related

Sending Mails

I have done a ASP Prog where when the user submits the form an email is sent to the resp person.The problem is all the mails are going and sitting in the mail folder and are not moving from there to the mail id's. Can anyone tell me what i would have missed? Code:

View Replies View Related

Sending Mails Using ASP

I have a code to send an email in my asp application. But if i send a
mail through this asp code i am not to get the trademark((tm)) symbol in
my subject line.

View Replies View Related

Sending E-Mails In ASP

I'd like to be able to write an ASP page that users can enter requests in. When a new request is entered, the page would e-mail a list of recipients and inform them of the new request. I've never done this and really have no idea where to start.

View Replies View Related

Error When Sending Mails

I have read many posts suggesting how to solve the infamous email problem. now I get this error: error '8004020f'

but not when I send mails to myself. It works just for my email adress. I really don't know what to do Code:

View Replies View Related

How Can We Send E-Mails With ASP Without Using CDONTS?

Can somebody tell me, How can we send e-Mails with ASP without using CDONTS?
Because some one told me that, it's possible to send e-Mails without using CDONTS. But i don't know how.

View Replies View Related

[HOWTO] Using CDO.Message In ASP For Sending Mails

hav been using serverobject sendmail for close to 5 years but recently giving strange errors. SO for the time being decided to use this code ...

View Replies View Related

CDONTS HTML Mails With Images

I got a little problem while sending HTML e-mails with CDONTS.

I generate my e-mail body without problems into a string variable. When I
display it to the browser via a "response.write", it's OK, including images.
Then I set this string variable to the CDONTS.Newmail object (body
property), and I send the mail. Code:

View Replies View Related

How Do I Install/find SMTP To Send Web Mails Using CDO/CDONTS In XP Pro?

I want to send e-mails from my asp pages but don't know how to achieve that. I have tried to create CDO/CDONTS server objects but without luck. I guess I don't have SMTP installed or not configured appropriately.

Can you help me here? What do I need to do (and if complicated how is it done) to get an SMTP server up an running?

View Replies View Related

CDONTS Email Not Sending

my CDONTS email isn't sending.. I think the code is set up correctly but I'm not positive. Is there a way to specify a mail server, if necessary? It seems to be going through without a hitch but the emails are never arriving, to any box I send them to. So perhaps our server needs some sort of authentication before permitting outgoing mails, I'm not really sure. Is there a way to check this?

I have our form set up on a standard html page, with a "action=process.asp" command..

here's the process.asp file..

<%
'Option Explicit
Dim objIndexMail
Set objIndexMail = Server.CreateObject("CDONTS.NewMail")
objIndexMail.From = Request.Form("email")
objIndexMail.To = "me@myemail.com"
objIndexMail.Cc = "me@myhotmail.com"

objIndexMail.Subject = "New Inquiry from" & Request.Form("parents")

Response.Write("Ready to create body")

objIndexMail.Body = "bunch of body text here"

Response.Write("body Created")

objIndexMail.Send
Response.Write("Sent")

Set objIndexMail = Nothing
Response.Write("Thank You")
%>


it gets to the thank you message every time, but nothing ever arrives in my mailboxes...

View Replies View Related

Need Help For Sending Emails By CDONTS

I am using CDONTS object to send emails to a person when he is registered with the web portal,but the problem is the mail is getting filtered as a spam or junk mail, and does not land in the Inbox,how to send this auto generated email into the inbox and not as a spam or bulk mail.

View Replies View Related

Sending Email Using CDONTS

Can someone review and give me some hints. Also when I define my mail object using, "Dim objCDOMail As CDONTS.NewMail", I receive an http error. Code:

View Replies View Related

Sending Email Using CDONTS Obj.

I'm running Win2K... and have an ASP script that uses the CDONTS object properties to send email from a web-enabled ASP form. Problem is, the page is loading fine, with no errors. However, when I check the '/queue' folder in my Inetpub directory, I see all my mail queued there. It never gets sent. There are no emails in the '/badmail' folder, or in any other folder in '/mailroot'. What gives?

I'm kinda vague on how SMTP works exactly, in Win2K. What I'm trying to do is to send email over a LAN to a client. I want to avoid installing MS Exchange Server if possible. Am just trying to have a client on the LAN send email, and then have the client's Outlook retrieve said mail. All this done offline, without ever connecting to the Net.

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

Email Sending Problem With CDONTS

Hey all, I'm having trouble getting email to be sent using CDONTS. I've done this many times before with no problem, but this one just seems to want to be a pain..

The site is just on an IP address right now, but it still has access to a mail server and all. Everything seems to go correctly, but the mail server has no logs of cdonts trying to send anything. the script isn't generating any errors though.

<%@ language="VBscript" %>
<%

'Option Explicit

Dim objIndexMail
Dim body

Set objIndexMail = Server.CreateObject("CDONTS.NewMail")
objIndexMail.From = Request.Form("email")
objIndexMail.To = "my email address"
objIndexMail.Subject = "New Inquiry from" & Request.Form("parents")
Response.Write("Ready to create body <br><br>")

body = "bunch of body text here"
objIndexMail.Body = body

Response.Write("body Created <br><br>")
Response.Write(body & "<br><br>")

objIndexMail.Send
Response.Write("<br><br>Thank You")

%>

Anyone see any problems? there are no messages waiting to be sent in the outbox, and nothing is getting delivered to the badmessages folder either..

View Replies View Related

Sending Emails With CDONTs In Russian

I'm sending Russian text in an email generated from the website which displays in the email as ??

The website is set to codepage 65001 and the charset to utf-8.

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

Sending Mail From ASP With CDONTS.NewMail Object

I use the following code to send email from an ASP page:

<%
Dim objSendMail
Set objSendMail = Server.CreateObject("CDONTS.NewMail")

objSendMail.From = "abc@abc.com"
objSendMail.To = "abc@abc.com"
objSendMail.Subject = "Form Results - Get a Quote"
objSendMail.Body = "This is the Body text of this test mail."
objSendMail.Send
Set objSendMail = Nothing
%>

Of course, the the email addresses above are real on my ASP page.

After the above code is executed, I don't receive any email.

What is the problem?

View Replies View Related

Sending CDONTS HTML Email Issue

I have a web form where a client can select which site members to send
an email to.

This form is populated from the contents of the member table, so the
form can have 0-x names listed on it depending on member expiration dates.

When the form is submitted, the code loops through the form contents and
sends an email to those members that meet the selected criteria.

All this worked perfectly when I was sending text emails, but since I
changed, it sends the message correctly, but the last person gets
everyone else as well. For example, if I have three members (mem1, mem2
and mem3) to send emails to, here is what happens

mem1 gets the correctly formatted message

mem2 gets mem1's correctly formatted message plus mem2's message - one
right after the other. Code:

View Replies View Related

CDO Signed E-mails

Is it possible to generate private key and afterwards apply the CA digitaly signed certificate within CDO code so I can send signed e-mails?

View Replies View Related

What Do I Need To Do To Receive E-mails (but Not Through My ISP)?

I was just wondering what the requirements are on my computer system if I want to be able to receive e-mails (to my own mail server and not through the mail server of my ISP). I already have a functioning SMTP-server, but I guess that only works for outgoing mails, or is there maybe a way I can send mails to this SMTP-server?

Do I need a fixed IP-address? Do I need so kind of special software like Win 2003 server or maybe Exchange Server? Do I need my own domain name? Anything else I need to bear in mind if I want to have my own incoming mail server?

View Replies View Related

Send Mails In ASP

how to send mails through ASP. I know it can be done through CDO or CDNTOS objects. But it is not working. Is there any settings i have to chage for it? I am using Win2000 prof. Server IIS.

View Replies View Related

Receive E-mails

I am looking for a way to read & download my e-mails from my pop3 account from another server by using ASP(vb)

If you know anything about this subject please feel free to let me know. I learn how send but not receive.

View Replies View Related

Creating HTML Mails

Could you be so kind and gives me a function which creates mail in ASP language. But I would like to create a mail with ENTER breaklines and I would like to have background changed, bold fonts, so I mean to use HTML code to create such mails. Is it possible in ASP?

View Replies View Related

How To Send Automatic Mails

i want to know that how can i send automatically daily newsletter to my users.

i have started a newsletter service recently and want that everyday newsletter from database shall be sent to the users.

i also want to send newsletter on particular date in future as per selection made by the users themselves.

View Replies View Related

Failure For Delivering Mails

to some mail accounts, I can't send mails to them?Whoes fault is this?

the part of code is as follows.

<%
set mail=server.CreateObject("cdonts.newmail")
mail.To=aaa@aaa.com
mail.From="system@aaa.com"
mail.Subject=today & " New Messages"
mail.Body="<html><body><a href='http://admin_main.asp'>go message
board</a></body></html>"
mail.MailFormat=0
mail.BodyFormat=0
mail.Send
set mail=nothing
%>

View Replies View Related

Send E-mails From Forms

I have a cable modem and an isp that blocks outgoing traffic on port 25.I have a form that should generate an automatic e-mail response to the page visitor when submitted.

Now I wonder if it is possible for me to have this function in my asp code if my ISP blocks port 25 or if the generated e-mail will just dissapear in cyberspace?

View Replies View Related

How Can I Send Different Mails To Different Users

how can I send two emails with different messages to different users? Do I need to have two .asp files? or I can do it just in one? If yes, how do I set the obCDOMail.Body to get the value of two different variables?

View Replies View Related

Automatic Subject Title In Mails...

I am running my information pages from access database, using ASP - This database includes an email field, i would like the subject in the email to have an automatic title.

View Replies View Related

How To Resend Mails From Queue Folder

I'm sending out the newsletters using ASP Cdonts. It is fine for few number of mails say about 20. When I started to mass mail say about 200 at a time all the mails got stuck in the queue folder (Now totally 1000 mails got stuck up). Then from my service provider I got the info that the mass mails will be stopped if they are more than 99.

View Replies View Related

Email Function For Automated E-mails

I'm trying to write a Function/Subroutine to send e-mail. I want it to create this to be used as an Include file so I can just give it the info and it will send the e-mail.

The following code works, but is now portable:

<!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D" NAME="CDO for Windows 2000 Library" -->
<!--METADATA TYPE="typelib" UUID="00000205-0000-0010-8000-00AA006D2EA4" NAME="ADODB Type Library" -->
<% @LANGUAGE="VBSCRIPT" %>
<%
Option Explicit
Response.Expires = 0
%>

.........

View Replies View Related







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