Guest User

Untitled

a guest
Dec 22nd, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <a href="path of zip file" download> Download </a>
  2.  
  3. $url = $templete_url .'download_theme/theme.zip';
  4. $link = "<p><a href='$url' >Download</a></p>";
  5.  
  6. require 'PHPMailer/PHPMailerAutoload.php';
  7. $mail = new PHPMailer;
  8. $mail->IsSMTP(); // Set mailer to use SMTP
  9. $mail->Host = 'smtp.gmail.com'; // Specify main and backup server
  10. $mail->Port = 587; // Set the SMTP port
  11. $mail->SMTPAuth = true; // Enable SMTP authentication
  12. $mail->Username = 'email'; // SMTP username
  13. $mail->Password = 'password'; // SMTP password
  14. $mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
  15. $mail->From = $email;
  16. $mail->FromName = '';
  17. $mail->AddAddress('Emaial address', 'Name'); // Add a recipient
  18. $mail->IsHTML(true); // Set email format to HTML
  19. $mail->Subject = 'Login Details';
  20. $mail->Body = $link;
  21. $mail->Send();
Add Comment
Please, Sign In to add comment