A basic example ( emails.txt ):

This is best if you only need the email addresses and no other information.

When a user subscribes, append their email to a TXT file on your server (ensure proper locking to avoid corruption):

When you save a file as "UTF-8 with BOM," the first three characters of the file (  ) are invisible but present. If your first email is john@doe.com , the server sees it as invalid.

john.doe@example.com, John, Doe jane.smith@workplace.org, Jane, Smith Use code with caution.