I wrote a php email that sends me an email whenever a web form has been submitted. Good thing is that I recieve the email, but bad thing is that I get multiple emails (3x)... one is a duplicate of the table I receieve and another just shows the HTML styling...

Plus another problem is that the user doesn't recieve confirmation...
I will paste in my code if it is necessary!

okay, i fixed part 1 of my issue, I just need help with this part:

user doesn't recieve confirmation...

Can you just use echo to display a message to the user that the form was submitted successfully and Cc the user in your mail subroutine?

Well yes I could do that, but right now I want to email them a confirmation saying that we got their inquiry and show them what they submitted...

So how would i do that

php.net has various examples of code. You can either send multiple receipients in the 'to' field, or add an additional recipient as a cc.

http://php.net/manual/en/function.mail.php

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.