|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
HTML E-mail forms
i know theres a code for a form where u can send the form to more than 1 e-mail address, but i haven't used it for so long and now i have foregoten it and i was wondering if any body knew what the code was??
|
|
#2
|
||||
|
||||
|
Probably JavaScript
Although I don't actually use the 100% certified "bad practice" of using the <form action=""> attribute to send directly to emails via client-side Try separating the email addresses with semicolons and spaces, or a server-side script perhaps? |
|
#3
|
||||
|
||||
|
na the code am looking for is a hidden type thing for the form.
|
|
#4
|
||||
|
||||
|
That would be a server-side script (or at least some extensive JavaScript) then, can't help you on this (no-one can) unless you give us more information
|
|
#5
|
||||
|
||||
|
ok when i last knew it was some thing like this to be able to send an e-mail to more than one e-mail address
Code:
<input type="hidden" name="" value="" /> but i can't remember what the rest of it was. |
|
#6
|
||||
|
||||
|
We already know what a hidden field is (thanks for the lesson, Mrs. Wormwood!)
</sarcasm> That isn't really of much help |
|
#7
|
||||
|
||||
|
well thats all i can remember, hopefuly some one will know it.
|
|
#8
|
||||
|
||||
|
why not just submit your form to an ASP script that will process your form and mail it to the email addresses you specify? Are you stuck using the HTML mailto: ? IF that's the case them just type action="mailto:me@mydoman.com,someone@elsewhere.com" in the form tag.
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
|
#9
|
||||
|
||||
|
no am using a 3rd party e-mail form and i have been able to send it to more than 1 person using the hidden type before.
|
|
#10
|
||||
|
||||
|
Quote:
VERY quickly then: Code:
<form id="frmMail" method="post" action="sendMail.asp" enctype="multipart/form-data"> <!-- Rest of your form elements here, such as from email, to email, subject, body, etc... --> <input type="hidden" name="hidEmail" id="txtEmail1" value="email-at-domain-dot-com;email2-at-domain2-dot-com" /> </form> SendMail.asp Code:
<%@PAGE Language="VBScript" %>
<%
Dim strMessage, strFrom, strTo, strSubject
strMessage = Trim(Request.Form("txaMessage"))
strTo = Trim(Request.Form("hidEmail"))
strFrom = Trim(Request.Form("txtFrom"))
strSubject = Trim(Request.Form("txtSubject"))
strTo = Replace(strTo, "-at-", "@")
strTo = Replace(strTo, "-dot-", ".")
Dim objCDO
Set objCDO = Server.CreateObject("CDO.Message")
With objCDO
.To = strTo
.From = strFrom
.TextBody = strMessage
.Subject = strSubject
.Send()
End With
Set objCDO = Nothing
Response.Write("Message sent successfully to " & strTo)
%>
Last edited by 1337_d00d : November 21st, 2004 at 04:51 PM. |
|
#11
|
||||
|
||||
|
sounds like you're probably using FormMail which I personally despise but if you need it then you need it. There should exist a ton of documentation that came with the script.
|
|
#12
|
||||
|
||||
|
Quote:
no am using an e-mail script from http://bravenet.com |
|
#13
|
||||
|
||||
|
Quote:
huh??? me dumb....lol |
|
#14
|
||||
|