maggieroofus Posted May 30, 2005 Posted May 30, 2005 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. Quote
TweezerMan Posted May 30, 2005 Posted May 30, 2005 EmailVerificationSecret is a setting in your mt.cfg file: EmailVerificationSecretIf 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: >EmailVerificationSecret secretWord ...with whatever secret word you want to use. Quote
maggieroofus Posted May 30, 2005 Author Posted May 30, 2005 EmailVerificationSecret is a setting in your mt.cfg file: EmailVerificationSecretIf 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: >EmailVerificationSecret secretWord ...with whatever secret word you want to use. <{POST_SNAPBACK}> 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! Quote
maggieroofus Posted May 30, 2005 Author Posted May 30, 2005 EmailVerificationSecret is a setting in your mt.cfg file: EmailVerificationSecretIf 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: >EmailVerificationSecret secretWord ...with whatever secret word you want to use. <{POST_SNAPBACK}> 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. <{POST_SNAPBACK}> Never mind. I had it commented out. It seems to be working now Thank you! Edited by TCH-David to obscure e-mail address - don't want those pesky spam bots picking it up! Quote
maggieroofus Posted May 30, 2005 Author Posted May 30, 2005 EmailVerificationSecret is a setting in your mt.cfg file: EmailVerificationSecretIf 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: >EmailVerificationSecret secretWord ...with whatever secret word you want to use. <{POST_SNAPBACK}> 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 ... ><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> Quote
thejerm Posted May 30, 2005 Posted May 30, 2005 Just as a reference here is A Fully-Commented MT.CFG File with all the conditions that can be set. Quote
TweezerMan Posted May 30, 2005 Posted May 30, 2005 The problem is in the hidden redirect field for your form: ><input type="hidden" name="_redirect" value="<$MTBlogURL$>http://www.moonjuice.us" /> You shouldn't have your URL after the MTBlogURL tag: ><input type="hidden" name="_redirect" value="<$MTBlogURL$>" /> Quote
maggieroofus Posted May 30, 2005 Author Posted May 30, 2005 The problem is in the hidden redirect field for your form: ><input type="hidden" name="_redirect" value="<$MTBlogURL$>http://www.moonjuice.us" /> You shouldn't have your URL after the MTBlogURL tag: ><input type="hidden" name="_redirect" value="<$MTBlogURL$>" /> <{POST_SNAPBACK}> 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. Quote
TweezerMan Posted May 30, 2005 Posted May 30, 2005 YAY! It's working now. Thank you. <{POST_SNAPBACK}> Yay! You're welcome! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.