Sending Checkbox Values To E-mail

I am trying to Send the values of checkboxes to the user's email
and display in the form of List <li></li>. The values of checkboxes
are sourced from a table in my access DB. I am using Jmail to send
this info. Can anyone please help me how to retrive values from the
check boxes, split, make a list and send in the body of e-mail.
Here is wht I 've done so far :

uname = Request.Form("name")
uemail = Request.Form("email")
chk = Request.Form("checkbox")
chk = Replace(chk,",","<br>")
chk = " " & chk
mailserver = "my.mailserver.net"
recipent = uemail

msg = "<html><body> Dear " & uname & ",<br>Thank for requesting our product list." &_
"<br>This is what u requested : <br>" & swnp & "</body></html>"

Set Mail = Server.CreateObject ("JMail.SMTPMail")

Mail.ServerAddress = mailserver
Mail.Sender = "email@mydomain.net"
Mail.Subject = "Your Request"
Mail.AddRecipient recipent
Mail.Body = msg
Mail.Execute

View Replies


ADVERTISEMENT

Sending Mail Using ASP/VBScript To Exchange Mail Box

Here's the scenario. I'm currently using cdosys/asp to send mail to
our SMTP server. We use a product called MailFilter to check for SPAM.
It doesn't work very well. If MailFilter isn't working cdosys also has
problems and emails don't get sent. As these email are confirmations
for customer's bookings this means lots of customers calling to see
where their confirmation emails have gone. The root of the problem is
MailFilter but that here to stay. So I had this thought of sending the
message to a queue of some sort so at least they will get to the
customer eventually rather than being lost for good. So here's the
question:

Can I/How do I send messages to a mailbox on our exchange server using
cdo.message?

View Replies View Related

Sending An Email Depending On CheckBox Value

I have an ASP page with ten checkboxes and depending on which checkbox is selected I need to send an email to a specific recipient.

Thus far, I am able to send the values from page one to page two, but using CDONTS email functionality isn't really working. Actually, I can't imagine where to begin.

View Replies View Related

Getting Checkbox Values

I have a page with a checkbox on it (chkMyBox). I want to be able to click on it and redirect the page back to itself, showing the box checked when it resubmitts. How can I do this?

View Replies View Related

Checkbox Values

I need to get the values of a number of checkboxes without A) Resorting to calling them all the same thing and using the below to sort it out: Code:

ValueA = Split(Request.Form("a"),",")
For i = 0 to uBound(ValueA)
response.write(i)

Response.Write(trim(valueA(i)))

Next

or

B) Having a request.Form for each one (There could be in excess of 40 checkboxes; the number changes).

View Replies View Related

Adding Checkbox Values

I am trying to create a 'build a quote' page in which a user can checkoff checkboxes and have the total add up once the submit button is clicked. An example of the code I am using is

<form action="add.asp" method="POST">
option 1 value is 5<input name=""check"" type="checkbox" value="5"><br>
option 2 value is 9<input name=""check"" type="checkbox" value="9"><br>
option 3 value is 1<input name=""check"" type="checkbox" value="1"><br>
option 4 value is 2<input name=""check"" type="checkbox" value="2"><BR><BR>
<input name=""Submit"" type="submit"> <input type="reset" value="Reset">
</form>
<hr>
<%
arrB = Request.Form("check")
arrA = split(Request.Form("check"), ", ")
If arrB<>"" then
For each x in arrA
total = x
next
response.write(total)
end if
%>

View Replies View Related

Checkbox Values Sorted?

im not that good at asp, infact im using dreamweaver to make my pages up! what i would like to do is show a list of items and price in a table, with a checkbox next to them, the form is submitted and then on the next page i would like to display the the items that have been checked.
I think i have the first page sorted, i have linked the checkbox to the product ID value in the database, so i can pass that value to the next page. the problem is the second page, i can get it to show the values of the checkbox (eg items 1, 4 ,26...) but only the numbers.How do i go about using this value (number) to pull the rest of the data from the table (stored in a mdb)?

im using this in the first page form to pass the checkbox value
<input type="checkbox" name="checkbox" value="<%=(rs_stock.Fields.Item("ID").Value)%>">

on the second page i get the values get shown with
<%= Request.Form("checkbox") %>
im at a loss on how to do this

View Replies View Related

Adding Checkbox Values

I have 2 pages - form.asp and result.asp. in form.asp, i have multiple checkboxes with varying values, like:

<html>
<body>
<form action="result.asp" method="get" name="form">
Name1: <input type="checkbox" name="1" value="5">
Name2: <input type="checkbox" name="12" value="7">
Name3: <input type="checkbox" name="12" value="9">
Name4: <input type="checkbox" name="12" value="11">
<input type="submit" name="submit">
</form>
</html>

