Thanks for the feedback.
Looking forward to any guidance regarding this.
With Regards - Jaime
-----Original Message-----
From: Jonathan Stowe [mailto:jn...@ge...]
Sent: Tuesday, 17 August 2004 7:57 PM
To: NMS-CGI-Support
Cc: Jaime; NMS Devel
Subject: Re: [Nms-cgi-support] TFMail features
On Tue, 2004-08-17 at 12:00, Dave Cross wrote:
> On Tue, Aug 17, 2004 at 11:42:34AM +0100, Jonathan Stowe wrote:
> > On Tue, 2004-08-17 at 03:52, Jaime wrote:
> > > I wanted to have a 'Recommend Sites' form for people to recommend
> > > the websites to their friends.
> > >
> > > It will have a predefined message to be sent to the recommended
> > > friends' email.
> > >
> > > The sender will specify the receiver's email in the form.
> > >
> > > Can TFMail do it? If yes, are there any examples?
> >
> > TFmail (as well as NMS FormMail) is specifically designed NOT to be
> > able to send e-mail to arbitrary addresses specified by a web user, if
> > it were able to do this then it could be used as a gateway for spam.
>
> Ah, but if it was a "predefined message" then that would be ok
> wouldn't it? Or am I missing something?
It would be a change to TFmail but you could have predefined messages
sent to arbitrary people by adding a recipient_field item to the
configuration, if this is present then ALL user supplied fields (except
perhaps email ) are turned off in the templates and the only form fields
that TFMail will do anything with are the defined recipient field and
the _config - this could work for a "recommend this page" type
application I guess. For this kind of thing (as I have usually seen
them anyway) you would probably want the ability to send a 204 ('No
Content') status rather than a success page. If I get bored later I
might take a look at this.
/J\
|