chiark / gitweb /
Online registration now sends email. The confirmation URL doesn't
authorrjk@greenend.org.uk <>
Sat, 29 Dec 2007 18:54:16 +0000 (18:54 +0000)
committerrjk@greenend.org.uk <>
Sat, 29 Dec 2007 18:54:16 +0000 (18:54 +0000)
commitbb6ae3fb80fff36cd342d6f6bff3dfabd7dd243e
tree7e76f4c4e4c42725bc99fed3ec1cbe05863a568d
parent86be0c3098d8e27807bc618126b8babfe7f93928
Online registration now sends email.  The confirmation URL doesn't
work yet.  The mail comes from mail_sender which MUST be configured.

sendmail() sends mail via the SMTP server specified in the config
file.  The default is localhost.  inputline() is extended to cope with
CRLF-flavored protocols.

local_hostname() returns the FQDN of the local host (assuming you
didn't screw up your /etc/hosts).

mime_encode_text() and mime_to_qp() prepare text/* messages for
sending in mail.
14 files changed:
lib/Makefile.am
lib/configuration.c
lib/configuration.h
lib/hostname.c [new file with mode: 0644]
lib/hostname.h [new file with mode: 0644]
lib/inputline.c
lib/inputline.h
lib/mime.c
lib/mime.h
lib/sendmail.c [new file with mode: 0644]
lib/sendmail.h [new file with mode: 0644]
lib/test.c
server/dcgi.c
templates/login.html