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
ADVERTISEMENT
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
I use Server.CreateObject("MSXML2.ServerXMLHTTP") etc to grab the content of
another asp page.
I want the other asp page to look like an xml document. So I set the header
to text/xml with the line
response.contenttype="text/xml"
I set this on the calling page and the page that is called.
When I view the headers with http://pgl.yoyo.org/http/server-headers.php it
is still set to text/HTML. Also the browser displays the page as if it were
HTML, not XML
View Replies
View Related
i want to set mime type of an image which is available for download.i gave the link of following page from a wml page and try to download a jpeg file on mobile.
test.asp
<%
Response.contenttype="image/vnd.nok-wallpaper"
response.redirect( "http://localhost/test/mustafa.jpg" )
%>
but instead of redircting to jpg file andsetting its mime type , my fone download test.asp and says file formate unknown.
View Replies
View Related
I have some simple asp code to send a response to the client with aparticular ContentType defined, code shown below:
Response.Clear
Response.ContentType = "application/x-custom"
Response.Write "<?xml version='1.0' encoding='UTF-8'?><testing/>"
Response.Flush
I have a client side ActiveX control implementing IPersistMoniker that isregistered to handle this MIME type. This seems to work fine on some machines and not others. On some of my machines, the control is not instantiated at all. Instead, a blank page is shown in the browser. If I change the ContentType above to something like "text/xml", the response is shown correctly in the browser. This leads me to believe there is a problem with the client mime handler, but it seems to work on most machines.
View Replies
View Related
I've got an asp page with a CDONTS object sending HTML mails with proper attachments on them... thing is, some mail recipients get the full attach ok, and some don't (but still get the HTML ok)! (all recipients added to the same object... no more than 10 recipients)
i believe it's got something to do with MIME types and stuff, but i've got no ideia on how to solve this problem...
View Replies
View Related
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
I am facing one problem while uploading images in ASP. I am using ASPUpload to upload the file. I can upload the files also. for that I am giving the Encription type as multipart/form-data. THat time I am not able to get the other informations in that form like some hidden fields inthat form.
Is it possible to get the information when we were uploading the images. I am using post method for uploading.
View Replies
View Related
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
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
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.
View Replies
View Related
I am trying to send out an email newsletter using both HTML and plain text?
Any good resources for doing this? I can't seem to get it to display the
TextBody when Outlook is set to display emails using Plain Text.
I am using:
Dim objMail
Set objMail = Server.CreateObject("CDO.Message")
objMail.To = varEmail
objMail.From = "webmaster@imysite.com ( Webmaster)"
objMail.Subject = "My Subject"
objMail.BodyPart.ContentMediaType = "multipart/alternative"
objMail.TextBody = "No HTML here. I want this text to display if HTML is
turned off."
objMail.CreateMHTMLBody "http://www.mysite.com/mailer.html"
objMail.Send
Set objMail = Nothing
When I receive the email in outlook with HTML turned off, it comes up a mess. I was hoping the TextBody would show. Also, the images I am using have full paths (http://www.mysite.com/image.jpg) but they are still showing up as attachments with odd names like ATT21435.jpg.
View Replies
View Related
can anyone post or direct me to a code snippet for sending a plaintext/html mutlipart email using CDOSYS? I can do basic code, but this is way beyond me. If a user enters html into a form, is there a way for code to strip that out and leave only plaintext behind?
The idea is that a user would fill in one html field, the form would email it in multipart, with one part using the html the user entered and the plaintext part using the same info but with the html code stripped out.
View Replies
View Related
I'm trying to input image file using this synax.
<input type=file name="tx_file" accept="image/*"
class=boxText>
But when open file dialouge appears, it shows all the file and user can select any file and i.e. i dont want.
View Replies
View Related
I have a table with four fields, ID (auto increment), question (varchar(200)), answer (Text), and shop (tinyint(3). When I connect to the database in an ASP page and write this code
Response.Write rs("question") & "<br />" & rs("answer")
I get an error that reads "Type Mismatch"
but if I change the type of the answer field to type varchar I don't get the error but am limited in the length of the field's contents. I just also noticed that if I keep the type at TEXT and change the collation to ascii_general_ci I don't get the mismatch error but all the ' characters turn into ? characters? Oh woe is me.
View Replies
View Related
I have 10 text boxes... first 5 text boxes e visible , rest of the 5 are hidden... once i clicked the button , the hidden boxes should be visble.. can anyone help me hpw to write script?
View Replies
View Related
I'm runnign Win Server 2003 and using the CDOSYS method of sending an email using ASP. Is it possible to change the content type of the email to plain text?...here is my code:
'Email code'
'Define the variables first'
Dim varName, varEmail
varName = "Cinema-WAP"
varEmail = "cinema@wap.com"
'THE MAIL OBJECT'
Dim ObjMail
Set ObjMail = Server.CreateObject("CDO.Message")
objMail.From = varName & " <" & varEmail & ">"
objMail.To = finalEmail
objMail.Subject = "Hi " & bookerName & ", your Cinema-WAP booking REF: " & finalRef
objMail.HTMLBody = "<ul>" &_
"<li>Film:</li> <b>" & finalMovie & "</b>" &_
"<li>Screen name:</li> <b>" & finalScreen & "</b>" &_
"<li>Number of seats booked:</li> <b>" & seatID & "</b>" &_
"<li>Date:</li> <b>" & finalShowing & "</b>" &_
"<li>Name:</li> <b>" & bookerName & "</b>" &_
"<li>Mobile phone:</li> <b>" & bookerTel & "</b>" &_
"<li>Email:</li> <b>" & finalEmail & "</b>" &_
"<li>Cost:</li> <b>£" & finalPrice & "0</b>" &_
"</ul><br>" &_
"Enjoy the film!</font>"
objMail.Send
Set objMail = Nothing
View Replies
View Related
I've got a SQL server database, and am using ASP to create a simple recordset.
Everything is fine, except that one column of the database is of 'text' data type. I can't seem to be able to pull anything from this field in my ASP script. All names and variables are correct, and there is data in the text field, it just comes out blank when I pull this field into my recordset.
View Replies
View Related
What I want to do, is to be able to send only one email with tow header text/plain and text/html with two different messages
I was able to do it only to send two email with different content-type and messages, but I would like it to send only one email with two content-type headers and two messages ...
View Replies
View Related
I 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 Related
How can i make a text box not reconize a html tags.
View Replies
View Related
i 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 Related
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 Replies
View Related
I 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
View Replies
View Related
Is 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 Related
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
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 Related
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
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
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
i 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.
View Replies
View Related
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?
View Replies
View Related
Is there a way for me to send TEXT-only (i.e. no HTML) email message via
CDOSYS in ASP 3.0?
View Replies
View Related