Creating HTML EMail With CDONTS

I can create an email with ASP's using CDONTS and this works well. I'd like to format the email as HTML. Can I do this with ASP's and CDONTS?

View Replies


ADVERTISEMENT

Creating An HTML Email Body

I have a rather large form in HTML that needs to be sent as an email. The body of the email is approx. 400 lines (that's in HTML). Is it possible to somehow transfer the entire form to the asp mail script so that it automatically sets the body of the email to contain this form (with input)? Or do I have to write the body by hand in my asp script - like this:

line 001 Body = "<table><tr><td>some text & var1 & </td></tr> "
... ..

line 200 Body = Body & "</table>"

View Replies View Related

Creating And Sending Html Email

i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50). i know how to create a plain text email by creating a text file, with content following certain format, and saving that file into the correct '..mailrootpickup' folder, and it is working fine.

what i would like to know is how to create and send an email in html format from my server script. i will appreciate anyone who can tell me where to find instructions on
how to do this.

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

Embed Image Within HTML Email (CDO Or CDONTS)

Usually, when I send HTML emails, I just SRC the image to my web server, but now I would like to consider embedding images for those instances when potential customers may view the email when offline.

Can this be done with CDO or is another component required?

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

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

Self Creating HTML

I want to create an ASP page that will load information from an access database,and after loading save the file as an HTML file.I need him to this alone,without user guideness.I need an ASP page that will be able to create as much HTML pages as I want.

View Replies View Related

Creating HTML With ASP

I want to create static HTML pages from my Database after updating my website using ASP and a CMS. The idea behind this is that when I submit my new information using my CMS the ASP will put it into a DB and then somehow convert this info into a single html page.

The reason behind this is so that the ASP is only run once and when I decide, and from then on the all requests to my page outputs an HTML file, hence a faster service.

Is th only way of doing this with the WriteLine method of the FSO object? Surely there must be an easier way. The trouble with this is that to do a whole page takes a lot of time consuming formatting. Ok so know this only has to be done once but when you have 1000+ lines of code its quite a hassle. Code:

View Replies View Related

Email Through CDONTS Using ISP Email Server

I am using CDONTS component to send email in ASP.

The code is some thing like this:

Dim Mail
Set Mail = Server.CreateObject("CDONTS.Newmail")
mail.From = "abc@hotmail.com"
mail.to = "xyz@hotmail.com"
mail.subject = "Test Email Subject"
mail.body = "This is Email body message"
mail.send

Now the question is that this code will use the Default Virtual SMTP Server in IIS, but I want to use my ISP's SMTP server. please tell me how to do this. I have used my ISP's email server in Outlook express and it is working fine. Please do not suggest to use "CDO" or "CDOSYS" to use for sending emails because I must have to use "CDONTS".

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

Creating PDF From HTML (PDF2HTML)

I need some tool to transform pages HTML to pdf, exists some tool of these some component of ASP for this?

I need this for free, i mean, some free tool, or if not some form to create a pdf from HTML.

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

HTML Message Via CDONTS

I am trying to use CDONT to send a HTML message, but on the receiving machine it just shows the code in the message. 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

Dynamically Creating Html Files On Server

I need to implement the following functionality in asp. I have got an asp page which renders some html onto the browser.Now instead of rendering the html to the browser i should save that as an html file in server itself.

View Replies View Related

Creating Email

is it possible to insert the desired information into the default mail from a website?
If the user clicks on a link then outlook express will popup and the address bar will be populated with a certain address and the subject is filled out also.

View Replies View Related

Cdonts, Not Getting The Email

what does it mean when I don't get an error, but I also don't recieve the email?

View Replies View Related

Email By CDONTS

I'm doing a website for a Japanese client and he needs to send out batch emails to his subscribers every month. So I used CDONTS to create and send the emails.

The problem is when I send out the emails in my company's internal server,everything turns out fine but when I use the external mail server, the Japanese email suject turns garbled. I've been trying to get this done for ages and my deadline is nearing now.

