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
ADVERTISEMENT
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
View Related
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
I have a e-mail function in serverside VB, how would i put html code in the body variable so when email is recieved it looks like html page in the body. right now it just shows up as text in the body of message,
<html><head></head><body><table><tr><td>one</td><td>two</td><td>three</td>
<td>four</td></tr></table></body></html>
There must be a way because i get emails with html ?
View Replies
View Related
I have been using CDO Mail but the message body is plain text. Is there a way that I may send an HTML body so that I can format some tables?
View Replies
View Related
Is there a way i can call a javascript function from within the body of some html? Code:
View Replies
View Related
I've created a page for our Call Center that allows them to view a list of resources that can be found on our online catalog. It's a recordset that has a checkbox associated with each title. In addition, there's several fields that they're asked to populate: "From," "To," etc so they can click the links they want to send, attach a customized message and then send it off as an email.
The problem is capturing all of the titles they've checked and publishing that list in an email. Here's the code I'm using to retrieve the results:
For i = 1 to Request.Form("check").count
set RSLink = conn.execute("select * from Master where ISBN = '" & Request.Form("check").item(i) & "'")
response.write x
Next
No problem! But how do I get that list of items that have been "checked" into the body of my email?
View Replies
View Related
cdosys body text is not being sent by email. Please see if you can spot the problem. Everything below emailHeader & emailFooter is not being sent by email.
see code below:
<!--- BEGIN CDOSYS CODE --->
<%
dim strBody
Set MailObj=CreateObject("CDO.Message")
MailObj.Subject="Your Online order from store-website"
MailObj.From= "store@store.com"
MailObj.To= Request.Form.Item("cEmail")
MailObj.Bcc="store@store.com"
MailObj.TextBody = strBody
emailHeader = "DELIVERY INFORMATION"
strBody = strBody & "DELIVERY INFORMATION (If Delivery was selected):" & VbCrLf
strBody = strBody & "Delivery Choice: " & Request.Form("dChoice") & " on " & Request.Form("choiceDate") & VbCrLf
strBody = strBody & "Delivery Name: " & Request.Form("dName") & VbCrLf
strBody = strBody & "Delivery Address: " & Request.Form("dAddress") & VbCrLf
strBody = strBody & "Delivery City: " & Request.Form("dCity") & VbCrLf
strBody = strBody & "Delivery Zipcode: " & Request.Form("dZip") & VbCrLf
strBody = strBody & "Delivery Phone: " & Request.Form("dPhone") & VbCrLf
strBody = strBody & "Delivery Instructions: " & Request.Form("dInstructions") & VbCrLf
strBody = strBody & "-----------------------------------------" & VbCrLf & VbCrLf
emailFooter = "CONTACT/BILLING INFORMATION"
strBody = strBody & "CONTACT/BILLING INFORMATION: " & VbCrLf
strBody = strBody & "Billing Name: " & Request.Form("cName") & VbCrLf
strBody = strBody & "Billing Address: " & Request.Form("cAddress") & VbCrLf
strBody = strBody & "Billing City: " & Request.Form("cCity") & VbCrLf
strBody = strBody & "Billing Zipcode: " & Request.Form("cZip") & VbCrLf
strBody = strBody & "Billing Phone: " & Request.Form("cPhone") & VbCrLf
strBody = strBody & "Billing Email: " & Request.Form("cEmail") & VbCrLf
strBody = strBody & "Amount to be paid with Gift Certificate: " & Request.Form("GiftCamount") & VbCrLf
strBody = strBody & "Gift Certificate Number: " & Request.Form("GiftCnumber") & VbCrLf
strBody = strBody & "Amount to be paid with Credit Card: " & Request.Form("cCardAmount") & VbCrLf
strBody = strBody & "Credit Card Type: " & Request.Form("cCard") & VbCrLf
strBody = strBody & "Credit Card Number: " & Request.Form("cCardNumber") & VbCrLf
strBody = strBody & "Credit Card Expiration: " & Request.Form("cCardExpiration") & VbCrLf
strBody = strBody & "-----------------------------------------" & VbCrLf
wantedCartColArray = Array(0,0,0,1,1,1,1)
wantedCartColNamesArray = Array("LineItemTax","LineItemTaxValue","ProductID","Quantity","Name","Price","Total")
wantedCartColFormatArray = Array(false,false,false,false,false,true,true)
currencyTypeArray = Array("$",0,-1,-2,-2,-2)
%>
<%
' UltraCart II Email Order Version 2.01
MailObj.TextBody = UCII.BuildEmailBody(false,emailHeader,emailFooter, _
wantedCartColArray,_
wantedCartColNamesArray,_
wantedCartColFormatArray,_
"Order ID",true,_
"Order Date",true,_
"Sub Total",true,_
"Tax",true,_
"Discount",false,_
"Shipping",false,_
"Shipping Method",false,_
"Grand Total",true,currencyTypeArray)
MailObj.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
MailObj.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
MailObj.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
MailObj.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
MailObj.Configuration.Fields.Update
MailObj.Send
Set MailObj = nothing
%>
<!--- END CDOSYS CODE --->
View Replies
View Related
I'm trying to send out emails but the body of it keeps sending as an attachment so with some email services, such as yahoo, puts the email into the bulk mail. I was wondering if there was a way to stop it from sending the body as an attachment.
View Replies
View Related
I am testing a mass emailer that I will be sending out this week. I use ASP to read email addresses from a db table which is contains a list of email addresses of those who will receive the email blast. I have included myself to see the results of the test. I noticed when I received the email, the body or content of the email was repeated as many times as there are people in the email list the code was reading from.
Can someone tell me what I did wrong in the code below?
Code: ....
View Replies
View Related
I am currently having an issue with CDO and my asp code. The email body is including an "!" and space when the body is greater the 600 characters. Does CDO have a limit on the length of the email body. The issue is occuring both in .textbody and .htmlbody formats. Has anyone seen this before? Where do I need to look in order to determine the cause?
View Replies
View Related
I finally figured out how to get my form to its database and have an
email come my way. However I am now trying to set up the body of the
email to include the form details. However the body of the email that
is sent only includes the last line of the "body" tag and has no
details next to it. Code:
View Replies
View Related
I use jmail to send email. Version 3.7. I want to send hyperlink in the mail body with sessionid variable. But I dont know how to concatenate it.
Here is the example which dont work.....
View Replies
View Related
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
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
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
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
Hey there, I have a few links in my site similar to this one.
<a href="mailto:contactus@timber.com?Subject=Contact%20Us">
When a site visiter clicks on to this link, it starts up your default browser.
Anyone know how to insert a message in the body of the email?
Something like...
View Replies
View Related
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
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
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
I would like to write a generalised page which creates an email
containg the (calling) HTML form complete with the user populated
data.
In this way the appearance of the email will be just like the form
elements of the form that called the generalised page together with
the completed fields.
I can see that I can caputure the (blank) calling page itself in the
email by using the CreateMHTMLBody method of CDO. I can also see how I
can retreive the individual elements of the form using Request. But is
it possible to combine the two?
View Replies
View Related
is it possible to rn a client side vbscript to send messages using cdo.message and cdo.configuration? what are the requirements to do this? my wks are xp and 2000 and all have cdosys.dll registered. do i have to have outlook express loaded.
i have workstations that don't have outlook but rather lotus notes and want to send email to an smtp server. these emails have local attachment thus the need to run client script versus server scripts. is this possible or am i on the wrong track.
View Replies
View Related
I built a form to collect users details, and noticed that a lot of sites these days have feedback emails that return a recieved email confirmation back to the customer.
Can anybody point me to, or allow me the code so that I can try it myself.
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 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
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
Is it possible to send an HTML email through CDONTS without formatting it
into one big long string?
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 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
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