HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 20th, 2004, 01:13 PM
Borgis1's Avatar
Borgis1 Borgis1 is offline
The Death Merchanter | RS
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 295 Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 5 h 17 m 10 sec
Reputation Power: 16
Send a message via MSN to Borgis1 Send a message via Yahoo to Borgis1
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??

Reply With Quote
  #2  
Old November 20th, 2004, 01:20 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
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?

Reply With Quote
  #3  
Old November 20th, 2004, 02:03 PM
Borgis1's Avatar
Borgis1 Borgis1 is offline
The Death Merchanter | RS
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 295 Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 5 h 17 m 10 sec
Reputation Power: 16
Send a message via MSN to Borgis1 Send a message via Yahoo to Borgis1
na the code am looking for is a hidden type thing for the form.

Reply With Quote
  #4  
Old November 20th, 2004, 02:32 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
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

Reply With Quote
  #5  
Old November 20th, 2004, 03:59 PM
Borgis1's Avatar
Borgis1 Borgis1 is offline
The Death Merchanter | RS
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 295 Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 5 h 17 m 10 sec
Reputation Power: 16
Send a message via MSN to Borgis1 Send a message via Yahoo to Borgis1
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.

Reply With Quote
  #6  
Old November 20th, 2004, 05:03 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
We already know what a hidden field is (thanks for the lesson, Mrs. Wormwood!)

</sarcasm>

That isn't really of much help

Reply With Quote
  #7  
Old November 20th, 2004, 05:10 PM
Borgis1's Avatar
Borgis1 Borgis1 is offline
The Death Merchanter | RS
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 295 Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 5 h 17 m 10 sec
Reputation Power: 16
Send a message via MSN to Borgis1 Send a message via Yahoo to Borgis1
well thats all i can remember, hopefuly some one will know it.

Reply With Quote
  #8  
Old November 21st, 2004, 11:37 AM
shamrog12's Avatar
shamrog12 shamrog12 is offline
Newton's Apple Wizard
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 1,661 shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 2 h 39 m 22 sec
Reputation Power: 34
Send a message via AIM to shamrog12
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.


Reply With Quote
  #9  
Old November 21st, 2004, 01:14 PM
Borgis1's Avatar
Borgis1 Borgis1 is offline
The Death Merchanter | RS
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 295 Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 5 h 17 m 10 sec
Reputation Power: 16
Send a message via MSN to Borgis1 Send a message via Yahoo to Borgis1
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.

Reply With Quote
  #10  
Old November 21st, 2004, 04:38 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
Quote:
Originally Posted by Borgis1
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.
*sigh*

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.

Reply With Quote
  #11  
Old November 21st, 2004, 05:04 PM
shamrog12's Avatar
shamrog12 shamrog12 is offline
Newton's Apple Wizard
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 1,661 shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 2 h 39 m 22 sec
Reputation Power: 34
Send a message via AIM to shamrog12
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.

Reply With Quote
  #12  
Old November 21st, 2004, 08:45 PM
Borgis1's Avatar
Borgis1 Borgis1 is offline
The Death Merchanter | RS
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 295 Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 5 h 17 m 10 sec
Reputation Power: 16
Send a message via MSN to Borgis1 Send a message via Yahoo to Borgis1
Quote:
Originally Posted by shamrog12
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.

no am using an e-mail script from http://bravenet.com

Reply With Quote
  #13  
Old November 21st, 2004, 08:47 PM
Borgis1's Avatar
Borgis1 Borgis1 is offline
The Death Merchanter | RS
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 295 Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level)Borgis1 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 5 h 17 m 10 sec
Reputation Power: 16
Send a message via MSN to Borgis1 Send a message via Yahoo to Borgis1
Quote:
Originally Posted by 1337_d00d
*sigh*

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)
   %>
   
   

huh??? me dumb....lol

Reply With Quote
  #14  
Old November 21st, 2004, 09:05 PM
shamrog12's Avatar
shamrog12 shamrog12 is offline
Newton's Apple Wizard
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 1,661 shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)