Magento - custom form -
i have form, @ moment simple html based one, doesn't anything.
what i'm looking though, able send email once form has been submitted , save data database.
the problem comes, email sending. in form, there drop down menu. menu items items in suppliers model/module, have name , email address.
so, when select supplier a, form passes validation, needs send supplier email , save details (this shouldn't hard).
i'm not sure how i'd email address.
would need pass kind of parameter custom sendemail() method?
all appreciated.
thanks
update:
ok, before email part, i'd store data in table, named test drive.
i've created module in admin , form submit data on frontend end.
but cannot seem data insert.
all welcome
thanks
for sending email see mage_contacts_indexcontroller::postaction()
action or mage_sales_model_order::sendneworderemail()
if created module model, can instance of model, insert data , save or can create resourcemodel
, execute sql.
Comments
Post a Comment