![]() | | ||||||||||
| |||||||||||
| |||||||
| Notices |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| New Member ![]() Join Date: Jul 2008
Posts: 3
Credits: 0 ![]() | Hi guys, I would just like to know how to beable to submit a form to 2 email addresses. I am using a .php form and this is how my html coding goes with a single email address: $to = "address@email.com"; $from = $_POST['email']; $subject = "Website Enquiry"; Let me know, thanks! ___________________ conservatories Fruit Machines |
| | |
| | #2 |
| New Member ![]() Join Date: Sep 2008
Posts: 19
Credits: 0 ![]() | <?php $to = "address1@example.com"; $subject = "Message Subject"; $body = "Hello, \n\ Text Text text"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message 1 delivery failed...</p>"); } $to = "address2@example.com"; $subject = "Message Subject"; $body = "Hello, \n\ Text Text text"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message 2 delivery failed...</p>"); } ?> |
| | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |