php.help.please
- Started
- Last post
- 3 Responses
- mikeim
What do i need to add to this php scritp to have it send info to 2 email addresses?
http://www.atdesignstudio.com/ph…
thx.
- davetufts0
I would start by renaming the page with a '.php' extension (instead of '.html')
- davetufts0
and if you want to send it to multiple addresses, comma separate them:
$to = ,
mail($to, $subject, $message);
- enobrev0
i'v had multiple adresses i nthe to field mess up on occasion. A more reliable (and more private if it's going out) means is to make an array of addresses and send it to each.
$tos = array();
$tos[] = 'email1@domain.tld';
$tos[] = 'email2@domain.tld';foreach ($tos as $to_address) {
mail($to_address, ...);
}alsoinstead of making php html files, some server setups allow you to just add .phps (instead of .php) to a php file and it will actually show the code, color coded and all.