Login  Register

Signing up to a mailing list

Posted by Todd_Power on Dec 19, 2009; 6:01am
URL: https://support.nabble.com/Signing-up-to-a-mailing-list-tp4190455.html

What I want to do is create a form on my website that Nabble users and non-Nabble users can enter their email address into to subscribe to a mailing list. This is the code I have written so far:
<html>
<head>

<style type="text/css"> p {font-family:verdana;font-size:12px;} p2 {font-family:verdana;font-size:14px;font-weight:bold;} p3 {font-family:verdana;font-size:9px;} h1 {font-size:32px;color:#0a294f;font-variant:small-caps;text-align:center;} a{font-family:verdana;font-size:12px;color:#af2639;text-decoration:none;} a:hover{text-decoration:underline;} </style>
<script type="text/javascript"> function validate(nForm){ if (nForm['subscribers'].value == "") { alert('Please enter your email address'); return false; } alert('Thank you for subscribing'); return true; } </script>
</head>

<form method="post" target="_blank" action="http://n3.nabble.com/catalog/ManageSubscribers.jtp?forum=93800&tab=add" style="border: 3px solid rgb(207, 38, 45); padding: 2px 4px; width: 300px; background-color: rgb(240, 240, 240);" onsubmit="return validate(this)">
<input type="hidden" name="Action" value="Register" />

Mailing list

<p style="text-align:center;">Join the Rose Cottage mailing list</p>
<input type="hidden" name="action" value="save" />
<input type="hidden" name="forum" value="93800" />
<input name="subscribers" style="width:300px"></input>
<p style="text-align:center;">IMPORTANT<br/>Nabble will send an invitation to your email address<br />Please click the link to confirm your subscription<br /><br />
In the confirmation email, ensure you include the = sign in the link</p>
<div style="margin-top:1.4em;text-align:center;">
                <input type="submit" value="Subscribe"/>
        </div>
<br>
</form>
This works fine when I'm logged in as the owner of the mailing list. When I'm not logged in, I get told that I don't have authorisation to add users to the list. I understand that this is because the function on the website is designed for the admins and not for everyone else.

My question is, can I modify this form to allow users (Nabble and non-Nabble) to be able to add themselves to my mailing list?

Thanks,
Todd Power