Back on the list...

I got this working with help from Dan...

I already had an aboutus page.

So I created an aboutus.contactus page with the following:

! Contact Form

[if equal '{sitemail}' '']You must register a site email address on your
site config page to use this form.

[else]Please use the form below to send us your message:

<box>
[form][t]
[r]
[c width=100px]Your Email:
[c][text from "{~email}" size=40]
[r]
[c]Subject:
[c][text subject size=40]
[r]
[c top]Message:
[c][box body rows=6 cols=35][box]
[r]
[c]
[c right][submit "SEND MAIL"]
[t]
[session to "{sitemail}"]
[session mail]
[form]
</box>
[if]

The key was the site.auth.mail page!!

I edited site.auth.mail and added:

aboutus.contact: @guest

and I can now send email from admin, any logged in user and any guest user
which was the primary purpose.

UPDATED BOLTWIRE PAGE:

I've added the site.auth.mail info to the boltwire site page

http://boltwire.com/index.php?p=docs.concepts.mail

QUESTIONS... of course...

I have three questions about expanding the form.

I thought that I could add something like

[session nextpage=aboutus]

just after the [session mail] so that after submission, it would go to the
aboutus page....  however I either misunderstood what it does or it didn't
work.

I could not find a good example of how the nextpage worked.

Also, I would like to add additional info to the email that is not
necessarily provided by the visitor.

1) the ability to add the IP and hostname (via the plugin web_visitor_info)
so that when the email is sent, that info is included.

ex...

IP: {wv-remote_addr} [{wv-remote_host}]

2) I would like to add to the subject unique text so that I know where it is
coming from.  If the user enters in Subject:  Looking for help, have the
subject end up being sent as something like

Subject: WebForm - Looking for help

3) lastly, the email verification example on the Boltwire site didn't work.
Is there a working example. While not actually verifying the email address,
at least the format could be validated.

--

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