Results 1 to 7 of 7

Thread: Add email adresses automatically to mailing list

  1. #1
    Join Date
    Mar 2012
    Posts
    3

    Add email adresses automatically to mailing list

    Hi,

    is there any way I can automatically add email adresses to a direct admin mailing list (from php, database or some other way)?

    If this isn't possible, can you guys help me how to create/use another mailing list for a newsletter?

    thanks

  2. #2
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    For add address i suppose you need to read majordomo documentation.

    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  3. #3
    Join Date
    Mar 2012
    Posts
    3
    allright, i checked out majordomo doc, but i really cant understand that xD

  4. #4
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    Cant help on that, im not a majordomo expert, but im sure can be done via email, try ask on a majordomo forum. Here im not sure how many can reply to you correctly

    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  5. #5
    Join Date
    Mar 2012
    Posts
    3
    k, tnx anyway

  6. #6
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    Hello,

    Anything is possible depending on what level of access do you have on the server, and how much good you are in PHP/SSH scripting, or you should have enough money to pay someone, who has enough knowledges and experience to do it for you.

    The simplest way it would be either to add an email address into majordomo list (a file with a list) of subscribers with the help of a script, or send an email with your script to majordomo address in order to subscribe a new user.

    Quote Originally Posted by larsvhw1 View Post
    Hi,

    is there any way I can automatically add email adresses to a direct admin mailing list (from php, database or some other way)?

    If this isn't possible, can you guys help me how to create/use another mailing list for a newsletter?

    thanks

    p.s. Feel free to send me PM in order to get a commerce server from me.
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  7. #7
    Join Date
    Jun 2007
    Location
    California
    Posts
    498
    You can do it with or without root shell access to your server. With root access it's easiest: You'll need to extract the email addresses into a file located at: /etc/virtual/DOMAIN-NAME/majordomo/lists/LIST-NAME

    For example, if the name of our list is mylist@example.com, the file location will be:

    /etc/virtual/example.com/majordomo/lists/mylist

    Note that if you want to keep any of the addresses that are already on the list you'll have to append to the file. You can even do a merge as well, not copying in addresses you already have, depending on your PHP skills.

    If you don't have root access to the server you'll need to create the list and then paste it into the DirectAdmin mailing list interface, or you can send an email to majordomo.

    If this is a one-time project, just have your php program create a list of addresses, one line each, and then manually paste the output into your DirectAdmin mailing list interface. If you're going to be doing this more than once it may be a good idea to write a php program which will create an email and send it to majordomo as follows:

    [code]From: YOUR ADDRESS
    To: majordomo@example.com[code]
    With the body as followed (one line per address you're adding):
    Code:
    approve PASSWORD subscribe LISTNAME EMAIL-ADDRESS
    where PASSWORD is the list's administration password, LISTNAME is the name of the list (i.e., mylist, and EMAIL-ADDRESS is the email address you're adding.

    If this is something you can't figure out how to do yourself then I and/or others can do it for you; check the Advertising sub-forum here and you'll see lots of people willing to help you as a commercial service. If contacting me please use my email address rather than a private message for fastest response.

    If you're using Majorodmo (the list manager included in DirectAdmin by default) then you may want to see the List-owner-info file which the creators of majordomo have published. You can get a generic copy of it (not customized for your list) here (nobaloney.net).

    Depending on your needs you may decide to use a more sophisticated mailing list. For an announce list there are some good solutions available in either Installatron or one of the other one-click installers if installed on your server. For a discussion list you might want to look at Mailman.

    Jeff
    Serving the DirectAdmin community since 2003
    See Additional posts under user nobaloney

    directadmin@nobaloney.net +1 951 643-5345
    Contract DirectAdmin administration and support
    Dedicated Servers, Dedicated Reseller Accounts
    http://www.nobaloney.net
    NoBaloney Internet Services div. Qnito Incorporated
    848 North Rainbow Blvd., Suite #3789
    Las Vegas, NV 89107-1103

Similar Threads

  1. Replies: 4
    Last Post: 02-03-2010, 05:10 AM
  2. Replies: 3
    Last Post: 12-19-2006, 08:44 PM
  3. Replies: 2
    Last Post: 01-07-2005, 06:58 AM
  4. Misspelling in Email Mailing Lists View List
    By finlayj in forum Feedback & Feature Requests
    Replies: 1
    Last Post: 03-17-2004, 11:23 AM
  5. Mailing List/Majordomo won't delete list subscriber
    By finlayj in forum User-Level Difficulties
    Replies: 8
    Last Post: 11-18-2003, 01:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •