HTML And Plain Text
Is it possible with CDOSYS to send HTML emails with a plain text alternative? If not, I'm going to have to purchase 3rd party mail component (e.g. JMail) which I'm not really keen to do.
View RepliesIs it possible with CDOSYS to send HTML emails with a plain text alternative? If not, I'm going to have to purchase 3rd party mail component (e.g. JMail) which I'm not really keen to do.
View RepliesI'm looking for a simple way to do the following:
We have a database that serves-up content to a website. Some of those items
are events, some are news articles. They're stored in the DB as formatted
HTML so ASP just drops them right into a page shell.
Now, we want to send out a newsletter email containing some of those items.
No problem sending as HTML. However, some of the members want just plain
text. Is there some magic method in CDO that can automatically convert HTML
to plain text? Or, is there some existing VBScript code out there that can
do this?
BTW, the environment is IIS 5.x (Windows 2000), Classic ASP, and CDO.
I'm using the ASPEmail component to send HTML email newsletters:
Mail.Host = "mail.myserver.co.uk"
Mail.From = strFrom
Mail.FromName = strFromName
Mail.AddAddress strTo, strName_In
Mail.Subject = strSubject
Mail.Body = strMessage
Mail.AltBody = "PLAIN TEXT VERSION"
Mail.isHTML = True
Mail.SendToQueue
The emails are coming through fine, though in Outlook the option to 'View as Plain Text' is greyed-out. This should let the user see the plain text version as defined in the code above, but it is inactive.
Is it possible to send email both as plain text and html in the same email
using asp?,,,if so...how do you do it and what do you need to set up to do
it.
I have a simple ASP page (named iisTest.asp) with these contents (I've embedded spaces in the tags for this post):
< % @ Language = "VBScript" % >
< html >
< body >
Hello
< %=World!% >
< /body >
< /html >
When I load the page into IE 6.0 it only displays "Hello". If I View Source from the browser I get all of the above, which means it's not being processed by asp.dll before getting sent to the browser (otherwise I shouldn't be seeing the ASP lines).
I asked one of my co-workers to try it and it displays "Hello World!" for him. This leads us to believe the problem may lie with IIS on my machine. (I'm using IIS 5.1.) I checked out my IIS and couldn't find anything that would cause this problem.
how i have multiple line and link in my plain text cdosys email? below is my coding in html, how do i put it in plain text cdosys?Code:
bodytext = bodytext & "<p>paragraph1</p><p><a href='http://www.google.com'>paragraph2</a><p>"
The site, which is almost finished, is at
http://site234.webhost4life.com/crgmdal7/
If you click most of the links in the gold nav bar, they will take you to various places within the site. But if you select the one called "Loads", it takes you to http://www.crgm06.com/aval.txt, which I have opened into a new window. As you can see, it's a plain text file, and it is on a different domain, which I have no control over. The data in there changes all the time.
Is there a way I can import this into one of the pages I have control over, and parse it out and display it the way I want? I've never worked with importing plain text that's generated on the fly before.
I'm trying to include a plain html file in my asp page, but don't know how to include since SSI is deactivated(?)
View Replies View RelatedI have text that a user enters via a form.This text is saved to a database named SText. The actual text is under the record "text". Now, I want to write the code to see if they enter in a link like http://www.blabla.com it will convert it to a hyper link to that very address.
View Replies View RelatedHow can i make a text box not reconize a html tags.
View Replies View Relatedi want to have a complete text-to-html conversion within a string. but "<" and ">" shouldn't be replaced. so the htmlreplace function would do too much for me and the search function only offered me single replacements. Code:
View Replies View RelatedI have a blog online and I'm wanting to make an ASP page on my computer to just input the title of the daily update and the "entry" I'm making. So I'm developing a form page so that when I submit the information from it, it goes into a page that shows the HTML so all I have to do is copy and paste.
Question is when for instance I'm typing in my "entry for the day" and I have a break I need it to automatically put in a <p> or <br> for me
Need help with sending HTML and Text email from ASP page. I want to specify both and depending on the receivers email reader the apropriate one should show. Any help or pointing to a source for MULTIPART MIME type is going to be greatly apreciated.
View Replies View RelatedIs it possible, using CDONTS, to send out both a text and HTML version of an e-mail (in the same e-mail) so that people who have HTML turned off on their client will see the text version?
View Replies View RelatedI am sending out an HTML email using CDOSYS and want to include some HTML code within the text of the email. So, it's something like:
Hi
Your link is <a href="www.domain.com/subfold">Link</a>
But it includes the code within the HTML. How do I just show it as it's written?
I have an html page, how would I be able to just get the words in it? I mean I can probably program to get it but is there any existing tool that we can use and just fetch the word content of a html page?
View Replies View Relatedi have a field which contains html code, which is then rendered as a layout for several templates.the user can change the template if they so wish. the layout html is currently stored as a varchar 8000 - but 8000 characters is not enough for detailed layouts.
i dont know where to begin on this problem, does anybody have any useful links. i would search in more detail but i dont know the procedure is called for what i am doing
what i need to do, is have the asp refer to a html/text file and render the html directly from that file? Is this possible? or is there any other such ways to do the same thing.
I need to populate a field with html formated text. I'm using a simple form field to do so.
When I use a textarea to return the record, it comes out formatted, but when I use a Response.Write command, it comes out as plain text. Anyone can tell me how to make the response.write publish formated text?
Is there a way for me to send TEXT-only (i.e. no HTML) email message via
CDOSYS in ASP 3.0?
I have a requirement to display Html text to Image (any format).
Let say i have text as "TEST", this value i need to convert to Image and display. Please let me know if there is any tool or code sample to resolve my purpose.
In HTML , I need textarea box with 4 rows & 5 cols . But if I enter the 4 th row, it shouldnt allow 5 th row. Only 4 rows should be accepted, can anyone tell me hw to creat text box?
View Replies View RelatedIs it possible to have, first n number of charectors in a text area in one
colour and the remaining in a different colour? If so how can it be done?
How do I export an HTML table to a text file? tab delimited, comma delimited... just another note, I create the table using ASP.
View Replies View RelatedHow to send the HTML and Text email at the same time? CDONTS only send one type of email at one time and we should know before hand what type of email the client can receive. In my case i want to send both and depending on clients email reader the right one should show up. I have used ASP email component also but for this component to work properly we should have relaying enabled on our SMTP server. Due to the threats of SPAM i dont want to do this. I am not any demanding here but simply trying to find the better way.
View Replies View RelatedI have built dynamic HTMLTable. Now I want to attach it directly to the Email Body - it is already built, so why not to use a ready table. However, I cannot find the way of getting plain HTML text out of dynamically built control. I tried to put my table between div and read div.innerHTML then - HTTP exception has been thrown.
View Replies View RelatedI have that form that send email to subscribers. Even if the specified option is set to "TEXT" I still see the HTML coding in the message... Tho when I look the source of the message I see "X-Mailer: JMail 4.5 by Dimac
Content-type: text/plain; charset=iso-8859-1: and all the <br> code are that way : <br=3E
my jmail code:
im wondering if there is a method/command which can be used so that when an asp page is called, it can 'explode' content from a text file (.txt) onto a web page, thus enabling a n00b to alter the text within the file, rather than the web page itself?
Further more, if I wanted to incorporate the text which is exploded into a CSS to give it some style flava, how would I do this? Is it possible?
I have a table having 3 columns. There is a checkbox for each line. I
need to get those lines whose checkboxes are checked, and show those
lines to another webpage. Is there any way to do that? My concern is
that all information in the table are in <tb></tb> pairs without any
name tag. Any idea?
I have this problem in controlling a the text in a Text Area. How can I do
that for example the field size is 200, when it reaches 50 it automatically
goes to the next line. Bcoz im having problem when viewing it in my report,
it continuesly views in a strieght line and im having problem in printing.
I'm doing a content management system, whereby the user can enter the HTML code for a currency symbol, eg £ for £.y . when I bring this data backup, say they want to edit the settings, then my ASP/HTML page is rendering the HTML code, eg £, rather than showing the original value, eg £.
If for example I put a space between the '&' and the 'pound;', eg & pound; then this will cause me problems because the user will think that they have to a put a space in or they file it with the space, which means the HTML code won't work any more. Is there a way round this?
When using ASP's FileSystemObject to create text files, I am unable to get user submitted text (in Hebrew) to save as anything other than "?????". The text file is being saved in Unicode and setting the CodePage in ASP proved unsuccessful. Strangely, hard coded Hebrew text in an ASP variable does add to the text file correctly.
Any ideas of why this happens and how to get it to work correctly?
i need to include the html inside another html, though it might appear simple, the catch is this, my one html is in one server and my another html is in another server.I cannot read the html and stream it as it has images and their path gets changed when i do that.
More over i donot have any control over the html which i am going to include all i have is a url http:abcxx.htm whose content i want to show in another asp page. The technology is ASP (vbscript and javascript).
I have a text area which I want to limit the number of words or number of text entered into it. Is this possible?
<textarea name="textarea" cols="35" rows="5"></textarea>
In the text area above, can I say limit the person filling in the text area to say 100 characters?