I am sorry to confuse you, Dan.

You said to put "[session mode active]" into a form. But for me this
will not work with the built-in mail functionality. I definitely have
to put "[session mailmode active]" into my form. Then sending emails
works. I don't see where the problem is in the code.

When you are using both the email plugin and the built-in email
functionality, then the confusion is when to use the prefix "mail",
the prefix "email" or no prefix at all:
mailmode or mode
emailsubject or subject
emailbody or body

My only concern was to use the same keywords for both the email plugin
and the built-in email functionality.

Have I shed enough light on this?

Regards, Markus

PS: I don't use Windows and on my web server email works perfectly
when I get the keywords right.

On Sep 24, 3:56 pm, The Editor <[email protected]> wrote:
> No, I'm talking about the core mail function as revised in version
> 3.14. I'm not sure what the confusion is Markus?
>
> Notice this bit of code--which was changed in 3.14:
>
>         if ($args['mode'] != 'active') {
>                 $body = str_replace("\n", '<br />', $body);
>                 $out = "<b>Mail is in demo mode:</b><br />To: $to<br />" .
> str_replace("\r\n", '<br />', $header) . "<p /><br />Subject:
> $subject<p />$body";
>                 return BOLTescape(preg_replace('/\@([-_a-z0-9.]+)/im', 
> '[email protected]', $out));
>                 }
>         else {
>                 $sent = mail($to, $subject, $body, $header);
>                 if (! $sent) return 'Your mail server is not properly 
> configured.
> Mail not sent.';
>                 $out = "Mail sent to $to$bcc.";
>                 return BOLTescape(preg_replace('/\@([-_a-z0-9.]+)/im', 
> '[email protected]', $out));
>
> This means if mode=active is not in your function string (or your form
> array) you get the demo mode. Else, you actually send the mail. Or try
> to.
>
> I'm confused.
>
> Note if you have windows, you will probably not be able to send any
> way unless you can figure out how to configure sendmail in it. I never
> have. You get the error message mail server not properly configured...
>  But it will work on your linux server. Is that what is happening
> here?
>
> As for the newsletter plugin, it may need to be upgraded. I'm looking
> at it briefly and will eventually get it into better sync with the
> core mail function. But I will probably change again how the html
> thing works. Along with the rss. I need a good systematic solution.
> And then will likely get the newsletter plugin up to speed to do the
> same thing.
>
> Cheers,
> Dan
>
>
>
> On Thu, Sep 24, 2009 at 7:57 AM, Markus <[email protected]> wrote:
>
> > Dan, now I understand why you talked about [session mode active]. You
> > were talking about the email extension. I was talking about the built-
> > in email functionality.
>
> > The syntaxes of both differ. If there is no reason against, I suggest
> > to use a common syntax. Be it "mailsubject" or just "subject".
>
> > Regards,
> > Markus
>
> > On Sep 24, 9:49 am, Markus <[email protected]> wrote:
> >> On Sep 24, 2:33 am, The Editor <[email protected]> wrote:
>
> >> > There was a change in how this works in 3.14 or 3.15 (forget which).
> >> > Now, to get it out of demo mode you must put mode=active in the
> >> > function or command. Ie
>
> >> > [(mail parmaters...  mode=active)]
>
> >> > or in a form
>
> >> > [session mode active]
>
> >> I think this must read: [session mailmode active]
>
> >> > This looks like it should be working as intended. Site.config Mailmode
> >> > is not used at all in the current release though there was a request
> >> > to restore this in some way. Plan to do this for the next release.
>
> >> > Cheers,
> >> > Dan
>
> >> > On Wed, Sep 23, 2009 at 6:23 PM, Markus <[email protected]> 
> >> > wrote:
>
> >> > > Hi,
>
> >> > > Some time ago, someone from the list mentioned he was not able to send
> >> > > mails. There seems to be a bug.
>
> >> > > In functions.php the following expression is not true even when you
> >> > > put "mailmode: active" in site.config:
>
> >> > > if ($args['mode'] != 'active') ## line 410
>
> >> > > Changing to "==" allows me to send mails. (A bad bug "fix" I know...)
>
> >> > > Regards, Markus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to