Help - Search - Members - Calendar
Full Version: Mt Email Notifications Form
TotalChoice Hosting Family Forums > Scripting Central > Blogs > Movable Type
maggieroofus
I've added an email notification form to my site for updates but when I tested it I got this message ...

An error occurred:

Email notifications have not been configured! The weblog owner needs to set the EmailVerificationSecret configuration variable in mt.cfg.


Can anyone point me in the right direction to set this so people can use the form? I've been all over the MT configuration section and haven't seen it. Unless I'm looking in the wrong place.
TweezerMan
EmailVerificationSecret is a setting in your mt.cfg file:
QUOTE
EmailVerificationSecret
If you are exposing the mt-add-notify.cgi interface to users, allowing them to sign up for site update notifications, you should set this value to something that outsiders would not be able to guess. This allows Movable Type to secure the notification signup process so that visitors have to verify their email addresses.

If the EmailVerificationSecret is not present in your mt.cfg file, you just need to add it (it can be added anywhere - I'd add it to the bottom of the file). If it is present, make sure it is uncommented (does not have a "#" at the beginning of the line).

You'd configure the setting like this:
CODE
EmailVerificationSecret secretWord

...with whatever secret word you want to use.
maggieroofus
QUOTE(TCH-David @ May 30 2005, 05:10 PM)
EmailVerificationSecret is a setting in your mt.cfg file:
QUOTE
EmailVerificationSecret
If you are exposing the mt-add-notify.cgi interface to users, allowing them to sign up for site update notifications, you should set this value to something that outsiders would not be able to guess. This allows Movable Type to secure the notification signup process so that visitors have to verify their email addresses.

If the EmailVerificationSecret is not present in your mt.cfg file, you just need to add it (it can be added anywhere - I'd add it to the bottom of the file). If it is present, make sure it is uncommented (does not have a "#" at the beginning of the line).

You'd configure the setting like this:
CODE
EmailVerificationSecret secretWord

...with whatever secret word you want to use.
*



Well, that went well. Now I'm getting this error message when I try to test the form:

An error occurred:

You need to set the EmailAddressMain configuration value to your own email address in order to use notifications at lib/MT/App/NotifyList.pm line 36.

I went in and set the email address to xxxxxxxxxxxx@xxxxxxxxx.net which is the email address I have associated with MT. Not sure what I'm doing wrong now.

Edited by TCH-David to obscure e-mail address - don't want those pesky spam bots picking it up! wink.gif
maggieroofus
QUOTE(maggieroofus @ May 30 2005, 05:17 PM)
QUOTE(TCH-David @ May 30 2005, 05:10 PM)
EmailVerificationSecret is a setting in your mt.cfg file:
QUOTE
EmailVerificationSecret
If you are exposing the mt-add-notify.cgi interface to users, allowing them to sign up for site update notifications, you should set this value to something that outsiders would not be able to guess. This allows Movable Type to secure the notification signup process so that visitors have to verify their email addresses.

If the EmailVerificationSecret is not present in your mt.cfg file, you just need to add it (it can be added anywhere - I'd add it to the bottom of the file). If it is present, make sure it is uncommented (does not have a "#" at the beginning of the line).

You'd configure the setting like this:
CODE
EmailVerificationSecret secretWord

...with whatever secret word you want to use.
*



Well, that went well. Now I'm getting this error message when I try to test the form:

An error occurred:

You need to set the EmailAddressMain configuration value to your own email address in order to use notifications at lib/MT/App/NotifyList.pm line 36.

I went in and set the email address to xxxxxxxxxxxx@xxxxxxxxx.net which is the email address I have associated with MT. Not sure what I'm doing wrong now.
*



Never mind. I had it commented out. It seems to be working now smile.gif

Thank you!

Edited by TCH-David to obscure e-mail address - don't want those pesky spam bots picking it up! wink.gif
maggieroofus
QUOTE(TCH-David @ May 30 2005, 05:10 PM)
EmailVerificationSecret is a setting in your mt.cfg file:
QUOTE
EmailVerificationSecret
If you are exposing the mt-add-notify.cgi interface to users, allowing them to sign up for site update notifications, you should set this value to something that outsiders would not be able to guess. This allows Movable Type to secure the notification signup process so that visitors have to verify their email addresses.

If the EmailVerificationSecret is not present in your mt.cfg file, you just need to add it (it can be added anywhere - I'd add it to the bottom of the file). If it is present, make sure it is uncommented (does not have a "#" at the beginning of the line).

You'd configure the setting like this:
CODE
EmailVerificationSecret secretWord

...with whatever secret word you want to use.
*



Me again. I have another question. I seem to have it working. But when I click on the link that is sent in the verification email I get a "Page Cannot Be Displayed" message.

Here's the link in the email ...

http://moonjuice.us/mt//mt-add-notify.cgi?...ww.moonjuice.us

Could I possibly have some of the code wrong in the redirect line?

This is how I have it ...

CODE
<form method="post" action="<$MTCGIPath$>mt-add-notify.cgi">
<input type="hidden" name="blog_id" value="<$MTBlogID$>" />
<input type="hidden" name="_redirect" value="<$MTBlogURL$>http://www.moonjuice.us" />
<input name="email" size="20" />
<input type="submit" value="add" />
</form>
thejerm
Just as a reference here is A Fully-Commented MT.CFG File with all the conditions that can be set.
TweezerMan
The problem is in the hidden redirect field for your form:
CODE
<input type="hidden" name="_redirect" value="<$MTBlogURL$>http://www.moonjuice.us" />

You shouldn't have your URL after the MTBlogURL tag:
CODE
<input type="hidden" name="_redirect" value="<$MTBlogURL$>" />
maggieroofus
QUOTE(TCH-David @ May 30 2005, 05:38 PM)
The problem is in the hidden redirect field for your form:
CODE
<input type="hidden" name="_redirect" value="<$MTBlogURL$>http://www.moonjuice.us" />

You shouldn't have your URL after the MTBlogURL tag:
CODE
<input type="hidden" name="_redirect" value="<$MTBlogURL$>" />

*


YAY! It's working now. Thank you.

In the MT help section it made it sound like i needed to put the URL in there. Now that I know it reads differently.
TweezerMan
QUOTE(maggieroofus @ May 30 2005, 02:46 PM)
YAY!  It's working now.  Thank you.
*

Yay! smile.gif You're welcome! wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.