Opened 4 years ago

Closed 21 months ago

#4421 closed change (invalid)

Migrate to "formmail2"

Reported by: kvas Assignee:
Priority: Unknown Milestone:
Module: Infrastructure Keywords:
Cc: matze Blocked By:
Blocking: #4413, #4422 Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):



See #4413. This is step 1.

What to change

The current configuration of the multiplexer for is as follows:

sitescripts.formmail.web.formmail =

To convert it to formmail2 we need to (a) change the configuration and (b) add the email template for sending the email to infrastructure (since formmail2 approach is that the template is part of the website and not part of sitescripts).

The new configuration would be as follows:

sitescripts.formmail.web.formmail2 =
contact-form.template=formmail/template/eyeo-contact-form.mail, email email address entered

The template should be placed into sitescripts/formmail/template/eyeo-contact-form.mail. It's content should be adapted to the way formmail2 passes the fields to the template:

Reply-To: {{(,|emailaddr|mime}}
Subject: {{fields.subject|mime}} (via Contact form)
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="UTF-8"

On {{time.strftime('%d/%m/%y %H:%M')}}, {{(,|emailaddr}} wrote:


Note: sitescripts autoupdates itself using Mercurial. This process adds a new file to a directory inside sitescripts. We need to make sure the autoupdate process would not touch this file.

Change History (3)

comment:1 Changed 4 years ago by kvas

  • Blocking 4422 added

comment:2 Changed 21 months ago by rhowell

Since we no longer use, this ticket is no longer relevant. Closing it.

comment:3 Changed 21 months ago by rhowell

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.