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


ADVERTISEMENT

Html Code In E-mail Body

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

Send HTML Body Format CDO Mail

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

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

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

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

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

String Or Binary Data Would Be Truncated Error

Can't find anything in MSDN that explains this ASP error; I'm trying to post data into sql dbase, and this error points to the SQL execute line. Code:

View Replies View Related

CDONTS With BODY

I am trying to create a form with just an email address and a text area so I as the administrator can send a customer an email with an attachment. I have the form set up with the email address but I can not get the CDONTS to send the textarea.

I make the textarea the object body but it still does not work. Any help would be appreciated. I was able to do it with ASPEmail but not with CDONTS. I want to be able to open the form and put the customers email address in the form and then a message in the textarea to send them an email also with an attachemnt.

View Replies View Related

ASP In Body Tags

i've got a problem with asp tags in the <body>.Looks like this:
<body <%if len(request.form("field1")) > 0 AND len(variable1) > 0 then %>onload="javascript:testSite1();"<% elseif len(request.form("field2")) > 0 AND len(variable2) > 0 then %>onload=":javascript:testSite2();"<% end if%>>

Now is on the top of my site written: 0 AND len(variable1) > 0 then %>onload="javascript:testSite1();" 0 AND len(variable2) > 0 then %>onload="javascript:test and the caption is not on the top of the site!

View Replies View Related

BODY ONLOAD()

i've been using body onload()for ages but since i changed my internet explorer (to 6.02) and OS (XP), i started to get this IE script error and i don't know how to get rid of it.

I read somewhere that if I put the onload event in an inline script tag at the bottom of the my form body, it all works fine, but this doesn't work either.what i should do?

View Replies View Related

In Head Or Body

I want to know the difference and effect of placing ASP Code in the begining of .asp File and placing code inside <Head</ HeadTag and Placing code inside <body></bodytag. Just as follows:

1. Placing code in the Begining of asp file

<% Response.write "Hello" %>

<head>....</head>
<body>....</Body>

2. Placing code in the Head

<head <% Response.write "Hello" %</head>
<body>....</Body>

3. Placing code in Body

<head>.....</head>
<body<% Response.write "Hello" %</body>

View Replies View Related

Add Body To Mailto

I'm just learning ASP. I have a mailto and I have a lot of text that I want to display in the body. Is there a way to store that text in a variable & then add it to the mailto tag?

View Replies View Related

A Loop Within The Body Of An Email?

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

ASP Include/strip Body Tag?

We have an unusual situation at the USC School of Medicine; we have to
covert every Web page to a template. The template is too wide to print and a
lot of our students print lectures, notes, etc. We thought we could keep to
the template and draw in the content from other files by using includes. BUT
these files are HTML files and therefore, have Body commands in them. If
this could work, we could put a printable link back to the other page and it
would print. Seems like a great solution except for the extra body commands.
We are using ASP for our scripting.

1. How much of a boondoggle will it be if the files have two body commands
in them. How many browsers would it break?

2. Is there a scripting way around this without creating some objects?

3. Is there something out there -- shareware or commercial -- that would fix
this problem.

4. Could something be done about this using pearl, for example?

We'd really like to do it this way because we can have the users create the
content, use the same file names all the time, thus overwriting the old
file, and the user would never get a chance to screw up the template.

View Replies View Related

Copy From Body Into Title

I need some asp which I can use to put between some words within the
body of a page which takes these words and places them inbetween the
title tags.The idea is when an editor changes these tagged words (with
Contribute2), it will also change in the title tags of a page.

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

Cdosys Body Text Is Not Being Sent By Email

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

Email Body Sending As Attachment

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

ObjNewMail.Body Question, I'm Sure Very Easy To Fix??

I have a "tell a friend" form and the backend sends the information just fine, however in the bodytext I want the "comments" box text to be added to the e-mail. User fills in his name, his email, friends email, comments box (name=message) and the email is sent except the text from the comments box. My code for the body tag is:

objNewMail.Body = sendersName & " (mailto:" & sendersEmail & ") thought you would be interested in this article " & vbcrlf & vbcrlf & vbcrlf & "Link:" & vbcrlf & request.ServerVariables("HTTP_REFERER")

How can I insert the comments box text in there?

My thought was:
objNewMail.Body = sendersName & " (mailto:" & sendersEmail & ") thought you would be interested in this article " & vbcrlf & vbcrlf & message & "Link:" & vbcrlf & request.ServerVariables("HTTP_REFERER") but it does not work.

View Replies View Related

URL Displaying Wrong In Message Body

I am trying to put a URL into the body of an email message but I can't get it to display as a link. Code:

View Replies View Related

CDONTS New Line In Message Body

I have a script sending mail with asp using CDONTS. The script works fine, the only problem I have is specifying a new line in the message body.

I am used to php's imap commands where you can just set the body to be "Hi This is on a new line!" but putting in the text of the CDONTS mail just displays the as part of the text.

View Replies View Related

Mass Email Body Repeated Several Times.

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

CDO Textbody Error- Displays ! In Email Body

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

Send A Mail With Cdosys And Save A Copy In The Sent Mail Folder: How To?

I need some help: with cdosys i'm able to send e-mail from asp using the local exchange
server. Now I also have to save the sent mail into the user's mailbox for future reference: how to?

I'm using:....

View Replies View Related

Syntax To Have Body Of Email Include Form Fields

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

Jmail 3.7.0 Sending Sessionid With Hyperlink Email Body

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

Including Form Items In A Message Body CDOSYS

I am having some problems with my code. It works perfectly, the only problem is that when sending the e-mail, it only sends the Message and not all fields. I need for this to send all fields in the form in the e-mail. Sorry for this very easy question but I am pulling my hair out here. It only sends one field, the "Message" field in the e-mail when it sends it. Code:

View Replies View Related

Server.Execute Command Disables Body OnLoad

i have this web page which on loading shows + hides a selection of div's using the command : Code:

<body onLoad="showHide()">

i wanted to include a standard banner by adding the command : Code:

<%
Session("titleString") = "some title"
Server.Execute "index.asp"
%>

but this seems to disable the onLoad command, presumably because there is already a full header and body in the "index.asp" file

the reason why i didn't use the "include file" command here was because the latter won't allow the title string to be fed through

the question is : is there an alternative way to execute either the "Server.Execute" or the "body onLoad" command that will allow the function showHide() to work ?

the same function is also called from a "select" form element Code:

<select onChange="showHide()">

and that works fine, so the problem definitely lies with the onLoad command, not the showHide() function.

View Replies View Related







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