I have added content into a database. In the action page I am trying to 1. add the content into the db (this works fine) 2. Send an automatic email telling the administer what has been added to the database.
I get no errors, but the email portion is not working:
Here is my SQL and CFM code:
------------Code---------------------
<CFIF IsDefined("FORM.sumbit_mailer">
<CFMAIL TO="pread@heine.com, eott@heine.com" FROM="Administrator@heine.com" SUBJECT="Process Loaner">
On #Form.InputDate#
<br>
NOTES:<br>
<br>
#Form.LoanNotes#
</CFMAIL>
<CFQUERY NAME="addLoaner" DATASOURCE="Loaner" DBTYPE="ODBC">
INSERT INTO Loaner
(InputDate,
QtyOnHand,
LocationID,
ManID,
ProdID,
LoanType,
LoanNotes)
VALUES
(#CreateODBCDate(NOW())#,
#QtyOnHand#,
#LocationID#,
#ManID#,
#ProdID#,
'#LoanType#',
'#LoanNotes#')
</CFQUERY>
</CFIF>
----------------End Code---------------
Thanks for the help,
Eric
I get no errors, but the email portion is not working:
Here is my SQL and CFM code:
------------Code---------------------
<CFIF IsDefined("FORM.sumbit_mailer">
<CFMAIL TO="pread@heine.com, eott@heine.com" FROM="Administrator@heine.com" SUBJECT="Process Loaner">
On #Form.InputDate#
<br>
NOTES:<br>
<br>
#Form.LoanNotes#
</CFMAIL>
<CFQUERY NAME="addLoaner" DATASOURCE="Loaner" DBTYPE="ODBC">
INSERT INTO Loaner
(InputDate,
QtyOnHand,
LocationID,
ManID,
ProdID,
LoanType,
LoanNotes)
VALUES
(#CreateODBCDate(NOW())#,
#QtyOnHand#,
#LocationID#,
#ManID#,
#ProdID#,
'#LoanType#',
'#LoanNotes#')
</CFQUERY>
</CFIF>
----------------End Code---------------
Thanks for the help,
Eric