Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - TxtArea Problem!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TxtArea Problem!

 Post Reply Post Reply
Author
xavier View Drop Down
Groupie
Groupie


Joined: 23 December 2004
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote xavier Quote  Post ReplyReply Direct Link To This Post Topic: TxtArea Problem!
    Posted: 20 June 2005 at 12:20pm

hi guyz

it's been a while since i've posted in the forum.
but u know what guyz i have a problem.
 
i am writing a script to send mails
 
assuming i have a textarea for users to input emails seperated with a comma. it could more than five emails,
 
how do i write the script to send the mails to each email address in the txtarea?
Cry
onError GoTo Hell
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2005 at 12:42pm
Just plug the entire string entered by the user into the bcc field.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
solarfish View Drop Down
Newbie
Newbie


Joined: 28 May 2005
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote solarfish Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2005 at 5:21pm
Yes, but seperate with semi-colons instead of commas if using something like CDOSYS. One thing to watch out for though, some ISPs object to emails being sent with lots of bcc entries as this can be an indicator of spam. Another option is to us the SPLIT function to seperate the string into an array and then loop through the array sending individual emails. For example:
 
 
myArray = SPLIT(myList, ",")
 
FOR EACH eAddress in myArray
   ' code to send email
   .
   .
   mailto = eAddress
   .
   .
NEXT
 
Hope that makes sense
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2005 at 7:14pm
commas may work depending upon how your host set up the mail server. semi-colons always work.

If you're only sending to up to 5 addresses at a time, I don't think bcc will hurt.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
solarfish View Drop Down
Newbie
Newbie


Joined: 28 May 2005
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote solarfish Quote  Post ReplyReply Direct Link To This Post Posted: 22 June 2005 at 5:13am
Agreed, up to 5 addresses (I have seen 6+ blocked by an ISP) should be fine and it's certainly simpler than having to create and loop through an array. However the original poster said that there could be more than 5 addresses.
Back to Top
xavier View Drop Down
Groupie
Groupie


Joined: 23 December 2004
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote xavier Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2005 at 10:16am
thanks guyz
 
i really appreciate u guyz thanks a lot
 

Clap

onError GoTo Hell
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.