Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: MacGig on August 30, 2020, 11:29:44 AM

Title: save forum users emails to a file?
Post by: MacGig on August 30, 2020, 11:29:44 AM
 id like to save users emails to a text file.... is their an easy way to do this? thanks. :)
Title: Re: save forum users emails to a file?
Post by: vbgamer45 on August 30, 2020, 11:35:20 AM
Easyiest way would be to grab them from the database
select email_address from smf_members
You can run that query via phpmyadmin
Title: Re: save forum users emails to a file?
Post by: Arantor on August 30, 2020, 01:02:19 PM
If it's to send everyone a newsletter, that's built in...
Title: Re: save forum users emails to a file?
Post by: MacGig on August 30, 2020, 01:42:04 PM
Quote from: vbgamer45 on August 30, 2020, 11:35:20 AM
Easyiest way would be to grab them from the database
select email_address from smf_members
You can run that query via phpmyadmin



can you give me more info? how would I do this? never have done it before. query the db.
Title: Re: save forum users emails to a file?
Post by: vbgamer45 on August 30, 2020, 01:44:34 PM
If you have cpanel you might have a phpmyadmin section
From there you would select the database. Then run the query or use the export option

Here is a video i found on phpmyadmin https://www.youtube.com/watch?v=JgAyGjcNrIQ
Title: Re: save forum users emails to a file?
Post by: MacGig on August 30, 2020, 04:14:40 PM
how would I do a query on how to save all emails to a txt file?  I know how to open the db in phpmyadmin and that is all I know how to do.
Title: Re: save forum users emails to a file?
Post by: vbgamer45 on August 30, 2020, 04:54:32 PM
select email_address from smf_members

Works I think they have an option to exprot to csv file.
Title: Re: save forum users emails to a file?
Post by: Sir Osis of Liver on August 30, 2020, 05:05:50 PM
Don't think you can export a column, but just export the table as csv and load it into spreadsheet, then you can do whatever with the data.
Title: Re: save forum users emails to a file?
Post by: Kindred on August 31, 2020, 09:09:08 AM
Sir Osis of Liver --   vbgamer just indicated how to do it for just a single column
Title: Re: save forum users emails to a file?
Post by: MacGig on August 31, 2020, 11:45:49 AM
csv worked. thanks.
Title: Re: save forum users emails to a file?
Post by: Sir Osis of Liver on August 31, 2020, 12:06:42 PM
Quote from: Kindred on August 31, 2020, 09:09:08 AM
Sir Osis of Liver --   vbgamer just indicated how to do it for just a single column

Yes, I know, but that's using a query, not pma export.  Some folks are not up to running queries.  Couple ways of doing same thing.