I currently use the basic PHP Email function, such as:
mail("sales@xyz.com","CATALOG REQUESTED","We have received a catalog request! \n \nNAME: $FNAME $LNAME \nADDRESS: $ADDRESS \nCITY: $CITY \nSTATE ZIP: $STATE $ZIP \nEMAIL: $EMAIL \nPHONE: $PHONE","From: Webmaster");
Now, I ned to have a SQL querry to email information from the database, a shopping cart to be exact. Can this be done.
An example of the body follows follows:
An order has been receievd!
Catalog Numberx Quantityx
Catalog Numbery Quantityy
Catalog Numberz Quantityz
etc
etc
etc