On Jan 12, 2004, at 11:23 AM, Michiel Meeuwissen wrote:
Daniel Ockeloen <[EMAIL PROTECTED]> wrote:See above there is a clear reason why it was done, i feel its alot better people are forced to fix their pages than have a buggy system esp. when mailing 1000+ people you don't want it unstable.
I never sent bulk-mail with the old one. Only just one mail, normally from a
form on the site to an editor or so. Mailing 1000+ people at once never even
came up in my mind :-)
Worked just fine.
Most of the time yes not all of the time, and its true most only used it for 1 email (heavy
overkill) but that was not what even the old emailbuilder was about. It was allways
about more hightech stuff like mailing related users and groups, dynamic emails...
Can you give (perhaps again) a quick rewrite of the code I exampled in my
mail. Just to get it optimally clear how (little) involving your hack will
be on existing jsp's.
See below.
The new examples and docs are not clear ?, the old had timing problems.
- A legacy builder is included or reasons are provided why not.
I think its better we don't since the new one supports the old way (except for the little change in the way you mail). The old one is buggy and i for one won't fix it (see the vote on it).
And it also may not stay in 1.7 for at least one release more? I want that
everybody who uses the email-builder now realizes well what that means!
We use the email-builder only on a few spots I think, so I will not block
this non-backwards-compatible change. But I would like to call also
non-commitors to vote on this (even though their vote will not be actually
counted, it will give an idea).
Again this is a grey area, i can include the old one no problem but personally
feel its better for people to add the '3' extra lines.
Sure only the last 3 lines are new, you know call a function (still old way but new way should also work
when functions are done) to send it away. T
<!-- from example1.jsp -->
<!-- create the email node -->
<mm:createnode id="mail1" type="email">
<mm:setfield name="from">[EMAIL PROTECTED]</mm:setfield>
<mm:setfield name="to">[EMAIL PROTECTED]</mm:setfield>
<mm:setfield name="subject">my first mmbase mail !!</mm:setfield>
<mm:setfield name="body">Just testing email</mm:setfield>
</mm:createnode>
<!-- send the email node --> <mm:node referid="mail1"> <mm:field name="mail(oneshot)" /> </mm:node>
Only last 3 lines are new, This is also alot more inline with the more complex examples
for example like sending it to a whole group :
<!-- from example4.jsp -->
<!-- create the email node -->
<mm:createnode id="mail1" type="email">
<mm:setfield name="from">[EMAIL PROTECTED]</mm:setfield>
<mm:setfield name="subject">test mmbase email</mm:setfield>
<mm:setfield name="body">Tralala</mm:setfield>
</mm:createnode>
<mm:node id="group1" number="groups.testgroep" />
<mm:createrelation source="mail1" destination="group1" role="related" />
<!-- start the mailer but return directly (background mailing) -->
<mm:node referid="mail1">
<mm:field name="startmail(oneshot)" />
</mm:node>
This example also creates a thread in the background so people can't press 'stop' in their
browser (mail vs startmail). We use this to mail several mailing lists each week upto a few 1000 people.
Ive asked for some extra time from submarine to include a example to create a simple mailing list with
a nice editor etc etc if they agree ill include that in the 1.7 email app.
I do btw not find it a strange demand that some legacy stuff is included, to
ease transistions.
I have only left out the functions that where really broken and as far as i know unused by
99% of the people. Its replaced by examples and things alot more
people will use like simple mailing lists.
Michiel
Daniel.
