Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7691489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:38:11+00:00 2026-05-31T20:38:11+00:00

I have 50 newsletters which all have different email accouts, hex colour codes and

  • 0

I have 50 newsletters which all have different email accouts, hex colour codes and twitter accounts. Once the master one has been signed off, I need to copy this 50 times and change these details for each one.

What would be the best way to do this? I know PHP fairly well and also some command line.

At the moment, I can only think to do it the following way:
Create php script with database table values.
Each table row will have the newsletter name, email account, twitter and hex code.

The php script will then look at the name in the filepath (to get the newsletter name) query the database for this name and return the associated values back into variables.

Change the html to have variable place holder then (somehow!) echo out these values within a loop (for every row in the database) and save it as html.

This seems long winded and I am still unsure how to save the final versions as a .html within php.

Any better suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:38:12+00:00Added an answer on May 31, 2026 at 8:38 pm

    newsletter.php

    <?php
      include('changes.php');
      $changes = getchangesfor($argv[1]);
    ?>
    <html>
    <head>
    <title><?php echo $changes['title']; ?></title>
    </head>
    <body bgcolor="<?php echo $changes['bgcolor']; ?>">
    ...
    

    Command line:

    $ php newsletter.php somecustomerid > customer-XX-newsletter.html
    

    I think you can get the picture from this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to made a page which will send Email to Newsletter subscribers. There
I have got a table [newsletter] in the db, which saves the email address,
I have Email Newsletter on the Common Footer file whch is displayed all ove
i am coding Email newsletters. i have seen some guidelines regarding Good email coding..
If I have a list of of email accounts in a .txt file, is
Stupidly, I have sent out a newsletter without checking the links. One of which
i'm trying to keep a record of which customers have received which newsletters. I
I have a site.master page in which I need to collect a newsletter signup,
I have created a newsletter system that allows me to specify which members should
I have a custom report called my-newsletters in Google analytics. I want to fetch

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.