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',
'@xxxxx.xxx', $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',
'@xxxxx.xxx', $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
-~----------~----~----~----~------~----~------~--~---