Jump to content

I have a form that's being submitted to email via php.

 

When sending the form through this:   mail($to,$emailSubject,$emailBody,$headers);   it sends.

 

When testing with:

if(mail($to,$emailSubject,$emailBody,$headers)) {
echo "Form has been successfully submitted!";
} else {
echo "ERROR IN FORM SUBMISSION!";
}
 
It sends a duplicate copy. Anyone know how to help?
Link to comment
https://linustechtips.com/topic/1050746-php-ifmail-test-sends-another-email/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×