I seek to capture these values and add them up in the result.asp page. e.g. if name1 and name3 are selected, i want the total of 14 to be shown up in result.asp page. I need help here for the asp code for the above. Or, may be some advice on how the above can be accomplished.

View Replies View Related

Is It Possible To Insert All Checkbox Values Into 1 Field In The SQL Database?

Is it possible to insert more than 2 checkbox values into 1 field in the SQL database?

I have 5 checkboxes; I would like to insert them all into 1 column in the SQL DB.
If I insert more than 2, it gives an error.

View Replies View Related

Insert Checkbox Values From Dynamic Record Set

A page displays the Product literature that a customer can request to receive by postal mail by clicking a check box. The literature selections are created by a dynamic record set based upon what the company enters into the Literature table (currently 10 selections). The checkbox form tags are:

<input type="checkbox" name="LiteratureID" value="<%= rs("LiteratureID")%>">

LiteratureID is the Access autonumber primary key field. I can use the LiteratureName in the "name" attribute if it is easier.

The form processing page needs to Insert each selection into its own record in another table. This "requested" table also inserts the database ID for the customer that is created after first inserting the customer contact info. In other words the "requested" table needs to record the customer autonumbered db ID and each selected checkbox value.

Here is my current code:

View Replies View Related

Sending Through Mail

I have already made the form to save itself in an online database. I need to mail it to myself too, what do you recommend me to do?

Some people recommended me ASPEmail, but I didnt understood how to make it works....

View Replies View Related

Sending Mail

I' m using opertion system XP PRO,i have instelled the IIs 5.1. im trying to simulate sending email to my outlook express but it'snt working,somebody can tell me if i need to install any other componente?

how to conigurate my smtp(what is my host name,how can i find it)?

I dont want to use external component.

View Replies View Related

Sending Mail With PWS

i use a personal web server and i'd like to send a mail into an ASP page.
Usually, i use CDONT component but it seems it does not work on Personal Web
Server.

Could anyone tell me what i could use instead?

View Replies View Related

E-mail Sending And DSN

Our server is a Windows 2000 Server with Service Pack 3, IIS 5 with Lockdown
Wizard applied.

My first problem is related to CDONTS.NewMail.
Up until recently, I had no problems sending e-mail with this little
utility. Our current development efforts are moving to .NET so it didn't
matter to us that this is something that won't be supported anymore by MS.
However, while we are in the process of flipping to .NET, this is something
we're still using for the time being.

The problem I'm having is that the e-mail is not getting sent at all! I
don't get any errors or anything like that, and when I look at our IIS 4
relaying SMTP mail server, and then look at our big outgoing mail server, I
can't find the e-mail anywhere in there. It's like it vanishes. Can anyone
give any insights?

Secondly, we have an older Access based training application that again, up
until recently was working just fine. I don't know if the IIS lockdown
wizard did something I'm not aware of, but now on the line in the ASP file
where the server goes to open the database using the DSN, I get an
"Unspecified Error"

I checked www.aspfaq.com and found the article about this and tried all of
the tricks mentioned there for this error message. Granting the
IUSR_machinename account read/write access toe the TEMP directory got me
further into the file, but it didn't get me far enough to finish it because
later on in the file, when the server goes to open another connectio nthe
the database, I get he same problem. I cannot modify the source code on
this page without killing our support contract or warranty on the product.
Can anyone give me any thoughts on this one?

View Replies View Related

Sending ASP Mail

I am trying to send an email from ASP and get the following error

jmail.Message error '8000ffff'

The message was undeliverable. All servers failed to receive the message

/accountDetails2.asp, line 73

My code lookd like: Line 73 is Code:

View Replies View Related

Sending Mail Using CDO

I am using CDONTS to send a mail.There is no error in the code and it says that the mail has been send successfully,But i am not receiving any mails .The Code

Set vobjMail = CreateObject("CDO.Message")
vobjMail.From= Email address
vobjMail.To= Email address
vobjMail.Subject= The subject
vobjMail.TextBody= The Body
vobjMail.Send

set vobjMail=nothing

View Replies View Related

Sending Mail Can You Help Me

i m developing EMail sending application but i m failed plz send me html,asp form email page that i can complete my work (Codnts,aspmailer,aspmail)

View Replies View Related

Sending E-mail To Different Mail Box!

I would like to know if this can be achieved! On the form I a drop down menu that's called ("Escalation_type") the values are eta, hdtv, and supervisors. I have some ideas but I am not sure if it will work or not. If the use chooses an eta as a value I would like it to be sent a mailbox for exam: no@where.com. If they choose hdtv as value I would like it to be sent to a different mailbox. Can this be achieve by using the case statement or the if statement?

View Replies View Related

Sending Page By E-mail

