PHP Email server

Status
Not open for further replies.

Rain

c
Mar 13, 2015
558
243
Just a pretty basic email server i made for habsay. Thought i'd release it for people who want it.

Reason for making it:
Needed a way I could send emails from different sites easily, and edit the way it sends emails easily. Needed to send mass emails.

Why not just make a function and use it on all sub websites?
Because when you send an email to 300 people, the script will probably timeout.

It's currently setup with mail gun, but change it to suit yourself.

Download:

SQL for the table:
PHP:
DROP TABLE IF EXISTS `habsay_mail`;
CREATE TABLE `habsay_mail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(100) NOT NULL DEFAULT '',
  `from` varchar(100) NOT NULL DEFAULT '',
  `subject` varchar(150) NOT NULL DEFAULT '',
  `mail_body` text DEFAULT NULL,
  `sent` varchar(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=135 DEFAULT CHARSET=utf8;

To send an email just insert a row into the table, example:
PHP:
INSERT INTO `habsay_mail` (`username`, `from`, `subject`, `mail_body`) VALUES ('username the email is to', 'Senders username', '$email subject', 'email body');

Changing all the stuff from habsay to your hotel name is your job, not mine.

Images:
320173d66e90e329d599d9675f78b2c5.gif


Gonna spice it up with an HTML editor at some point, but for now its basic.
qip65GU.png

kq3IORq.png

yYPqE9g.png

92dMlVpTSFKL-UtwwT1RJw.png
 
UPDATE;
add this at the top of init.php set_time_limit(0);
or just edit your php ini.
 

Brad

Well-Known Member
Jun 5, 2012
2,319
992
Thread closed as download link is down, PM me with the new link and I'll re-open for you.
 
Status
Not open for further replies.

Users who are viewing this thread

Top