<commit_before><?php
/**
* This section ensures that Twilio gets a response.
*/
header('Content-type: text/xml');
echo '<?xml version="1.0" encoding="UTF-8"?>';
echo '<Response></Response>'; //Place the desired response (if any) here.
/**
* This section actually sends the email.
*/
$to = "xxxxx@xxxxxxx"; // Your email address.
$subject = "Message from {$_REQUEST['From']}";
$message = "You have received a message from {$_REQUEST['From']}.";
$message .= "To listen to this message, please visit this URL: {$_REQUEST['RecordingUrl']}";
$headers = "From: <EMAIL>"; // Who should it come from?
mail($to, $subject, $message, $headers);<commit_msg>updating with using google mail<commit_after><?php
 require 'PHPMailerAutoload.php';
    $mail = new PHPMailer;
    $mail->IsSMTP(); // telling the class to use SMTP
    $mail->Host       = "mail.domain.com"; // SMTP server
    $mail->SMTPDebug  = 2;                     // enables SMTP debug information (for testing)
                                               // 1 = errors and messages
                                               // 2 = messages only
    $mail->SMTPAuth   = true;                  // enable SMTP authentication
    $mail->SMTPSecure = "tls";                 // sets the prefix to the servier
    $mail->Host       = "smtp.gmail.com";      // sets GMAIL as the SMTP server
    $mail->Port       = 587;                   // set the SMTP port for the GMAIL server
    $mail->Username   = "<EMAIL>";  // GMAIL username
    $mail->Password   = "<PASSWORD>";            // GMAIL password
    $mail->addAddress('xxxxxxx.co.jp', 'support');

     $mail->isHTML(true);
    $mail->Subject = "link to Audio File {$_REQUEST['From']}";

// The HTML-formatted body of the email
    $mail->Body    = "To listen to this message, please visit this URL:{$_REQUEST['RecordingUrl']}";

// The alternative email body; this is only displayed when a recipient
// opens the email in a non-HTML email client. The \r\n represents a 
// line break.
    $mail->AltBody = "Email Test\r\nThis email was sent through the 
    gmail SMTP interface using the PHPMailer class.";

  if(!$mail->send()) {
    echo 'Email not sent.';
    echo 'Mailer Error: ' . $mail->ErrorInfo;
  } else {
    echo 'Email sent!';
  }
{'fraction_non_alphanumeric': 0.14602751886373724, 'fraction_numerical': 0.0039946737683089215, 'mean_word_length': 2.4412213740458015, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 1, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1099221', 'n_tokens_mistral': 660, 'n_tokens_neox': 651, 'n_words': 222}