Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- kvs_mail($email,$subject,$body,$headers)
- {
- // code your gmail logic here
- require_once 'libs/class.smtp.php';
- require_once 'libs/class.phpmailer.php';
- $mail = new PHPMailer();
- $mail->isSMTP();
- $mail->SMTPSecure='tls';
- $mail->Host = $smtp_server;
- $mail->Port = 25;
- $mail->SMTPAuth = true;
- $mail->Username = $smtp_login;
- $mail->Password = $smtp_password;
- $mail->setFrom('alpha_one_x86@first-world.info', 'alpha_one_x86');
- $mail->addReplyTo('alpha_one_x86@first-world.info', 'alpha_one_x86');
- $mail->isHTML(false);
- $mail->addAddress($email,'');
- $mail->Subject = $subject;
- $mail->Body = $body;
- $mail->send();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement