php mail() function
Posted on 2010-08-30
I have a question regarding the php mail() function. I have attached my php code that will process the Order and send it out. It works just fine, but what happens if you put another mail() function in this code?
In this example, we have two different companies that handle our yard signs and decal signs. If the customer wants yards signs it goes to firstname.lastname@example.org and if the customer wants decals then it goes to email@example.com. Is this possible with another mail() function and an if statement?
I want to be able to keep the orders separate - I don't want firstname.lastname@example.org receiving orders for decals and vice versa.