change email "from" and "to"

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

change email "from" and "to"

Postby kreos » 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"
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.
kreos
Stranger
 
Posts: 3
Joined: 05 Sep 2014, 16:00
Reputation point: 0

Re: change email "from" and "to"

Postby kreos » 10 Sep 2014, 02:46

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
kreos
Stranger
 
Posts: 3
Joined: 05 Sep 2014, 16:00
Reputation point: 0


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 34 guests