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


ADVERTISEMENT

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:" & "&nbsp;" & "<a href='http://localhost/New Shop/products.asp?id=" & offerRS("Product_ID") & "'>" & offerRS("Product_Name") & "</a><br>"
strBody = strBody & "Price:" & "&nbsp;" & 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

String Truncated

When i try to add a string to an Access db field it is truncated? here is the code :

View Replies View Related

Data Truncated

I am gettina an error that says "String or binary data would be truncated." I can't figure it out.

View Replies View Related

Data Getting Truncated

I'm submitting data through a form with multiple rows on it, that goes out to a processing page, which then scrolls through the data row by row and sends it into a database table.

It is truncating one of the strings, the book tile string, so that if there are three words in it, only the first is getting submitted to the table. I have a feeling that it is because I have numbered the fields that are being submitted to the processing page, and therefore the field is cutting off the first word. May be wrong though about
this. Here's the code:

for x = 1 to endvalue

title=request.form("title" & x)
rest of loop code here

I have to do this in order for the procesing page to count and get the right text boxes and fields. Is there another way I can do this?

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

Attach HTML Email

Is it possible to send an HTML email through CDONTS without formatting it
into one big long string?

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

Mail Body Get Truncated While Using CDO In ASP

i ve upgraded my asp application to windows 2003 +IIS 6.0 + virtual
SMTP server enabled environment from win 2000.

so i need to update the mail procedure too.(becox i used CDONTs
previously which is not supported in win 2003 by default).i have coded
my mail sending script using CDO. The problem i am now facing is the
mail message which is generated by my application is get truncated at
the receiving end..

Also i want to mention the way i coded my mailing module.
i have a vbscript function to send email that uses CDO now
and mailsending script is being called by a javascript block where i am
concatenating the mail body.

Also i dont receive mails at some personal domains. at the same time
mail reaches free domains like yahoo,hotmail gmail.

View Replies View Related

CDO/CDONTS And Truncated Attachments

On our previous production server, we used CDONTS to attach jpeg image
to the mail. On our new server (both are Win2000) attachments are
truncated to ~108B (that's what outlook shows), or 0 bytes when I try
to save to disk from Outlook.

I'm sure that files to be attached are
accesible, because security is set to allow for Everyone. I suspect
something with SMTP config, but what? Because I couldn't find what's
wrong I moved to CDO, but the result is still the same in the end. Any
ideas?

View Replies View Related

String Truncated Error

I'm getting a "string could be truncated" error at the line where my
strSql is executed ( my_conn.Execute (strSql) ), but it doesnt happen
all the time, just periodically. I used to have this pointing to an
Access db, but I changed it over to Sql, getting rid of the # datetime
delimiters and replacing with ' . Wondering if the first StrSql string
in the if statement if too long: Code:

View Replies View Related

Memo Field Truncated

I have several asp pages that display information from an Access DB. Some of the fields are memo fields. If I use simpler queries such as:

SELECT * FROM " & MyTabla & " WHERE " & MyCriteria

the memo fields are retrieved and displayed Ok.

However, if I use more "complicated" queries such as:
SELECT " & selecti & " FROM " & MyJoin & " GROUP BY " &grupi & " HAVING " & MyCriteria

the memo fields get truncated after the first 255 characters, i.e. only the first 255 characters are returned, but the fields are larger and get retrieved ok if I use the "simpler" queries!

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

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

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

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

String Or Binary Data Would Be Truncated

i have the following update statment that this error is coming from i dont realy understand why it is thorwing the error up becuase when i was testing it i change the letter 'c' to and 'a' so not sure why it would need truncated. what does this error actual mean or what do i look for Code:

View Replies View Related

Send HTML Email From External Server

how to send an HTMl email from an external server. I am trying to Send email using CDOSYS
this i what i have tried but cant get it to work.

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

Sending Html With Picture Formated Email

I can send email in html format using cdo.message. but when i insert picture in that html tags. but that email has no pictures....

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

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

Need Help Sending CDO Email With Dynamic HTML Attachment

I'm using CDO SYS to send email messages. I can attach a file just fine.
However, I need to attach an HTML page that's generated on the fly by my
ASP code. The attachment source code gets assembled into a VB string. How
do I attach this? I think there was an easy way in CDONTS but that's no
longer an option.

View Replies View Related







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