<?php$to=$_POST['email'];
$subject="Email Subject";
$message='Dear '.$_POST['name'].',<br>';
$message.="We welcome you to be part of family<br><br>";
$message.="Regards,<br>";
// Always set content-type when sending HTML email$headers="MIME-Version: 1.0"."\r\n";
$headers.="Content-type:text/html;charset=UTF-8"."\r\n";
// More headers$headers.='From: <enquiry@example.com>'."\r\n";
$headers.='Cc: myboss@example.com'."\r\n";
mail($to,$subject,$message,$headers);
?>
<?phprequire'PHPMailerAutoload.php';
$mail=newPHPMailer;
//$mail->SMTPDebug = 3; // Enable verbose debug output$mail->isSMTP(); // Set mailer to use SMTP$mail->Host ='smtp1.example.com;smtp2.example.com'; // Specify main and backup SMTP servers$mail->SMTPAuth =true; // Enable SMTP authentication$mail->Username ='user@example.com'; // SMTP username$mail->Password ='secret'; // SMTP password$mail->SMTPSecure ='tls'; // Enable TLS encryption, `ssl` also accepted$mail->Port =587; // TCP port to connect to$mail->setFrom('from@example.com', 'Mailer');
$mail->addAddress('joe@example.net', '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');
$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name$mail->isHTML(true); // Set email format to HTML$mail->Subject ='Here is the subject';
$mail->Body ='This is the HTML message body <b>in bold!</b>';
$mail->AltBody ='This is the body in plain text for non-HTML mail clients';
if(!$mail->send()) {
echo'Message could not be sent.';
echo'Mailer Error: '.$mail->ErrorInfo;
} else {
echo'Message has been sent';
}
<?phprequire_once('class.phpmailer.php');
$mailer=newPHPMailer();
$mailer->IsSMTP();
$mailer->SMTPDebug =1;
$mailer->Port =587; //Indica a porta de conexão $mailer->Host ='smtplw.com.br';//Endereço do Host do SMTP $mailer->SMTPAuth =true; //define se haverá ou não autenticação $mailer->Username ='smtplocaweb'; //Login de autenticação do SMTP$mailer->Password ='Gwb9etA323'; //Senha de autenticação do SMTP$mailer->FromName ='Bart S. Locaweb'; //Nome que será exibido$mailer->From ='remetente@email.com.br'; //Obrigatório ser
a mesma caixa postal configurada no remetente doSMTP$mailer->AddAddress('destinatario@email.com','Nome do
destinatário');
//Destinatários$mailer->Subject ='Teste enviado através do PHP Mailer
SMTPLW';
$mailer->Body ='Este é um teste realizado com o PHP Mailer
SMTPLW';
if(!$mailer->Send())
{
echo"Message was not sent";
echo"Mailer Error: ".$mailer->ErrorInfo; exit; }
print"E-mail enviado!"?>
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems
resetting your password contact us
Check Your Email and Click on the link sent to your email