View Replies View Related

Email Through CDONTS

I am using CDONTS component to send email in ASP. The code is some thing like this:

Dim Mail
Set Mail = Server.CreateObject("CDONTS.Newmail")
mail.From = "abc@hotmail.com"
mail.to = "xyz@hotmail.com"
mail.subject = "Test Email Subject"
mail.body = "This is Email body message"
mail.send

Now the question is that this code will use the Default Virtual SMTP Server in IIS, but I want to use my ISP's SMTP server. please tell me how to do this. I have used my ISP's email server in Outlook express and it is working fine. Please do not suggest to use "CDO" or "CDOSYS" to use for sending emails because I must have to use "CDONTS".

View Replies View Related

CDONTS Email To AOL

I'm having an issue sending email to AOL accounts using CDONTS on my server. The emails always fail. Has anyone else had this problem? Email is always delivered to other accounts problem free, I just dont know why AOL is rejecting the mail.

View Replies View Related

CDONTS Email

I am trying have a feed back page and created an ASP page to send an email. But I get the following error:

Error Type: Server object, ASP 0177 (0x800401F3)
Invalid class string

The line in the page is as follows:

Set Mailer = Server.CreateObject("CDONTS.Mailer") .

View Replies View Related

Email Using CDONTS

I am trying to send an email using CDONTS, and I am having troubles with newlines. There was a past thread a while back that said to use vbNewLine to insert a break in the message, but I still can't get it to work.

I used vbNewLine, vbCrLf, chr(10) & chr(13) and my text still continues to flow right along. I want to keep it plain text rather than HTML.

View Replies View Related

Creating Email Using Sendmail

I have found out my webhost doesn't support CDO or CDONTS(Sun ONE Active
Server Pages with SpikePack unavailable).
So, my question, is it possible to write an ASP page to call their sendmail
to sent email? Or will I have to do some quick learning on cgi?

View Replies View Related

CDO + CDONTS Email Routine?

Just curious... Some webapps that I develop could be deployed on older NT
systems OR Win2K3...

Is there a simple test for CDO/CDONTs that I can use in code so I could
implement both routines and use the one that's existing on the server?

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

Email/CDONTS Question

I am rather new to cdonts and using email. I am planing an email site, however I am not sure how the email is stored on the server nor do i know how to read it from the server. I would guess that it is stored in a database, if so how would it be populated?

View Replies View Related

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

Send Email With Cdonts

I've tried to send a mail using CDONTS.DLL but the mail goes in to
C:InetpubmailrootQueue"

Here is my code

Dim Mailer
Set Mailer = Server.CreateObject("CDONTS.NewMail")
Mailer.To = "testemail@hotmail.com"
Mailer.From = "expediteur@email.com"
Mailer.Subject = "Titre du message"
Mailer.Body = "Le texte qui sera envoyé"
Mailer.Importance = 0
Mailer.BodyFormat = 0
Mailer.MailFormat = 0
if not Mailer.Send then
response.write ("mail envoye")
else
response.write ("Mail non envoyé. Erreur : ") & Err.Description
end if
Set Mailer = Nothing


I work with win xp pro, do can I use CDONTS or CDO?
I work on local (the webserver is located:C:Inetpubwwwroot)

View Replies View Related

Email Options With CDONTS 1.2

I am trying to help out my friend by creating a invoicing page in ASP for his business, basically consisting of 3 pages :
(no sensitive info will be asked for.. )

1.info submission page -cust enters his info
2.info summary -cust info summarised plus quote calculated
3.invoice page -quote emailed for invoicing.

At present I have made the initial set up and it works fine. However, I am using CDONTS 1.2 to email the gathered cookies with the following code:

View Replies View Related

Formatted Email Using CDONTS

I am using the following set of commands to send a formatted email:

"AllTopQuestions" actually pulls out formatted text (including all html tags and inverted commas). - - If this text is ascii and not formatted, the mail goes out fine. But, once the text in the database gets formatted, the outgoing mail contains no body at all. Code:

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







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