Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!
$mailheader = 'Thank you for your interest in xyz. \n\n"; $mailfooter = "Please do not reply to this message as it is sent from an automated system. If you wish to contact us for any reason, please visit our web site at etc etc"."\r\n"; $mailcombined = $mailheader.$mailfooter; $mail = new PHPMailer(); $mail->IsSMTP(); // send via SMTP $mail->Host = $mailhost; // SMTP servers $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = $mailusername; // SMTP username $mail->Password = $mailpassword; // SMTP password $mail->From = $mailfrom; $mail->FromName = $mailfromname; $mail->AddAddress("firstname.lastname@example.org"); $mail->WordWrap = 50; // set word wrap $mail->IsHTML(true); // send as HTML $mail->Subject = $mailsubject; // $mail->Body = "body"; $mail->Body = $mailcombined; $mail->AltBody = $mailcombined; $mail->Send();
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.