Topic: Email helper

I'm using the email template plugin (Or helper) and can't seem to get it to work when you try and send the form. I created the layout exactly as suggested in the document, only tweaking the HTML a bit for a different layout. But when I try to send the form it -

1- On my local copy it loads fail message but doesn't show any pop up message showing the fail. I can only tell by looking at the url.

2- On my web test server it tries to load www.testsite.com/contact/template.html, even though the site is actually in a sub folder. ie. www.testsite.com/wolfinstall.


How would I rectify this? Is it a permissions issue?

Thumbs up

Re: Email helper

This should help you. There is a working example in thread #12.

Wolf CMS Paper Guy
Wolf CMS related blog / journal at Project 79 | Wolf CMS Docs

Re: Email helper

Hmm... Not sure if that applies to this plugin.

I still can't get it to work. I was wondering though would this plugin be affected in any way if the site layout is a single page with a tabbed slider pulling info from the various pages in to separate sections?


EDIT: I removed the Success/Fail pages and the code referring to them. When it loads the template page I get an "Sending email failed - Bool (false)" error.

Last edited by kolorguild (2012-02-05 15:43)

Thumbs up

4

Re: Email helper

Have you tested to make sure that mail can be sent from that webhost?

You could use the Contact Me plugin, and see if it works. If it didn't, that might suggest the problem is with the hosting setup somewhere. If it does work, then it would be more likely that the problem is the Email Template plugin.

FWIW. hmm

Re: Email helper

Ok after spending the day battling to get a virtual mail server up and running to test this out locally I think I've figured out what the problem is.

I first used a simple script to automatically send an email as soon as the page loads and it worked great. I then tried the basic email helper from the wiki. That also worked.

Now this is where I think the  wheels start to fall off. When I tried the email helper that uses the within page or tabs layout it stopped working. I think it may have something to do with the fact that I am calling the page content from my pages to one layout with the find function and place them within a tabbed slider (Coda slider).

When I submit the form the page just reloads and I don't think it accesses the mail() function within the page. Now I think it has something to do with the form's action. In my mind the this->URL function won't work if I am using a find function to place the form. Am I right?

Thumbs up

Re: Email helper

Got it to work now. Had to create an ajax script to send the data without having to refresh the page. I know there is an Ajax form plugin but I couldn't get it to work last time I played with it. But at least I know now where the problem was. big_smile

Thumbs up

7

Re: Email helper

Thanks for the update: good to know what the problem was, and even better to know that you sorted it! cool

Re: Email helper

Haha... big_smile I think what was most frustrating was trying to get Postfix to work on my Ubuntu system to test out the mail function properly.

Thumbs up