Where can we set an email auto reply as soon as some one registers as a Vendor on the site
I am using v4.2.4 MVE
hi,
Please open file: app/controllers/frontend/companies.php and add the following code after " fn_set_notification('I', __('information'), $msg); "
Mailer::sendMail(array(
'to' => $data['email'],
'from' => 'default_company_users_department',
'data' => array(
// 'company_id' => $result,
'company' => $data
),
'tpl' => 'companies/request_apply_for_vendor_notification.tpl',
), 'A', Registry::get('settings.Appearance.backend_default_language'));
Also need create files:
/design/backend/mail/templates/companies/request_apply_for_vendor_notification_subj.tpl
with subject of letter, for example 'Request for apply for vendor' (recommend use language varable)
and /design/backend/mail/templates/companies/seller_apply_for_vendor_notification.tpl
for example, with following contents:
{include file="common/letter_header.tpl"}
{__("hello")} {$company.firstname},
YOUR TEXT
{include file="common/letter_footer.tpl"}
best regards,
WSA team
Thank you Damir (WSA-team) , this is what I wanted but I am confused
Why do we need these 2 files and what is the content of each file
[color=#282828][font=arial, verdana, tahoma, sans-serif]/design/backend/mail/templates/companies/request_apply_for_vendor_notification_subj.tpl[/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]and [/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]/design/backend/mail/templates/companies/seller_apply_for_vendor_notification.tpl[/font][/color]
Damir made a mistake. The correct names are:
[color=#282828][font=arial, verdana, tahoma, sans-serif]- design/backend/mail/templates/companies/request_apply_for_vendor_notification_subj.tpl[/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]- design/backend/mail/templates/companies/request_apply_for_vendor_notification.tpl[/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]The first one is used for subject, the another one is for e-mail body [/font][/color]
oh ok thank u guys u are so supportive.
technoob, you're welcome
p.s. eComLabs, thanks for correction