Why Are My HTML Tage Showing In EMAIL?
When I send this code (using CDONTS) I had expected just the title to appear on the email but ALL of the text - including the HTML tags are coming though.
Do I need a line setting something to HTML so it knows it's HTML? Any ideas???
CODE IN QUESTION:
Body= Body & "<HTML>"
Body = Body & "<HEAD>"
Body = Body & "<TITLE>Send Mail with HTML</TITLE>"
Body = Body & "</HEAD>"
Body = Body & "<BODY bgcolor=""lightyellow"">"
RESULTING EMAIL:
<HTML><HEAD><TITLE>Send Mail with HTML</TITLE></HEAD><BODY bgcolor="lightyellow">
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Showing An HTML File
Showing an HTML file in part of a Webform.I have a Webform with some buttons on the left side of the form. What I want when clicking one of the buttons is to show an HTML document in a part of the Webform (as if it was a Frame page).
View Replies !
View Related
Showing HTML As Text
I 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?
View Replies !
View Related
HTML Email
I'm sending email using CDO Message in HTML Formatted. There is no problem if client side is HTML Enable. But if it doesnt not, its showing all html tags in message body.
View Replies !
View Related
HTML Email Css
I've got another email prob. Does anyone know how to link an external stylesheet in an html email via asp? I've got this so far: While NOT offerCustRS.EOF Dim strBody strBody = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">" strBody = strBody & "<html>" strBody = strBody & "<head>" strBody = strBody & "<title></title>" strBody = strBody & "<meta http-equiv=Content-Type content=""text/html; charset=iso-8859-1"">" strBody = strBody & "<link rel=""stylesheet"" href=""CSS/blue.css"" type=""text/css"">" strBody = strBody & "</head>" strBody = strBody & "<body>" strBody = strBody & "<div id=""head"">Special Offers from the best online shop</div>" strBody = strBody & "<p>" strBody = strBody & "<div id=""content"">" while not offerRS.EOF strBody = strBody & "Product:" & " " & "<a href='http://localhost/New Shop/products.asp?id=" & offerRS("Product_ID") & "'>" & offerRS("Product_Name") & "</a><br>" strBody = strBody & "Price:" & " " & offerRS("Offer_Price") & "<br>" strBody = strBody & "</div>" offerRS.MoveNext() WEND strBody = strBody & "</body>" strBody = strBody & "</html>" The email doesn't have any of the formatting but I haven't a clue why. The css file has been tested on another page and it works so the css is fine. Can anyone help?
View Replies !
View Related
Html -> Asp Email
I have created a form in html that goes to an email which will supply the person with all contact info. So I need Two things to make this work: 1.) HTML page with email form and submit button (done) 2.) ASP page with code that validates all the info and mails the info to the persons email (dont have) SO, I need some type of code that will validate this html document. Any Ideas ?
View Replies !
View Related
Sending HTML Email
I have a client that wants to send HTML based email. Building and sending isn't a problem, but he wants to include a plain text link at the top of the email that will display if the user doesn't not accept HTML email. Maybe it is the product we are using to send the email, but there is no way to include non-HTML formatted text in the email. Is there a way to send non-HTML and HTML in a single email?
View Replies !
View Related
Truncated Html Email
I am creating both a text and html version of the same newsletter and sending using CDOSYS. Both of them incorporate a list of stories drawn from a database which are assigned to a variable storyloop. The text version works fine, but partway throught the html version when viewed in Outlook 2000, it goes wrong. View source shows nothing obviously wrong, except that partway through the storyloop, it just stops and then goes onto the next section on the email. Outputting storyloop to the browser gives perfect results, but if I remove all parts of the html email and just assign storyloop to the .htmlbody, I see that after exactly 1024 characters in the resulting email, I get ------ =_NextPart_000_0057_01C59E01.6E3F5F50-- Does anyone know why this would happen, and more importantly, what I can do to correct it?
View Replies !
View Related
HTML And TEXT Email Using ASP
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 Related
Appearing In HTML Email Set
I support a website. When we send HTML emails from out system, we generate a variable called "str". We set that str variable to the objMail.htmlbody property of the mail object. Frequently, random spaces appear in the email when it is received by the recipient, however those spaces do not always appear in the same place (yet frequently they do). additionally, we'll sometimes see some actual HTML code in the final email, and usually shows up as a complete tab, such as "<br>", or "< TD BGCOLOR='#FFFBF0'>".
View Replies !
View Related
Checkboxes And Dropmenus In HTML Email
I am trying to finish some ASP code for a webform of mine that takes values input into a form and upon hiting the submit button, emails the form in HTML format with all completed values in their respective boxes to the recipient specified. So far I've gotten the text box values to carry through using a line such as this: <input name=""date2.3"" type=""text"" id=""date2.3"" value="""& Request.Form("date2.3")& """ size=""2"" maxlength=""2"">" However, I cannot get checkbox values or dropmenu values to carry through to the resulting email. What do I need to do differently with Request.form to get it to send the checkbox and dropmenu items in the e-mail?
View Replies !
View Related
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
Html Email DONT Support
I dont have CDONTS support. i am using the following script. with this, even yahoo doesn't consider the email to be HTML and displays all the HTML tags and treats it as TEXT. here is the code i use! Please dont consider it abuse as i dont know how to encloase the code in TAGS! <% mes = "" IsSuccess = false sTo = Trim(Request.Form("txtTo")) sFrom = Trim(Request.Form("txtFrom")) sSubject = Trim(Request.Form("txtSubject")) sMailServer = "127.0.0.1" sBody = Trim(Request.Form("txtBody")) if Request("__action")="TestEMail" then TestEMail() end if Sub TestEMail() Set objMail = Server.CreateObject("CDO.Message") Set objConf = Server.CreateObject("CDO.Configuration") Set objFields = objConf.Fields With objFields .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = sMailServer .Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10 .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 .Update End With With objMail Set .Configuration = objConf .From = sFrom .To = sTo .Subject = sSubject .TextBody = sBody End With Err.Clear on error resume next objMail.Send if len(Err.Description) = 0 then mes = " Message sent to " + sTo mes = mes + " EMAIL SENT SUCCESSFULLY!" IsSuccess = true else mes = " " + Err.Description + " TESTS FAILED!" end if Set objFields = Nothing Set objConf = Nothing Set objMail = Nothing End sub Sub Alert(html) if IsSuccess then Response.Write "<div class='testRelults' id='testSuccessful'><span class='testResult'>Success:</span>" & html & "</div>" else Response.Write "<div class='testRelults' id='testFailed'><span class='testResult'>Fail:</span>" & html & "</div>" end if End Sub %>
View Replies !
View Related
Form Submit From An HTML Email
I'm working on an email message sent in HTML format. As the email reach the adressee the HTML is correctly visualizaed (I made sever tests with Outlook 2003). The fact is that the code contains a <formthat should be submitted to an external ASP page. The <formtag naturally cointains a target=_blank and a proper action. Anyway it semms to be impossible to make the form work. The submit does not work; it is evidently an Outlook permission matter... I verified that sever other things such as <iframes and Javascript code do not work at all when an HTML is visualized in Outlook. Is there a way, in your knowledge to go round the problem?
View Replies !
View Related
Sending Dynamic Html Email
I am currently building an emailing system into our asp management system. From this we will be able to setup mail templates (html stored in mssql database) and select who we want to send them to.The html in the database is only the middle part of the html file being sent. All the emails are based on the same design template using a single html file to which I pass a variable saying which body to get from the database <%=writeBody%>. So far this is all working fine and the emails are sending using cdo. ..createMHTMLBody "http://localhost/helpCentric/responseSendForm.asp?"&qString What i am trying to do now is personalise the emails and on the responseSendForm.asp I connect to the database and create variables such as fName, lName etc.I need to be able to write these variables in the html in the database which will then display in the body using the <%=writeBody%>.As you may have guess this is not working and I dont know enough aboutthe .createMHTMLBody to work out what to do.
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
Generating A Html Email Containing Graphics
have a question about sending HTML based email containing graphics. I am using the cdosys component to send an email from a ASP script. If the generated HTML message contains graphics, do I need to include those files as mail attachments to the email? Or as a easier solution is it possible to use a full URL to a image as a image source, if so how?
View Replies !
View Related
Send An Asp Page As Html Email
This is my first post hope it makes sense. I have learnt how to send emails from forms passing variable etc and it works, but I am lazy so here it goes: I am writing a set of intranet based asp reports for which the underlying asp code can get quite complicated (tables nested in tables, all sorts of calulations and parameters etc). I would like users to be able to send that report (neatly formated in his browser) by pressing a form button. (by the way, we use Outlook) 1. either as an .html attachement (which would of been saved automatically either locally or on the server) 2. or as an html email (as you would do when doing File > Send > Page by Email in IE 6.0) Code:
View Replies !
View Related
Sending Launching Email With HTML Attachment
Can anyone get me started or point me to a resource for some help? I have an ASP page that displays various boxes, tables, and information. I want to be able to click an "Email" button and have the asp page save the page as an attachment (html?) and then launch Outlook and automatically attach the page to it and enter the email address of the person I want to send it to. I can't just send a link because the page is generated on an Intranet and I need to send it to people outside the network. So, I need to save a print screen of the page and then have Outlook grab that and the recipient's email address and put those into Outlook so the sender can review and send out.
View Replies !
View Related
How? Send Same Email As HTML *or* Plain Text
I'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.
View Replies !
View Related
Send Html Email With Form Included
I been trying to send a Html email with a form included. I tryed by including <form> and <input> as usual in Html code. What happen is that the email is send and the form are seen but the input button doesnt work right, in hotmail , msn, I mean its not active Any idea?
View Replies !
View Related
Formatting HTML Email From Form Submission?
All of my previous web page work has been done with .html and Cold Fusion. My new host does not support cold fusion but does have ASP 3.0 and ASP.Net 1.1. They've told me that I have to use CDO.Sys for sending email. I've spent the past 3 days doing all the research I can find but most of the examples assume a basic knowledge of ASP (which I am severly lacking in). I have a simple .html form (4 fields) that currently DOES get sent through email (although it is sent as plain text). I would like to be able to send an email that is formatted into html (allowing me to use tables, images, etc. Here is what I have so far (I've commented out the "text" based part and am trying to send as an html email now). <% @ Language="VBscript" %> <% Option Explicit %> .....
View Replies !
View Related
Send Html With Embedded Image Email In Asp
I want to send email in html format with containing more images added dynamically using cdo.message method. can you pls explain any body one how to do this. i alredy done this, but it send only one picture with that email. here i posted my code also. pls any one tell me what is the problem in this code. theSchema="http://schemas.microsoft.com/cdo/configuration/" Set cdoConfig = server.CreateObject("CDO.Configuration") cdoConfig.Fields.Item(theSchema & "sendusing")= 2 cdoConfig.Fields.Item(theSchema & "smtpserver")= "smtp server" cdoConfig.Fields.Update Set mail = Server.CreateObject("CDO.Message") html = "<html>" html = html & "<head>" html = html & "<meta http-equiv=""Content-Type""" html = html & "content=""text/html; charset=iso-8859-1"">" html = html & "</head>" html = html & "<body>" html = html & "<p><font face=""Arial"" ><b>Name: " & name & "</b></font></p>" html = html & "<p><font face=""Arial""><b>Company Name: " & cname & "</b></font></p>" html = html & "<p><font face=""Arial""><b>Country: " & ctry & "</b></font></p>" html = html & "<p><font face=""Arial""><b>E-mail: " & email & "</b></font></p>" html = html & "<p><font face=""Arial""><b>Details: " & remarks & "</b></font></p>" html = html & "<p> </p>" for i = 0 to ubound(iid) html = html & "<img border=""0"" src=""" & "http://www.abcd.com/img/" & fnme(i) & """></td>" next html = html & "</body>" html = html & "</html>" mail.From= emailFrom mail.Configuration=cdoConfig mail.To = emailTo mail.Subject = emailSubject mail.HTMLBody = html mail.Send set mail = nothing set cdoConfig = nothing
View Replies !
View Related
HTML Email Can't Be Read As Plain Text??
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.
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 Question -- Generating Email Messages In HTML Format
CDO is perhaps the most obscure art in web programming, but I hope someone would understand my issue. I have an ASP web application that needs to send email messages in HTML format only -- there is no plain text version. The messages are summaries of answers that people have input into an online survey, and need to have a tabular form. The following somewhat plausible code does not work: dim OMsg Set OMsg = Server.CreateObject("CDO.Message") OMsg.Fields("urn:schemas:mailheader:return-path") = BounceEmail OMsg.Fields("urn:schemas:mailheader:content-type") = "text/html" OMsg.Fields.Update The return path header is set as desired, but the content type header stubbornly defaults to "text/plain". What is the secret to setting that header? I have seen lots of code examples on the MSDN site for setting the content-type of body parts, but it seems needlessly complicated for my situation and doesn't work on my system anyhow (unknown ProgID error). So I was hoping to just set the message-level header to "text/html". (If I edit one of the messages from my script in notepad, changing the header to text/html by hand, it then is rendered correctly in email clients.)
View Replies !
View Related
CDONT And HTML Email Line Wrap Problem
I send HTML formatted emails with links and images in them generated by my asp driven website. Occasionally the image will not appear and the link will not work. By looking at the email at the receive end, (right click/properties/details/message source, this is what I sent: .....
View Replies !
View Related
Multipart Mime Type For HTML/Text Email
How 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 Related
Making A Query Show Up Properly In A HTML String Email
I am attempting to send an HTML email which a hyperlink that will change based on the user's session ID. I need the hyperlink to display as: http://www.synergeticsusa.net/admin/shop_cart/detail.asp?id= WHERE the id = Session("MM_UserID") However I cannot seem to code this into the html string in the correct syntax, to where id=1 or id=2, etc. Does anyone know the anwser to this problem?The basic code I am using can be found below. html = html & "<a href=""http://www.synergeticsusa.net/admin/shop_cart/detail.asp?id="">" html = html & Session("MM_UserID") html = html & "<IMG SRC=""myImage2.gif""></A><BR><BR>" html = html & "</br>"
View Replies !
View Related
Convert Html Page Or Database Shopping Basket To An Email
OK - I have a shopping basket with data in a database. Once the person has successfully completed their order I want to be able to send them an email with the products ordered roughly in the following format: Product Price Quantity prod1 £6.99 1 prod2 £5.99 2 Postage £0.50 Total whatever..I'm lazy Formatting would be a little different (just spacing out the prod table a little more. Any ideas or links to scripts that do this?. I've been looking for a while now but have had no luck in finding a solution. I just want to send a text email (and not html). The other thing is that on the last page but one, this shopping basket is displayed. Is there anyway I could capture the html data from that page, store it in a session variable and then generate the email after the order has been completed (so sort of like sending a mirror of that page)? In that case having a HTML formatted email would be ok.
View Replies !
View Related
Showing XML
Can anybody help me with displaying two xml content in a asp page. i want it to be shown with collape and expand feature (with those + and - feature when an xml file is opened in explorer). i tried having html frames but i am not able to add menu in the same html page. right now i have menu and two text boxes to display this xml content. i want to use something else instead of text boxes to display xml in indented form. i thought i could use browser component in asp page but it doesnt work.
View Replies !
View Related
Video Showing
I have an active-x control on my asp that loads a wmv video file.But i have a problem viewing the video until i have download the whole video on the active-x control. Is there a way to see a portion of the video without complete download?
View Replies !
View Related
Showing Tif Files
I have a strange problem on WindowsXP proffessional with IE6 ,when i try to display a tiff file ,it is not showing ,small red x is comming up. I tried by dowloading latest IE from microsoft but no use. This is working fine on win2k IE6.Here is the html file I am using to display the tif file. <html> <head> <img SRC="http://192.168.0.30/test/test.tif" BORDER="1"> </head> </html>
View Replies !
View Related
Showing Reminders
I make a intranet Project For a Company.In that Project i make some reminders that can send each other users.When the Reminder come it should be alert like yahoo or Msn means Reminder should be show right side of the Taskbar and it's come like fade.
View Replies !
View Related
New Pages Not Showing Up
i have just uploaded the new files to a website i have rebuilt. I have refreshed IIS and restarted the website but the new files are not showing through on directories that existed before eg subscribe etc. The new directories that didnt exist before work fine but would the internet connection in our office be caching previous pages that are no longer there and trying to access them?
View Replies !
View Related
Showing Records For Each ID
I'm really trying to make this work. I have a dbtabel with following fields. ID PlayerID Date Point I want to show each players point like this "1,2,5,6,4,8,9", but i want the script to first add up which player who has the most points, and then list them in order of wich player who has the most points... 1,3,5,6,4,5,9 2,1,1,3,2,3,6 2,5,6,4,1,1,0 Each row is each PlayerID's row. Is this possible.
View Replies !
View Related
Updates Not Showing
my problem is The updates on my asp files are not reflected in the browser. Till recently everything was working fine. Today I installed new updates on my windows 2000. After all the cached asp contents are appearing and the updates are not getting refreshed. I dont know if this is becoz of the updates on my OS. I had a file addfield.asp. It was working fine, I made some changes and they worked. But after that my updates are not reflected. If I rename the file to addfield1.asp. I am getting the desired results. Again if I change the contents of this file, they are not appearing.
View Replies !
View Related
Images Not Showing Up
why some of my graphics wouldn't be showing up? I'm using css and everything looks fine in dreamweaver until I upload it then half my graphics are not visible on the page but they are there because I can still click on them, I just cant see them. Any reasons?
View Replies !
View Related
Records Not Showing
I inherited a database driven site, which displays events pulled directly from an access 2000 database. when these events are edited in the admin system, or when a new record is added (again via the admin system), the record will no longer show up as being editable on the choose_event.asp page. I checked the database, and the changes are being made.
View Replies !
View Related
Showing Companyname In URL
ok so I wrote a template based CMS.... A small company requires a website, they come to my site www.mutedesigns.co.uk/sbs and choose a template, pay, register, edit ther details and pages and then view their site simple and it all works yay! Code:
View Replies !
View Related
Showing Shared Dir
I'm working on a Intranet, and found this code to list the contents of a directory. However, the only directory I've been able to show is the dir where the script itself is (Inetpub/Scripts). How can I redirect to a directory somewhere else on the network ? Code:
View Replies !
View Related
Showing Birthdays In ASP
I have a table called 'players2005' with fields of 'player' and 'pdob' The 'pbod' is a DATE realted to the players date of birth. Using ASP how can I call the access database to show members that date of birth is today. I have the rest of the script but just nedd a SQL statement Code:
View Replies !
View Related
Code Showing
I've been working on a page at work, which has been fine, yet when ive come to try it at home, i load the page (the page loads fine) but i see all the code etc that was hidden before. example what i see at the top of the page: <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%<% OPTION EXPLICIT %<% 'dim oCdoMsg, oCdoConfg, st but i see tons more than that, basically all the code to the next %>
View Replies !
View Related
|