Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reply_to replying only to the DEFAULT_FROM_EMAIL #58

Open
M-ario opened this issue Oct 31, 2017 · 1 comment
Open

reply_to replying only to the DEFAULT_FROM_EMAIL #58

M-ario opened this issue Oct 31, 2017 · 1 comment

Comments

@M-ario
Copy link

M-ario commented Oct 31, 2017

Hi,

I have an issue with (reply_to). It is always replaying to the DEFAULT_FROM_EMAIL, but not to the email inserted by the user into the contact form.

Could you please provide an example of what should be changed to the original installation?

I`m using Django 1.8.18 and cmsplugin-contact-plus 1.2.12

Thanks in advance,

Mario

@walterrenner
Copy link
Contributor

Set the CONTACT_PLUS_REPLY_EMAIL_LABEL to let's say my_email and now create a contact from with a field called my_email. Whatever the user enters into this fiels will be set as the Reply-To Header.

Here is the relevant code:

try:
reply_email_label = getattr(settings, 'CONTACT_PLUS_REPLY_EMAIL_LABEL', None)
if reply_email_label is not None:
tmp_headers.update({'Reply-To': self.cleaned_data[reply_email_label]})

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

No branches or pull requests

2 participants