Hey Stephen, I see. I'm also not totally fond of setting a From: header to something I don't know in advance, still, need to do it.
Do you have any hint how to modify the logic? I'd like to disable the form_processor but don't see how to do it cleanly. Thanks, Enrico On 13/05/14 22:34, Stephen McDonald wrote: > This used to be the default behaviour, but changed as this form of "faking" > didn't work with many smtp gateways, and was considered bad form. At that > point we changed it to just set the "reply-to" header of the email. Right > now you're best off just modifying those few lines yourself. > > > > > > On Wed, May 14, 2014 at 3:39 AM, Enrico Tröger <[email protected]>wrote: > >> Hi guys, >> >> I need your help: >> >> on a customers site, I built a simple contact form using >> mezzanine.forms. Now the customer wants that in the generated mail the >> From: header is set to the email address entered in the contact form by >> the visitor. >> >> I had a look in mezzanine.forms.page_processors.form_processor() and >> the information would be available by FormForForm.email_to(). >> So I could change a few lines to replace the email_from to email_from >> in the "email_copies" block. >> >> The question is, how do I accomplish this best? >> So far, I didn't find a clean way to override or disable this >> page_processor to add a custom one for form processing. >> >> Any ideas? >> >> Of course, I could simply write a custom app which provides this >> functionality (rendering a contact form and process the response) but >> I'm just curious whether there is a "Mezzanine way" :). >> >> >> Regards, >> Enrico >> >> -- >> Not sent from my smartphone. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Mezzanine Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >>
signature.asc
Description: OpenPGP digital signature
