The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

http-forward Version 1.0 by Marc Sebastian Pelzer

DESCRIPTION

This plugin forwards the mail via HTTP to a specified server. The email header will be send as HTTP POST parameter 'mailheader' and the email body will be send as HTTP POST parameter 'mailbody' (both are URL-encoded).

This plugin needs to be before all other queue plugins in the file config/plugins - otherwise it will not be processed! So it should look like:

queue/http-forward http://test.org/bla.pl queue/smtp-forward localhost 2525

if you want HTTP delivery of your email before sending it via SMTP to a local mailer.

CONFIG

It takes one required parameter, the IP address or hostname to forward to.

  queue/http-forward http://www.test.org/cgi-bin/queuemail.cgi

  queue/http-forward http://www.test.org/cgi-bin/queuemail.cgi?myparams=1&b=2&c=3

  queue/http-forward https://username:password@www.test.org/cgi-bin/queuemail.cgi?itsme=true

Optionally you can also add a port:

  queue/http-forward http://www.test.org/cgi-bin/queuemail.cgi 8080

If you have installed the appropriate SSL libraries, you can also do calls to a HTTPS url. Also, basic HTTP AUTH is supported (see example HTTP URL above). You can also add your own POST parameters to the url which will be looped through. Make sure that you URL-encode your values!