I'm sure questions like this irritate the hell out of experts but I'm more designer than programmer. Please could someone help me to create a form that will allow users to tick check boxes then have this info sent to an email address. I've managed to create text fields that work (which is a miracle in itself) but check boxes have me stumped.
I have an asp server script called confirmation.asp
I'm using CDO to send mail to the site owner from ASP pages with forms. Recently one of my forms is occasionally sending email with what seems to be an insertion which is replacing the plain text part of the email with something else. Looking at the server sent email source, the hacked emails have the following:
I want to loop through some checkboxes & extract their name & value. actually i want an if statement that says if they are empty write nothing & if they arent then extract name & value of checkbox.
i know how to do the if & extract the values etc but not the loop. at the moment i have really long code that looks at each checkbox tests if its empty & if it isnt then extracts the values I need. Code:
have 6 checkboxes on the form i want the user to select 3 of them if the user doesnt select any of them fire an alert if the user selects 3 of them then only submit the form if the user selects 5 of them fire an alert telling him he has to select only 3 same thing applies if he selects 2 checkboxes tell him to select 3
here is the code i have written and its not working ...
I have a form to edit my database. I coded the post form fine. But I have never had to pull from the database and populate checkboxes (The ones check on the post form). I have no idea where to start. Here is the code from the post form: Code:
I have a feedback form which user completes and data is submitted to db. I then want to allow user to edit this form so I retrieve values from db and populate the textboxes. This is working fine. My question is how do I set checkboxes and radio buttons to reflect these values?
It must be something like 'if value is ?? then check the box', but what is the correct syntax and is this code placed within the actual radio box/checkbox?
I have a contact form, that needs to be sent as email. However, I would like that email to be received with elements of the contact form in order and not as code in between. Personally I would put it into a DB. But My client uses a server that supports ASP but not access db. Go figure. and the current form made in PHP does not work for some reason. Is there a way to parse the email in ASP so it is organized.
I normally code in PHP but need to be able to send the contents of a form in asp. the thing is, i really don't know where to start and have got completely lost in all the different scripts I have found.
Does anyone have a script which does this?I need to get the contents of the form to be sent in an e-mail in such a way that it is lisible for a complete stranger.
I have made an html form which I would like to send by e-mail. When the recipient receives the e-mail form, I would like them to be able to fill it out and click the Submit button which will submit to an ASP page. This ASP page contains the code to submit the form data to a database. The page works fine when viewed through a browser, but the form will not submit in Outlook 2002 (I haven't tried other mail programs).....
I have .asp page that have a form. When form is submitted it's stored in Database. How can I make it also send an email like to some spesific address when the form is submitted?
I already have .asp file that is some sort of a mailer and it works. But what should that button Submit have to pass parameters into that .asp and still continue what it would be doing?
I just need a form that sends to an email address and sends an attachment.
1. I have tried php: matt wrights script and jacks form mail. (set to multipart form data: they send the mail, but still dont send the form attachment.)
2. I have tried using pure asp upload and the cdont mail object. and that wont work with the imail smtp. ( i think I need to use cdo's or .net?)
If anyone has a form with attachment script that works with iis and imail email server.
I have an ASP script that collects information from a form on my site and sends it as an email. The ASP script is calling CDONTS.DLL which is registered on a win2k3 server with Exchange server running.
When submitting the form there is an error when it comes to the 'mail.send' part of the script. I have given all the necessary folders the correct permissions as per microsoft however I still get the same errors.
I believe it is something to do with permissions because if I disallow anonymous access to the site and access it through the local network as a logged in user the script works fine.
I have searched for a decent asp form to email script, but cannot find one that is suitable. What I need is: Email results to a specified email address (dont want this to be a hidden input for spam reasons)
i get code samples for servers running windows/IIS. the problem is that the server with my site is an aapche with chiliasp-3.5.2L-C3. i cannot figure out the syntax to take the input from the html form and mail it to a specified address.
I am struggling to set up a form that would allow me to recieve an e-mail from someone submitting an e-mail address for my sites newsletter. My host does have ASP and it is enabled on my site. It says there is a problem with line 122 on the thank-you.asp page but I am not seeing it. Click here to go to the page with the form on it.
I'm having trouble with spammers getting through my mail script. I've heard of FormMail for php but I need a solution for ASP. Any suggestions? I don't know how to stop these guys from using my forms to spam.
I've searched the forum for the answer to this..it's probably on here somewhere but in a different guise to my particular question and I don't know enough to figure it out.
If I have a basic form to mail ie
strEmail = request.form("Email")
and
mail = "me@me.com"
can I simply do this to get my form to be sent to 2 email addresses?
'Update configuration objConfig.Fields.Update Set objMail.Configuration = objConfig
objMail.From ="info@justonedomain.com" objMail.To = "kmuel@aol.net" objMail.Subject ="Information" objMail.TextBody="This is a test for CDO.message" objMail.Send
If Err.Number = 0 Then Response.Write("Mail sent!") Else Response.Write("Error sending mail. Code: " & Err.Number) Err.Clear End If Set objMail=Nothing Set objConfig=Nothing %>
Can anyone point out why this is not working? It should work.
I have found a FormMail type script in ASP that will send 1 attachment but getting any more seems to be a problem.. Can anyone suggest a script paid or free download?
Also the webserver and exchange servers sit on different boxes will this cause any problems?
I have constructed an order form and the users will enter the informtion. I now need to send the filled out form as an e-mail (body being the HTML with the fille din data) to a predefined e-mail address. I know how to use CDO. I don't want to go to another page to recontruct the HTML as the '.body'
Is it possible to create line breaks in a form? All of my informations appears as follows:
This mail message was sent from the www.ccbwebdesigns.com Online Form Email: First Name: John Last Name: Doe Business Type: Anonymous Business Name: In the Dark Phone: 555-GHOSTLY Mail: casper@haunted.com
I would like a line break after each individual text field.
See Example of script below that works fine. I want to add the feature to this where it will tell customer that they missed a field, "click here" to go back & try again.
Does not need to be fancy telling them which field they missed. (Although would be nice) Can even require all fields to be filled out, or do again.
Currently it kicks you out when e-mail field is empty, but not on any other field.....
I've been racking my brains over this one. I have a Classic ASP edit form with many fields, one of them a Status drop-down. If the Status (option value) has been changed to "Pending" for instance, I do a objMail.send, otherwise it doesn't send.
No problem, but how can I prevent the mail from sending AGAIN if a user goes back to the page and updates another field, or even just refreshes the page? If it helps, I am updating a SQL Server database.
I have an asp page that posts to a third-party site. I need to send an e-mail from this page when the user submits the form but before it posts to the other site.
I'm developing a service request form for our intranet that will send out an email when it is submitted. Sending to an internet email address, something@yahoo.com, poses no issue, but a lot of the staff only have internal email accounts.
Is there a way to send an emmail to a MS Exchange Alias?
I have this piece of code in an .asp file. I call this file through a form and I send an email
Set myMail=CreateObject("CDO.Message") myMail.Subject="my subject" myMail.From=Request("email") myMail.To="myemail@mail.com" Dim Body Body = Body & "Name: " & Request("name") & VbCrLf Body = Body & "E-mail: " & Request("email") & VbCrLf Body = Body & "-----" & VbCrLf Body = Body & Request("the_message") & VbCrLf
myMail.TextBody=Body
myMail.Send set myMail=nothing
The problem is when I try to fill in the form with greek characters. They appear in the email as ????? or very confused characters with no recovery.