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:
To send an email just insert a row into the table, example:
Changing all the stuff from habsay to your hotel name is your job, not mine.
Images:
UPDATE;
add this at the top of init.php set_time_limit(0);
or just edit your php ini.
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:
You must be registered for see links
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:
Gonna spice it up with an HTML editor at some point, but for now its basic.
UPDATE;
add this at the top of init.php set_time_limit(0);
or just edit your php ini.