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?
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?
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> " ... ..
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
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.
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?
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:
Could a single CDONYS e-mail have both an htmlbody and a textbody??... You know sort of like what Thunderbird does to ensure best compatability among different platforms.
I have setup an IIS 6 server and I am trying to migrate a pretty basic website to it. It will display any ASP page that I set as the default page, but gives a 404.2 for any other ASP pages that I link to.
I am writing a page that will automatically redirect someone after a few seconds. I have the pause working and all but nothing loads. I hear a jscript body on load will work but I don't know the syntax. If anyone knows how to do it.
Could someone give me a little start example as to how to represent days / weeks in a table, basically I want to create a calendar, so get it to display each month in little table boxes, and then get it to pick up certain blocks of dates from my database in different colour.
The most pressing issue at the moment is that my browser does not display the page; it displays the ASP code. I built the page for a questionnaire that was going to be placed on my schools server so that participants could access it online, but I submitted my request too late in the semester.
I decided that the best course of action was to collect these data offline using the computers that I had bought for my lab. The laptops are running Windows 2000 Professional and are using IIS. After configuring ISS and Dreamweaver MX, I built the questionnaire. Then, I uploaded the questionnaire to the “server”—the wwwroot folder.
Now, the index page (the instructions to the questionnaire) opens flawlessly, but when the link to the questionnaire is pressed to open the ASP page, the browser displays the code and not the questionnaire itself.
When I explained this problem to people, they tell me that my server does not support server site scripting, but I’m using a Windows machine, using Windows server software, and Windows database software (Access 2000). Moreover, when I preview the page through Dreamweaver MX, Internet Explorer displays it without a problem. Code:
i have 25 data in the database, each of this data i will assigned them to be displayed in an 5*5 table(asp page), that means, each data assigned to one cell in my table.
but if the data inside the database is not 25, thats means in my timetable, there will be one cell thet is empty and this page cannot be view since i am trying to displays an empty database!
I am rather new at Web program so I am starting off with some small stuff, but still having problems. I want to display a message box to the user when they click a button, but the message box displays on the server and not on the client. Can anyone tell me what i am doing wrong?
The command for the message box is: MessageBox.Show("The anniversary date has been changed for all employees", "Anniversary Date", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
I have just converted from Linux and Apache to MS 2000 running Visual Studio .NET on IIS 5.0. I have installed the .NET Framework and the .NET SDK.
I have an extremely simple problem. I can view an aspx file by double clicking on it, but I get a 500 error when I type its name in the
browser. "http://localhost/firstasp.aspx." I am able to get html and php pages to run from this server using localhost.
I added an application extension to the Default Website in the IIS Administrator. I pointed it to C:WINNTMicrosoft.NETFrameworkv1.1.432aspnet_i sapi.dll and used aspx as the extension of course.
I have this file called "inc_BreadCrumbs.asp" basically this is a Navigation include file as breadcrumbs style, and I inserted this to every page in my site. It works fine but one thing I cant configure is that:
It displays the file names as for example: search.asp or results.asp etc... But i want it to display as SEARCH or RESULTS etc... How to implement this? Can it display only page title name or something else how can you change it? Code:
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.
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!
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?
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:
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?
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.
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.
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.
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.
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,
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.