Add Email-Check Logic
Budget: $30 – $250 USD
I’m running a legacy PHP 5.x script that simply mails whatever the user submits. I want to insert one extra branch in that flow:
• If the incoming string already contains an “@”, keep the current mail() behaviour exactly as is.
• If it does not, write the content to a flat file inside a fixed directory instead of sending the message. I’ll give you the exact file-name pattern to follow.
Each time the flat-file route is taken, log the event in MySQL: store the current timestamp, the raw user input, the full file path you just generated, plus an additional field you’ll fetch from an existing table that identifies the case involved. I’ll point you to the column and provide sample data.
No frameworks—pure PHP that matches the existing code style. Deliver the modified script, the MySQL table-creation statement, and a short README so I can drop everything into production and test in minutes.
• If the incoming string already contains an “@”, keep the current mail() behaviour exactly as is.
• If it does not, write the content to a flat file inside a fixed directory instead of sending the message. I’ll give you the exact file-name pattern to follow.
Each time the flat-file route is taken, log the event in MySQL: store the current timestamp, the raw user input, the full file path you just generated, plus an additional field you’ll fetch from an existing table that identifies the case involved. I’ll point you to the column and provide sample data.
No frameworks—pure PHP that matches the existing code style. Deliver the modified script, the MySQL table-creation statement, and a short README so I can drop everything into production and test in minutes.
Related categories:
PHP
JavaScript
Software Architecture
MySQL
Email Handling
Scripting
Web Development
Database Management