I have been setting up a support web site for my company for a while now and after a recent meeting I have been asked to set up a bit more functionality on the web site.
Before I ask the question, what I have so far is a SQL database made up of several fields such as ID, Problem and Fix and I use ASP to pull information from this database and display it from a ver basic crude search engine.
This all works okay but what I have been asked to provide now is the ability to email the information that is pulled from the database to a customer.
I have tried various methods to do this using an html email form and dropping the information into the input field before emailing it. This failed for two reasons the first been the HTML tags were displayed among the text and second I was not able to manually enter the email address I want to send it to.
I then had a dig around for a while and found some ASP code that looked to do what I required but when I tried it the email was not been sent and I have my doubts it would have included all the text I wanted to send.
'Sends an email
Set mail = Server.CreateObject("CDO.Message")
mail.To = Request.Form("To")
mail.From = Request.Form("From")
mail.Subject = Request.Form("Subject")
mail.TextBody = Request.Form("Body")
'Destroy the mail object!
Set mail = nothing
I have made some progress I can now get an email to go to where I want but it does not contain the text in tne table, is this possible?
Set ObjSendMail = CreateObject("CDO.Message")
'This section provides the configuration information for the remote SMTP server.
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="126.96.36.199"
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.
'ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication
'ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="firstname.lastname@example.org"
'ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="whatever"
this is kiran, i have developed a web application (ASP.Net,C#) for PDF Files using iTextShap. I got all the things what i want, except one situation where i need to restrict the client "saving the pdf file".
window.open('PDF file path');
when the pdf file is opened upon client requiest(i.e. on clicking the hyperlink) i am able to restrict the client for printing but unable to restrict Saving of pdf file.
if any body have an idia regarding this plz help me.
I am new to the world of web site creation but would like to have a go !
I have been hunting around the web for a basic asp.net 2.0 template. All I want is a template that uses a master page and has a header and side bar. The msdn website had some but they all had huge gaps down either side of the page. I feel this is a terrible waist of screen space !
I would be most grateful if some one could create / point me in the direction of a good website template to set me on my way
I almost recommended w3schools.com, but the w3c and I have some unfinished business. And this is one of the reasons that ASP is something I loathe, too many developers never understand the client server realationship and all the other little things that go together to make the internet work.
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
It does the job perfectly, but it makes all the element(like button and textbox) in this table cell ("TD"), disabled and they are not click able or even the flashing cursor in textbox is not shown and you can not type in it?!