ok I use the mail function to send out a confirmation email after somebody ordered something at the store.
mail($email2,$subject, $MailMsg, $mailheaders);
mail("myname<my@me.com>",$subject, $MailMsg, $mailheaders);
the second one is working as it is a fixed email address, but the first one is not NOT working. I checked a thousand times if the variable is passed or not and it is, but simply the email is not sent out.
what is wrong with this?
thanks.