Viewing file: sendgrid_mail.php (771 B) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method");
header("Access-Control-Allow-Methods: GET, POST");
// your sendgrid api key
define( 'SENDGRID_API_KEY', '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' );
// from email address
define( 'FROM_EMAIL', 'support@srishticampus.com' );
// from name
define( 'FROM_NAME', 'Srishti Campus' );
// to email address
define( 'TO_EMAIL', 'srishticampusteam@srishtis.com' );
// to name of user you are sending the email to
define( 'TO_NAME', 'Srishti Campus' );
// require composer autoload so we can use sendgrid
require 'sendgrid/vendor/autoload.php';
?>
|