Paragraph Using CDONT
I am trying to send an email with the values from a form. I want to send the text field values as paragraphs on the email. It comes as one paragraph and there is no break.
View RepliesI am trying to send an email with the values from a form. I want to send the text field values as paragraphs on the email. It comes as one paragraph and there is no break.
View RepliesI don't know Regular Expressions At All And I Could Really Use Your Help.
Is there a way to extract the paragraphs out of a string?
I've had some excellent help before on this forum and hoping for some more.
This is probably very basicbut I'm kind of muddling along a bit and it's a miracle I got so far.I have a memo text field in a table form and I'm wanting to enter text into it but all a small amount of formatting. Just basic paragraph breaks would be a start. This is kind of following on from a previous post of mine where I was trying to include line breaks. This was the solution.
Code:
<textarea name=whatever WRAP="HARD">
I am using TEXTAREA as input. While entering texts sometimes I am creating paragraph and save them .But when I retrieve from database it comes without paragraph.
Is there any way we can create paragraph in TEXTAREA?
I have a query about ASP with Javascript, I am trying to automate a form whereby when you type in some text in a form and hit the return key on your keyboard the asp/javascript places a <p> html marker in that paragraph space so when you hit the submit button the text is display correctly, i.e. the paragraphs are displayed and the text does not come out in one block. I have created a very simple form and button using ASP/VbScript and it works. For some reason I cannot work out how to do this with ASP/Javascript. This is so when in future all text is sent to a database we do not have to input the <p> markers manually. Obviously there is more to this, like connecting to a database to drag the text off first, but the code I have created is merely for testing purposes first.
here is my ASP/VBScript code below: ...
Is it possible to extract the first paragraph in a mysql text field? my code line to display all text:
<%=replace(Recordset.Fields.Item("article").Value, vbcrlf, "<p>")%>
I want to separate the 1st paragraph (article lead) from the others (article), without having one table for 1st paragraph and a second one for the rest of the text.
I am building a small CMS for my son's school. Ideally I want to build the system for them and hand it over so that all updates can be done through web-based forms.
So far so good. However I'm having a problem with fields designed to take multi-paragraph stories or articles. I'm using a text area field on the form which saves the data in a memo field in the database. Teachers would typically cut and paste stories from word documents into the text area field.
However when the data is loaded back into the website from the database all the carriage returns have been removed and the story consists of one long paragraph.
I have a form with a textarea input. The form then stores the text in a database. I want that text to be written to a web page (not a textarea).
Well if I don't put a <p> in between paragraphs, of course the paragraph breaks don't show up on the web page. How can I make it, so when I hit return in the text area, a paragraph break shows up in the asp page?
Can someone show me how to modify this simple code from CDONTS to CDO to bring
it up to date?
It works fine now and maybe I should leave it alone?
<%
Dim t1,instructions
t1 = "Instructions"
instructions = Request.Form("instructions")
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "hwaxman@cox.net"
ObjMail.From = "info@dinghydogs.com"
ObjMail.Subject = "Dinghy Dogs order"
ObjMail.Body = t1 & vbtab & instructions
ObjMail.Send
Set ObjMail = Nothing
Response.Write"Thank You For Your Order"
%>
I have a query in access that i would like to use CDONT's to send out reminder emails. CDONT's is set up on the server so the error must be with the code:
View Replies View Relatedi have to send the mail to all the employees of the company , e-mail address is stored in a table .i m using cdont component to send the mail ,
what are the basic requirement of cdont
how to install cdont on server 2000 and is it necessary that smtp server shoud be installed or enabled on that server or it can be on other server .
actually , where i m developing this software , tech support said , the server on which i m working smtp on that server is not installed , it is available on another server , is it possible
I am planning to use ASP code for the emailing system, and wanna use CDONT, is that possible to use free webmail (like hotmail, yahoomail,etc) for the "sendFrom" section? or is that possible if I use my own normal POP3 email, but the web hosting service I use is from other provider?
View Replies View RelatedIs it possible to extract from a CDONT a value that has been added to it?e.g. can I say:
MyCDONTSMail.From="some email address"
MyCDONTSMail.To="some other email address"
MyCDONTSMail.Subject="some subject"
MyCDONTSMail.Body="some body"
And then get those values later in the program e.g.:
MailFrom = MyCDONTSMail.From
MailTo = MyCDONTSMail.To
MailSubject = MyCDONTSMail.Subject
MailBody = MyCDONTSMail.Body
I ve a text paragraph something like
sample sample sample sample Join Bytes! <ee@ss.comsample sample
sample sample sample sample sample sample sample sample
Join Bytes! sample sample sample <ww@example.comsample sample
sample sample sampl Join Bytes!
i want to extract email ids from the above text paragraph.. using
Active server pages or php can u give me some clue to find a
solution.
i ve tried some regular expression technique to sort out this problem
but.i cant get the proper output
I have an asp page that reads the contents of a database and creates an xml news feed. I have code that strips out the <BR> and <P></P> tags, but it looks one of the databases I'm trying to read from uses only <P> without the closing tag.
So the make a long story short, I can't figure out what to add to my code to strip out these tags (or if that isn't the problem at all!) Code:
I have a scrolling text box where people input a list of information, using the <ENTER> key between lines.
The submit button transfers this information into the Access DB into a memo field.
When I try and pull up the information using Response.Write, all of the line breaks are gone, its just moshed together.
What better way is there to do this so my line breaks are intact?
My website sends automatic emails from many (25) different places. I want to
send a second email by reading the parameters of the first one. I don't want
to have to repeat and maintain the assignment of the second email
From,To,Subject fields so I am just using an include at each point in the
code where I send an email: Code:
I keep getting permission denied error when I do objCDO.Send. I know that there is a permission that has to be set to allow this to happen but i don't remember.
View Replies View RelatedHi what is wrong here?
<%
Dim MyMail
Set MyMail = Server.CreateObject("CDONTS.NewMail")
MyMail.From = email
MyMail.To = "myemail@site.com"
MyMail.Cc = ""
MyMail.Bcc = ""
MyMail.Subject = "Message From Contact Page"
MyMail.BodyFormat = 1
MyMail.MailFormat = 0
MyMail.Importance = 2
MyMail.Body = message
Set MyMail = Nothing
%>
Its not working (dont worry I specified the right email)
I am just developing intranet site for some company, which have internet connection 24 hrs.
Now I have one asp page which ask for feedback if user wants to give, which in turn comes to my mail account.
If some one can guide me in this situation what configuration I should set for the intranet Site on IIS 5.0 (Win 2000) to workaround this problem.
The code which I am using is by creating object of ....
i have to send the mail to all the employees of the company , e-mail address
is stored in a table .
i m using cdont component to send the mail ,
what are the basic requirement of cdont
how to install cdont on server 2000 and is it necessary that smtp server
shoud be installed or enabled on that server or it can be on other server .
actually , where i m developing this software , tech support said , the
server on which i m working smtp on that server is not installed , it is
available on another server , is it possible?
i have windows 2003 web edition dedicated server i have tried all type of formail scripts to process form but nothing is working,I tried cdont script not working i tried to get cdosys scripts but i cannot be able to get i search at my server there is cdosys.dll file but i dont know its installed or not but there is no cdont.dll file. plz solve my problem, other asp pages are working properly but any type of asp formail scripts are not running
View Replies View RelatedI have a html form. When it is submitted, an asp page retrives all the data and sends the data to my email id. It is working well when the form data is in English. When user fill in the form using Thai language and submit, as sends some junk. How can i fix it?
View Replies View RelatedI copied a CDONT form from a simple request page I use on another web-site and made it more complex (or simply longer), but I am not receiving the emails anymore.
It takes the form and moves on the request received page without any errors, but the email never arrives I changed the email and I moved the form to a different server to no avail.....
I'm generating HTML formatted emails in my asp program using CDONT. Depending on hoow ling the link is it will sometimes wrap and ruin the link. The is Detail email properties listing : Code:
View Replies View RelatedI have a string of HTML (used for a specific purpose) that I'd like to
use somewhere else but as plain text. Rather than introduce a
specifically created plain text version I'd like to strip the tags code
from the HTML version. This in itself is easy, using a function such
as:
Function HTMLDecode(Expression)
Dim sTemp
sTemp = Expression
sTemp = Replace(sTemp, ">", ">", , , 1)
sTemp = Replace(sTemp, "<", "<", , , 1)
'Repeat for each defined entity
HTMLDecode = sTemp
End Function
However, the difficulty comes when trying keep each paragraph seperate.
For example, the string "this is<p>my name" shows on screen as:
this is
my name
if I use the above function, it strips out the <p> tag and shows the
result on one line:
this is my name
I thought I could use something like:
str = replace(str, "<p>", chr(10))
but that doesn't seem to work. Can anyone help me replace <br> and <p>
tags with something that's recognised as "plain" text but will keep the
paragraphs and new lines formatted correctly??
I send HTML formatted emails with links and images in them generated by my asp driven website. Occasionally the image will not appear and the link will not work. By looking at the email at the receive end, (right click/properties/details/message source, this is what I sent: .....
View Replies View RelatedI have the below mentioned code that I am using to send a simple html email via ASP. Please do let me know how I could modify the code so that the carriage returns are captured and the paragraphs that are entered within the text area are preserved. I do not need any fancy hmtl formatting - just the paragraphs. Code:
View Replies View Related