Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

[PROPOSAL] Add ReplyTo Email Address #18

Open
clemsy opened this issue Jun 12, 2019 · 0 comments
Open

[PROPOSAL] Add ReplyTo Email Address #18

clemsy opened this issue Jun 12, 2019 · 0 comments

Comments

@clemsy
Copy link

clemsy commented Jun 12, 2019

For a general contact form,

in MainController, action Index

                if(!is_null($mail_owner)) {
                    $ownerMail = $mailer->compose($mail_owner, ['model' => $form, 'params' => $params])
                        ->setSubject($form->getSettings()->mail_subject_owner)
                        **->setReplyTo([$form->email])**
                        ->setTo($form->getSettings()->mail_to);
                    // Save owner mail
                    $this->saveInDb($form, $ownerMail);
                    // Send owner mail
                    $ownerMail->send();
                }else{
                    $this->saveInDb($form);
                }

Would be a great improvement ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant