Page 1 of 1

change email "from" and "to"

PostPosted: 05 Sep 2014, 16:17
by kreos
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"
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.

Re: change email "from" and "to"

PostPosted: 10 Sep 2014, 02:46
by kreos
i have resolved
..thank you.
if you want to sell this product you must give a little support and create a good technical community.
sorry for my review.
best whishes