I'm working on a few intranet pages and have a doubt on how to send e-mails ( i have the aspemail component installed) to outside clients including the invoice for services payment.So differently from Intranet issues where you easily provide a link embeedded on the e-mail, I can't figure how to show the info from outside offices network.
Does anyone knows how to do it? perhaps printingscreen the html page by code and then send to the client as a embedded image or something....?

View Replies View Related

Sending Attachment With Mail

I use the following code to attach a file to my mail

Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = Request("email")
objMail.Subject = "subject"objMail.AttachFile Server.MapPath("./Uploads/"&file_name)

objMail.To = "xyz@xyz.com"
objMail.MailFormat = 0
objMail.BodyFormat = 0
strBody="hai"
objMail.Body = strBody
objMail.Send


I attach files from the folder uploads which r uploaded there by the user. The problem is that when i recieve the attachment i get a .dat extension with it for eg ;if i attach a.txt i recieve a.txt.dat....

View Replies View Related

CDOSYS - Not Sending Mail?

I am usually a CDONTS man but the hosting company say I must use CDOSYS. The following code seems to only work correctly when the recipients email address is the same as the sender address.

I have tried to send the email to Hotmail, Yahoo and GMail accounts and it does not send. No error messages, just is not received in the inbox of the account.....

View Replies View Related

Sending Mail Using CDOS

I'm trying to send mail from my ASP page using CDO, but when I execute the query no mail is sent. How do I set up my internet incoming mail server and outgoing SMTP server?

Here is the code: .....

View Replies View Related

Problems Sending Mail Using CDO

I'm having a few problems sending an email using CDO from a webpage , just wondered if anyone knew what the error message i'm getting could mean , and if the code i'm using looks ok.

Set ObjMail = Server.CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields .....

View Replies View Related

Sending Mail With Images

HiI'm using ASP 3 and I send mail with CDONTS.NewMail or CDO.Message.

If my mail contains some html code with images like <img src="URL">, OE blocks image's visualization.

If i want to avoid this, when i send my mail from OE i flag "send images with message" option.

How can i realize this when i send the mail with ASP?

View Replies View Related

IIS & SMTP Mail Sending

I tried to cend mails with CDONTS.NewMail and the local smtp service of the iis. It works. BUT I tried to send a mail to a invalid address. I got an email (like I configured at the smtp) but the badmail directory is allready empty! I nned the entries for a bounce-management!

View Replies View Related

Configure IIS For Sending Mail

I am learning ASP.NET , I want to send mail from my application so I need to configure IIS.I have written code for it but my mail is in Queue or Droped. I think I have not configured IIS properly.Can anyone tell me in detail how to configure it.

View Replies View Related

Sending Batch E-mail

I would like to send batch e-mail from fields in multiple records.

View Replies View Related

Sending Mail With Recordset

i have an asp file that will send an email to such person but some data should be etrieved from the database.once i run it, only the last record is being displayed... do i have to put do while ... in Mail part?what is the code am i going to put in "Mail.Body" part?

View Replies View Related

Sending Mail From ASP Page

I want to send mail from my ASP site but my ISP do not allow local mail servers. How do I do to relay mail through ISP:s mail server?

View Replies View Related

Sending Mail In Win95/98

I want to send mails using asp in windows95/98 OS.I use CDONTS for win2k and CDOMessage for win2k3 server.But how can send mail in win95/95.

View Replies View Related

Sending Mail On Win2k3 Box

Shouldn't this code do it on a Win2k3 box.

Set oMsg = Server.CreateObject("CDO.Message")
oMsg.From = "address@domain.com"
oMsg.To = "address@domain.com"
oMsg.Subject = "Subject"
oMsg.Body = "Body"

oMsg.BodyFormat = 1 '1=Text, 0=HTML
oMsg.MailFormat = 1 '1=Text, 0=MIME

oMsg.Send

View Replies View Related

Sending Mail Error

I am using this code to send a mail from a feedback form page, but this code is not working. can anybody tell me what mistake I am doing . My requirement is , the message of feedback form will go as a content of a mail to a specific person.

<%
Set Mail=Server.CreateObject("CDONTS.NewMail")
Mail.To="emailid"
Mail.From="emailid"
Mail.Subject="Just testing my script"
Mail.Body="Hey! I am sending this email through an ASP Page, and
guess what? I haven’t learnt much yet, but know that ASP is very
powerful."
Mail.Send
Set Mail=nothing
%>

View Replies View Related

Mail Sending Scripts

i have an ASP script that steps thru a db containg email addresses, using cdonts. i get server script timeout errors with any more that around 200 email address. i'm on shared hosting and am unable to change server timeout times.

is there an alternative that i can send emails to quite a few members (over say 500+) without getting timeouts ?

View Replies View Related







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