Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('display_errors', 'off');
- error_reporting(E_ALL);
- define('COMP_EMAIL', 'yourcompanyemail'); // company email
- define('MAIL_METHOD', 'SMTP'); // SMTP or PHPMAIL (PHP Mail Function)
- define('SMTP_SERVER', 'ssl://smtp.gmail.com'); // SMTP server
- define('SMTP_USER', 'cecileenterprise@gmail.com'); // SMTP username
- define('SMTP_PASSWD', 'thesispamore2018'); // SMTP password
- define('SMTP_ENCRYPTION', 'off'); // TLS, SSL or off
- define('SMTP_PORT', 465); // SMPT port number 587 or default
- define('COMP_NAME', 'Your Company Name'); // company name
- define('MAIL_TYPE', 1); // 1 - html, 2 - txt
- define('MAIL_DOMAIN', 'yourdomain.com'); // company domain
- // do not edit
- $subject = COMP_NAME . " [" . $formname . "]";
- $template = 'template';
- $to_name ='ansellim23@gmail.com';
- $from_email = 'ansellim23@gmail.com';
- $from_name = 'Message From Your Site';
- $attachments = array();
- // testing here
- $testform = false;
- if($testform){
- $to_email = array('youremail');
- }else{
- $to_email = array('ansellim23@gmail.com');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement