
Solid, safe website tools.
Whatever your need, Will Bontrager builds powerful software solutions.
If you don't find the answer to your question in these archives, ask your CGI question at the Current Master Series CGI Forum.
Does this page provide information you can use?
How can it be improved?
Your comment is anonymous.
When done typing, click anywhere outside the box. [more info]
| Author | Message |
|---|---|
| 2May02 Chris |
Subject: CC and BCC for MasterWebPageMailer Is it possible to add CC and/or BCC features to MasterWebPageMailer? It'll sure come in handy when you send the page to a lot of people. Even just BCC will do fine. How about it Will? |
| 2May02 Will |
In response to: CC and BCC for MasterWebPageMailer Chris, if you already know the destinations, you can insert this at line 237 of the script (below the line that prints the "To:" header). print MAIL "Cc: name1\@domain.com,name2\@domain.com\n"; Note that a comma separates multiple addresses and that there is a backslash in front of "@" characters. Also, "Cc" can be changed to "Bcc" if you wish. On the other hand, if you want the form user to insert the addresses, your form field might be: More destinations? List them separated with a comma: And this code can be inserted into the script at line 237: $In{cclist} =~ s/\s/gs; The above will strip out any white space from that form field, and removes any leading and trailing commas. Then, if there is a "@" left in the line it will attempt to mail to the list provided in the form field. |