Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
0 Endorsements
Ranked #107.40K
Re:
Here is my code: require_once("PHPMailer/class.phpmailer.php"); $mail = new PHPMailer(); // set authentication $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = "tls"; $mail->Host = "smtp.gmail.com"; $mail->Post = 587; $mail->Username = "myemail@gmail"; $mail->Password = "myemailpassword"; // set From: $mail->SetFrom("myemail@gmail.com", "First Last"); // set To: $mail->AddAddress("adifferentemail@yahoo.com", "First Last"); // set Subject: $mail->Subject = "Subject"; // … |