[pmwiki-users] emailform.php and copying the e-mail to the submitter

Nils knappmeier pmwiki at knappi.org
Fri Nov 9 03:24:29 CST 2007


Graham Archer schrieb:
> Hello,
>
> Is it possible to allow the submitter of an emailform (using 
> emailform.php) to
> be copied  the mail form they send? 
>   
I wouldn't suggest that, because this would allow spammers to abuse the
form arbitrarily.
With the current version, the mail-receiver is restricted to an adress
configured by the wiki administrator.
With your requested feature anyone could send arbitrary mail to anyone
via your mail server.
There is a good reason that open relays are put on blacklists and that
mailing-list engines always send a
mail with a confirmation code before subscribing someone.

However, if you really want to do it: Line 129

        $headers .= "From: $from\r\n";

sets the From-Header of the mail. If you add another line

        $headers .= "CC: $from\r\n";

just below the first one. This should put the sender on CC.


Nils




More information about the pmwiki-users mailing list