Sie sind auf Seite 1von 3

$mail = new PHPMailer(true);

try {

//Server settings

$mail->SMTPDebug = 0; // Enable verbose debug output

$mail->isSMTP(); // Set mailer to use SMTP

$mail->Host = 'elite1568.inmotionhosting.com'; // Specify main and backup SMTP


servers

$mail->SMTPAuth = true; // Enable SMTP authentication

$mail->Username = 'no-reply@condonesduo.com'; // SMTP username

$mail->Password = 'y]%t0*}+*6i@'; // SMTP password

$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also


accepted

$mail->Port = 587; // TCP port to connect to

//Recipients

$mail->setFrom('no-reply@condonesduo.com', 'Mailer');

$mail->addAddress($email, 'Joe User'); // Add a recipient

// $mail->addAddress('ellen@example.com'); // Name is optional

//$mail->addReplyTo('info@example.com', 'Information');

//$mail->addCC('cc@example.com');

//$mail->addBCC('bcc@example.com');

//Attachments

//$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments

//$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name

//Content

$mail->isHTML(true); // Set email format to HTML

$mail->Subject = 'Here is the subject';


$mail->Body = '<div><img src="http://geometry.com.co//duo/sex-
guardian/assets/banner/banner.jpg"></div><div><center><h2>Recuperación de
Contraseña</h2></center><br><br><div><div><p>Estimados: <b>'.$nombre.'</b>,</p><br><p>Su
usuario es:</p><b>'.$email.'</b><br /><p>Su Contraseña es:</p>'.$email.'<br /></div><p>El
Equipo DUO Protege tus sensaciones.</p><div><p>“<b>CONFIDENCIAL – DUO Sex-Guardian</b>,
La información contenida en este mensaje es confidencial y sólo puede ser utilizada por la persona
a la cual está dirigido. Si usted no es el receptor autorizado, cualquier retención, difusión,
distribución o copia de este mensaje está prohibido y será sancionado por la Ley. Si por error
recibe este mensaje, favor borre el mensaje recibido inmediatamente”.</p><b>Este email se ha
generado automáticamente. Por favor, no conteste a este email</b></div></div></div>';

$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';

if($mail->send()){

return ["status"=>"OK","email" => $email,"respuesta"];

}else{

return ["status"=>"error","email" => $email,"respuesta"];

} catch (Exception $e) {

// echo 'Message could not be sent.';

// echo 'Mailer Error: ' . $mail->ErrorInfo;

<div>

<img src="http://geometry.com.co//duo/sex-guardian/assets/banner/banner.jpg"
class="imagen">

</div>

<div>
<center>

<h2>Recuperación de Contraseña</h2>

</center>

<br>

<br>

<div class="ajuste">

<div class="ajuste1">

<p>Estimados: <b>{{ $nombre }}</b>,</p>

<br>

<p>Su usuario es:</p>

<b>{{ $email }}</b>

<br />

<p>Su Contraseña es:</p>

<b>{{ $messages }}</b>

<br />

</div>

<p>El Equipo DUO Protege tus sensaciones.</p>

DisplayMetrics metrics = new DisplayMetrics();


getActivity().getWindowManager().getDefaultDisplay().getMetrics(metrics);
android.widget.LinearLayout.LayoutParams params =
(android.widget.LinearLayout.LayoutParams)
simpleVideoView.getLayoutParams();
params.width = metrics.widthPixels;
params.height = metrics.heightPixels;
params.leftMargin = 0;
simpleVideoView.setLayoutParams(params);

Das könnte Ihnen auch gefallen