Skip to content

rnavroze/aiesec-automatic-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aiesec-automatic-email

Setup

  1. Create libraries/init.php with the following code:
<?php
$db = new mysqli('<SQL SERVER>', '<SQL USERNAME>', '<SQL PASSWORD>', '<SQL DATABASE>');
  
if ($db->connect_errno > 0)
  	die('Unable to connect to database [' . $db->connect_error . ']');
  
define('ENV', "<dev> if development, <prod> if production");
date_default_timezone_set("Asia/Kolkata"); // Change this 
define('MANDRILL_API_KEY', "<MANDRILL API KEY>");
  1. Import tables.sql.
  2. Create a file in libraries/expa/apilogin.php with the following code:
<?php
$un = "EXPA_LOGIN_USERNAME";
$pw = "EXPA_LOGIN_PASSWORD";
  1. Create a blank file libraries/expa/token.txt.
  2. Create a blank folder called html/ in root for HTML file uploads. Make sure this file is writeable by PHP.
  3. Put cron_sendemail.php on a CRON job.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published