spoggles
asked on
php mail() function
Hello experts!
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 yardsigns@orders.com and if the customer wants decals then it goes to decals@orders.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 yardsigns@orders.com receiving orders for decals and vice versa.
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 yardsigns@orders.com and if the customer wants decals then it goes to decals@orders.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 yardsigns@orders.com receiving orders for decals and vice versa.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Perhaps I missed something, but I do not think this is a bulk email application.
Since you are only interested in sending a few emails, you might find that the PHP mail() command is easier to learn and use than PHPMAILER.
If you're one of the few remaining individuals who insist on sending his own bulk email, PHPMAILER might be useful. But I would choose Constant Contact over PHPMAILER any day. It's mostly a question of what your time is worth.
Anyway, this has been hanging out there for a while now. Please post back if you still have any questions.
bet regards, ~Ray
Since you are only interested in sending a few emails, you might find that the PHP mail() command is easier to learn and use than PHPMAILER.
If you're one of the few remaining individuals who insist on sending his own bulk email, PHPMAILER might be useful. But I would choose Constant Contact over PHPMAILER any day. It's mostly a question of what your time is worth.
Anyway, this has been hanging out there for a while now. Please post back if you still have any questions.
bet regards, ~Ray
ASKER
For the instant question, here is my sendOrder.php. What I want is to have the Decals orders go to decals@orders.com while the rest of the order goes to signs@orders.com. Ideally, I would not want the Decals to go to signs@orders.com and vice versa.
The problem I'm having is that I do not know how to branch off into another e-mail function while keeping it effective. The live webpage is located at: http://tuckertoolbox.com/signs
Open in new window