Advertisement
Guest User

Untitled

a guest
Sep 8th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.03 KB | None | 0 0
  1. <?php
  2. ini_set('display_errors', 'off');
  3. error_reporting(E_ALL);
  4. define('COMP_EMAIL', 'yourcompanyemail'); // company email
  5. define('MAIL_METHOD', 'SMTP'); // SMTP or PHPMAIL (PHP Mail Function)
  6. define('SMTP_SERVER', 'ssl://smtp.gmail.com'); // SMTP server
  7. define('SMTP_USER', 'cecileenterprise@gmail.com'); // SMTP username
  8. define('SMTP_PASSWD', 'thesispamore2018'); // SMTP password
  9. define('SMTP_ENCRYPTION', 'off'); // TLS, SSL or off
  10. define('SMTP_PORT', 465); // SMPT port number 587 or default
  11. define('COMP_NAME', 'Your Company Name'); // company name
  12. define('MAIL_TYPE', 1); // 1 - html, 2 - txt
  13. define('MAIL_DOMAIN', 'yourdomain.com'); // company domain
  14.  
  15.  
  16.  
  17. // do not edit
  18. $subject = COMP_NAME . " [" . $formname . "]";
  19. $template = 'template';
  20. $to_name ='ansellim23@gmail.com';
  21. $from_email = 'ansellim23@gmail.com';
  22. $from_name = 'Message From Your Site';
  23. $attachments = array();
  24.  
  25. // testing here
  26. $testform = false;
  27. if($testform){
  28.     $to_email   = array('youremail');
  29. }else{
  30.     $to_email   = array('ansellim23@gmail.com');
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement