user-pic

Import email addresses into MT?

Vote 0 Votes

Does anyone have an easy way to import email addresses into MT for notifications? I'm thinking I can do this with myphpadmin but I haven't a clue on how to do it. I am hoping some of you have encountered this problem and could share some advice for how to get
the addresses in there.

The thought of entering in 250+ emails by hand every semester is making me ill.

Reported on Movable Type 4.2

4 Replies

| Add a Reply
  • A week and still no replies. :-(

    Perhaps no one else has a need for notifications within MT? I'd love to see a solution or a plugin for this. What would be better is if MT could just import a list of emails somehow.

    I wish I knew SQL so I could just create the sql and put it into MT myself, but I don't know how MT numbers the emails going into the database.

  • Okay after much testing and restesting this is what worked for me using a csv file and phpmyadmin. I only imported the blog ID and the email address. I realize you can also import name and URL as well but I didn't need to.

    Here's what I did:

    1) Create a .csv file with all of your email addresses in this format:
    blog id,email address

    so an example would be

    11,sam@sam.com
    11,joe@joe.com

    etc.

    You can use just about any spreadsheet application to create a CSV. I just used excel.

    2) Go the the main phpMyAdmin page.

    3) Next, click on the database that you are using for MT.

    4) Then, click on the table in the far left column called mt_notification. This is the table you want to import the data into.

    5) Click Import at the top of the page.

    6) Click browse to choose your .csv file

    7) In the section called 'Format of imported file' select CSV using LOAD DATA

    8) Change the following:
    Fields terminated by: , (thats a comma)
    Fields enclosed by: [remove default value and leave it blank]
    Fields escaped by:[remove default value and leave it blank]
    Lines terminated by: \r
    Column names: notification_blog_id,notification_email

    9) Click "go"

    10) When it is done importing, click "Browse" to check that everything worked.

    I would do a test file first with about 3 email addresses to make sure that it works before importing a huge list.

    I still don't know how to get mysql to put in a date and time for when the record was created but then again I'm not sure how necessary it is.

    Hopefully this will help anyone in need of importing large amounts of contact emails into MT for notifications!

  • Oops!
    my example should have read:
    11,sam@sam.com
    11,joe@joe.com
    11,george@george.com

    showing that 11 = blog id and the next part after the comma is the email address. Each line is followed by a carriage return.

  • Hi!

    Sorry for hijacking into your thread, but your discussion seems to imply that you how to do email notifications.

    Can you answer my question in

    http://forums.movabletype.org/2008/09/e-mail-notification---how.html

    ?

    Thanks,

    Steffen (clutching at any straws)

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012