Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Setup mail server config
- */
- $to = "supporto@xeplorersmart"; $from = "supporto@xeplorersmart.com";
- //where we would like to send email
- $recipientEmail = 'supporto@xeplorersmart.com';
- $recipientName = 'supporto@xeplorersmart.com';
- //Address which will be visible in "From" field
- $fromEmail = 'supporto@xeplorersmart.com';
- $fromName = 'supporto@xeplorersmart.com';
- //Validation error messages
- $requiredMessage = 'Campo è obbligatorio';
- $invalidEmail = 'Email invalida';
- /**
- * Advanced configuration - no need to modify
- */
- require_once(dirname(__FILE__) . '/vendor/ctPHPMailer.php');
- $mail = new ctPHPMailer();
- //set your email address
- $mail->AddAddress($recipientEmail, $recipientName);
- $mail->SetFrom($fromEmail, $fromName);
- $debug = false; //if problems occur, set to true to view debug messages
- /**
- * For GMAIL configuration please use this values:
- *
- * $mail->Host = "smtp.gmail.com"; // SMTP server
- * $mail->Username = "mail@gmail.com"; // SMTP account username
- * $mail->Password = "yourpassword"; // SMTP account password
- * $mail->Port = 465; // set the SMTP port for the GMAIL server
- * $mail->SMTPSecure = "ssl";
- *
- * More configuration options available here: https://code.google.com/a/apache-extras.org/p/phpmailer/wiki/ExamplesPage
- */
- /**
- * SERVER CONFIG
- */
- /**
- * Config for SMTP server - uncomment if you don't want to use PHP mail() function
- **/
- /**
- * $mail->Host = "mail.yourdomain.com."; // sets the SMTP server
- * $mail->Username = "username"; // SMTP account username
- * $mail->Password = "password"; // SMTP account password
- * $mail->SMTPAuth = true; // enable SMTP authentication - true if username and password required
- * $mail->Port = 587; // set the SMTP port (usually 587, or 465 when SSL)
- * $mail->IsSMTP(); uncomment it to enable smtp
- * $mail->SMTPDebug = $debug ? 2 : 0; // debug messages - set debug to false on production!
- */
Add Comment
Please, Sign In to add comment