Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
2 answers
209 views

Scrape E-Mails using IMAP from cron

I have the following code which works great to do what it is meant to do. It scrapes the bodies of all e-mails in the inbox at an e-mail address using IMAP and retrieves the unique code sent inside ...
Dawson Irvine's user avatar
0 votes
1 answer
89 views

Reviews on a contact-us form

I tried my hand at a contact-us PHP script. I came up with the following. First the markup, then a little client-side validation and then the email script. I just need to know if this is usable code. ...
Neil Meyer's user avatar
4 votes
1 answer
746 views

Create a CSV from SQL Data and email as attachment using PHP

I put together some functions that allows a PHP script to send the SQL data obtained from user inputs on a website via an email attachment as a CSV file. It works perfectly and I have no issues with ...
Surfboard's user avatar
4 votes
2 answers
128 views

PHP Email List Sign Up

See my original post: here. I have one html page and four php files that allow users to sign up for an email list. One of the php scripts is a cronjob that deletes unverified rows older than 24 hours, ...
user avatar
3 votes
3 answers
349 views

Email Validation in PHP

Is this script sufficient enough to validate user email input? ...
user avatar
4 votes
1 answer
215 views

PHP - Saving inbound email and its attachment

I have the below code, which handles inbound emails in my application, saves the actual email content (text + attachments) to my database, and the saves the actual attachment files on the server. In ...
oliverbj's user avatar
  • 287
5 votes
2 answers
119 views

PHP password-resetting page

I am producing a PHP code and I want to implement it in my server to do its function. My question is, are there any vulnerabilities that I should correct? I tried to establish the session first then ...
helloworld's user avatar
2 votes
1 answer
241 views

PHP contact form script

I have created a contact form that originally did not have any mechanism for sending out the email with whatever the user inputted in the fields. I have added it in here along with ReCaptcha check. I ...
kynon's user avatar
  • 21
-2 votes
1 answer
108 views

My code is contain some vulnerabilities, how can i correct it and make it better

My code works well, but i still don't think it is well written. Can someone help to improve the code so as to get rid of vulnerabilities. My php code: ...
Eric's user avatar
  • 9
3 votes
2 answers
127 views

PHP email script

This is my first OOP script, a PHP email script designed for a site I'm working on: ndkutz(.)net. I want a user to be able to send an email to the barbershop owner from the website. I'm self taught ...
Rickie Knight's user avatar
1 vote
2 answers
3k views

Building a simple php Mail class

I am relatively new to OOP. I have an application that requires to send some emails from the server for various use cases. I have moved my code into a Mail class to try to abstract this out. Coming ...
Zach Smith's user avatar
4 votes
1 answer
124 views

WordPress contact form plugin PHP and WP_REST improvements

TL;DR This month I wanted to improve my WordPress knowledge and create a simple form that wasn't bloated with features but was secure. I wanted to make sure this plugin improved my knowledge of: ...
DᴀʀᴛʜVᴀᴅᴇʀ's user avatar
1 vote
2 answers
157 views

Validation before sending mail in PHP

In my initial problem posted on SO, whenever anyone accessed the Mail.php on the server, it used to send an empty email to the <...
Yash's user avatar
  • 167
1 vote
1 answer
124 views

Sending email notifications, each to a different set of subscribers

Here is a code which sends email notification on new comments. ...
Robert Brax's user avatar
2 votes
1 answer
1k views

Composing an HTML email body in PHP swiftmailer

The following code is what I'm using to send a password reset email. The specific part I'm referring to is how I'm setting $message. Would there be a cleaner way to ...
Joe Scotto's user avatar

15 30 50 per page