0

Hi

Am trying to get email sending right from a form - am getting mighty confused!

the form has a field where the user enters their email.

I then want this form to goto these addresses:
users email - called $email below
conferences@domainOne
admin@domainTwo

Here's my php:

$email = htmlspecialchars(stripslashes(trim($_POST['clientEmail'])));
:
:
$to = 'conferences@domainOne, admin@DomainTwo,'.$email;
$subject = "Venue Booking ...." ;
$headers = "From: ".$email;
$message = "....";

mail ($to, $subject, $message, $headers))

The mail function is wrapped in an "if" statement...


My question is am I ok to set the header to $email AND have it in the $to list?

Thanks

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by itisnot_me
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.