I have a html form that when filled out and submitted writes to a database and sends out an email to the admin at a dreamhost hosted website using php mail() of the data entered. I also grab the email of the person who filled out the form (which they supply) and try to send them the same email.
It seems to only generate the second email if the person who fills out the form uses gmail. Any other domain is ignored even though their email address is in the To: line of the email sent to the admin. Yet the user doesn’t get an email (unless they have a gmail account). So it seems…
php code is below and $clientemail is the email of the person who filled out the form.
$to = "firstname.lastname@example.org," .$clientemail;
How do I get the same email to the user who filled out the form AND the admin?