Not sure right off, but here are a few things:

On Mon, Oct 19, 2009 at 11:51 PM, jacmgr <[email protected]> wrote:
>
> I am buggered again with email.  Just the basic simplest contact
> form.
>
> I notice in BOLTFmail line 360ish
>
> if (! BOLTexists('site.auth.mail') || ! BOLTauth($pageLink, $BOLTid,
> 'mail'))
> {
>
> Should that be site.auth.email or .mail ??

I think it should be mail, since the function name is mail. Just
rename site.auth.email to site.auth.mail.

> I changed it to site.auth.email and then Example 1 below works.  BUT
> EXAMPLE 2 does not work.
>
> My site.auth.email has 1 line
> contact_site: @guest
> which is the page where the form is.
>
>
> EXAMPLE 1:
> [(mail [email protected] subject=Hello body="hey there"
> mode=active)]
>
> I get a message:
> Mail authorization failed. Mail not sent.

This doesn't seem right. Shouldn't it pass with your settings?  Mine
does...  Are you sure the page is not action.contact_site or
something?

> EXAMPLE 2:
> [form]
> Name: [text name]
> Email: [text email]
> Message:
> [box cols=30 rows=4][box]
> [submit]
> [session subject "an email from my homepage"]
> [session to "{sitemail}"]
> [session mail mode=active]
> [session mode active]
> [form]
>
> I get no messages just "Form Processed" and no email is sent.

Couple possible problems...

1) Do you have the email or newsletter plugin? Both add a command
called email. Possibly this is getting triggered. Try changing [text
email] to [text from]. If you don't have a from, it gets assigned as
from {sitemail}

2) No field name for the box. You could call it body [box body cols=30
rows=4][box], to get some content in the output. The email must have
some body content--either via the form or a template.

3) You don't need mode=active in both places. If you want it in the
mail command, I'd put it all in quotes:  "mode=active", though
generally I would prefer the separate session field (ie, your second
to last line).

If you want to get messages back from the form, you may need to have
[session mail "msg=true"]. I've just started configuring a few of the
functions for system messaging and it may not be working 100% as
intended. In this case you have several layers of info transfer going
on. There could be a problem somewhere. Not sure. In my tests,
however, it seems to work with or without this.

Cheers,
Dan

P.S. Let me know if it is still not working after these tries. I'll dig deeper.

--~--~---------~--~----~------------~-------~--~----~
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