y tengo phpmailer y si funka
lo ke kiero hacer es integrar el phpmailer kn el kodigo ke tengo
este es el kodigo del script
Código PHP:
Ver original
$headers = "De:$email \nContent-type: text/html\n"; $sub = "[VALIDACION FLOG - $login]"; $enviar = " <html> <head> </head> <body> <p><font face=\"Verdana\" size=\"1\"> <hr> .:: Fotolog :: El Desván ::.<br> Usted solicitó un registro en el sitio <b>$url_site</b><br> Para concluir su registro es necesario ingresar en la siguiente URL :<br><br> <a href = \"$url_site/$login/$pag\">$url_site/$login/$pag</a> <br> <hr> Este es un mensage automático, no lo responda!<br> $url_site!<br> </font></p> </body> </html>"; br(); echo "Ocurrió un error al enviar el email de validación. Por favor, contacte con el administrador - [email protected]"; br(); "Su email de validación fue enviado correctamente a su email - $email"; br(); "Cuando reciba el email, clique el link para validar su login."; br(); } }
y este es el kodigo del phpmailer
Código PHP:
Ver original
<?php require_once 'class.phpmailer.php'; $mail = new PHPMailer (); $mail -> FromName = "SkAr"; $mail -> Subject = "Test"; $mail -> Body = "<h3>From GMail!</h3>"; $mail -> IsHTML (true); $mail->IsSMTP(); $mail->Host = 'ssl://smtp.gmail.com'; $mail->Port = 465; $mail->SMTPAuth = true; $mail->Password = '*****'; if(!$mail->Send()) { echo 'Error: ' . $mail->ErrorInfo; } else { echo 'Mail enviado!'; } ?>
o como debo configurar el php.ini para usar el sevicio de gmail