WebFaction
Community site: login faq

I'm setting up a mailing list on my Webfaction server, and I want a form on my website by which users can sign up their email address for my mailing list.

I can't find much on the subject except for this thread: http://forum.webfaction.com/viewtopic.php?id=113

Is this really to be interpreted to mean that it is impossible for users to sign themselves up for my mailing list via a web form that I design (as opposed to a page whose template I cannot control)?

For reference, I'm using Django for web development. In the worst case, can I just have Django run a bash script which adds the user to the mailing list?

asked 19 Jan '11, 23:34

klein4
112
accept rate: 0%


Hi, You can always use a solution like http://pypi.python.org/pypi/django-newsletter/0.2.1 for managing the mailing list.

Hope that helps!

permanent link

answered 19 Jan '11, 23:44

neeravk
1.5k3412
accept rate: 41%

Thanks for the feedback!

That's a possibility, but as it says in that project's docs:

One feature currently untested is actually sending mail to very large numbers of recipients (1000+)

Since I need to set up large mailing lists, this really isn't ideal, and may even put undue load on the server.

Does anyone know if there is a better solution? What about having Django run a bash script as I suggested above?

(20 Jan '11, 03:49) klein4
1

The only other solution you can use is if you send an email on behalf of the user from your script that processes confirmed subscribers to the Mailman subscribe address.

(20 Jan '11, 04:31) neeravk

Can you elaborate on that alternative solution?

Does the fact that Webfaction's mailserver enforces "From" addresses preclude that? i.e., I couldn't send a confirmation email to mailman from the user's email address.

(20 Jan '11, 04:58) klein4

Our mail server does not enforce a "From" address (though it does provide a default fallback, if there is no explicitly specified sender). Take a look at the following examples of sending messages out via scripts with a custom sender address: http://docs.webfaction.com/user-guide/email.html#sending-mail-from-an-application

(20 Jan '11, 05:08) tie

I guess the reason I thought there is a restriction is because, in your Django configuration docs http://docs.webfaction.com/software/django/getting-started.html#configuring-django-to-send-email-messages it says:

NOTE The email addresses entered for SERVER_EMAIL and DEFAULT_FROM_EMAIL must be set up in the control panel.

If this is a restriction set by your mail server, then how could I auto-generate emails to mailman from the user's address?

(20 Jan '11, 05:55) klein4
1

The restriction is a bit more complicated. If the domain name of the sender has email addresses created on our servers, then the sender's email address must be a valid email address (created on our servers). So, if you have email addresses under yourdomain.com created on our side, you can't send a message out from non-existing-address@yourdomain.com.

If the sender's domain is not hosted with us however (say gmail.com), then the email address would not need to be set up on our side.

In your case, this restriction would not get in the way as long as people are entering valid email addresses.

(20 Jan '11, 06:03) tie

Great to know. Thanks for the info!

(20 Jan '11, 07:47) klein4
showing 5 of 7 show 2 more comments
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×263
×5
×3
×2
×2

question asked: 19 Jan '11, 23:34

question was seen: 4,350 times

last updated: 20 Jan '11, 07:47

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM