change email "from" and "to"
Posted: 05 Sep 2014, 16:17
When an user write the contact form ( ../contact-us ) of Open Real Estate
the message is sent only to the the admin mail.
How can i change the "mailfrom" and "mailto" settings in order to send a message to the agency and the user too?
I read the
../protected/modules/notifier/components/Notifier.php
file and I don't know what i have to modify.
my admin mail is "siti@sererkreos.com"
and the webagency is "info@disandroimmobiliare.it"
thank you in advance for your help.
the message is sent only to the the admin mail.
How can i change the "mailfrom" and "mailto" settings in order to send a message to the agency and the user too?
I read the
../protected/modules/notifier/components/Notifier.php
file and I don't know what i have to modify.
my admin mail is "siti@sererkreos.com"
and the webagency is "info@disandroimmobiliare.it"
- Code: Select all
if (param('mailUseSMTP', 1)) {
$mailer->IsSMTP();
$mailer->SMTPAuth = true;
$mailer->Host = param('mailSMTPHost', 'localhost');
$mailer->Port = param('mailSMTPPort', 25);
$mailer->Username = param('MYLOGIN'); // SMTP login
$mailer->Password = param('MYPASS''); // SMTP password
}
$mailer->From = param('adminEmail'); // info@disandro....
$mailer->FromName = param('mail_fromName', User::getAdminName()); // info@disandro....
$mailer->AddAddress($to); // info@disandro and the website user
thank you in advance for your help.