phpmailer

Why php is sending email from localhost not from server using PHPMailer?

£可爱£侵袭症+ 提交于 2019-12-02 18:04:45
问题 I am using PHPMailer with SMTP to send email. First I just test it from my localhost and it's successfully sent email. But when I upload the same code to my service it's showing me following error without sending email; Error Message is : 2016-04-22 05:53:10 SMTP ERROR: Failed to connect to server: Connection refused (111) 2016-04-22 05:53:10 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting mail is not send I do not understand why it's showing me this error

stream_socket_enable_crypto() Error in php mailer

空扰寡人 提交于 2019-12-02 17:41:51
问题 i have Used PHP 5.3 and i have tried to send mail using php mailer LIBRARY.. but i got Error Warning: stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto in D:\xampp\htdocs\mail_check\mail\class.smtp.php on line 313 Mailer Error: SMTP connect() failed. $sendfrm_name = "xxxx"; $sendfrm_id = "ddsdsd@gmail.com"; $sendtoname = 'yyyy'; $sendto = 'yyyyyy@gmail.com'; $cc = ''; include("mail/PHPMailerAutoload.php"); include("mail/class.PHPMailer.php"); include(

Could not connect to SMTP host. Message could not be sent

纵饮孤独 提交于 2019-12-02 16:57:01
问题 When I sent email from server then it gives me two error - SMTP Error: Could not connect to SMTP host. Message could not be sent. Mailer Error: SMTP Error: Could not connect to SMTP host. I found many hints on another answers on Stack overflow but doesn't work. I tried port no 465/587/65. Even below code works proper on my local system If i set port 587. But in server, It doesn't work. require('class.phpmailer.php'); require('class.smtp.php'); $mail = new PHPMailer(); $mail->IsSMTP(); $mail-

How to specify the SMTP server in PHPMailer?

匆匆过客 提交于 2019-12-02 16:06:16
问题 I want to know how do I get a SMTP server to use PHPMailer to send automatic emails with my created email (email@mydomain.com). My webhost doesn't provide one. I brought my domain in OnlyDomains and my webhost is 000Webhost. <?php require './PHPMailer-master/PHPMailerAutoload.php'; $mail = new PHPMailer; $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = ''; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'noreply@mydomain

All E-mails goes to spam folder of GMail, Hotmail and other email providers using phpmailer

可紊 提交于 2019-12-02 13:32:49
Recently I have a problem on sending e-mail with PHP Mailer function. Every mail which I sent from my script is straight way goes to spam folder on GMail, HotMail and other mail providers. I have configured everythig with my domain name, password etc… Here is my PHP code: $message = " <html> <head> <title>Activation</title> </head> <body> <p>Hello moorthi , </p> <p>Thank you for Using My Mail Service <b><a href='http://www.mobilebeez.co.in/'>mobileBeez </a></b></p><br/> <p><b>mobileBeez Technologies<b><br>Chennai, India.</p> <p><a href='https://www.facebook.com/mobileBeez'>https://www.facebook

stream_socket_enable_crypto() Error in php mailer

柔情痞子 提交于 2019-12-02 13:13:54
i have Used PHP 5.3 and i have tried to send mail using php mailer LIBRARY.. but i got Error Warning: stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto in D:\xampp\htdocs\mail_check\mail\class.smtp.php on line 313 Mailer Error: SMTP connect() failed. $sendfrm_name = "xxxx"; $sendfrm_id = "ddsdsd@gmail.com"; $sendtoname = 'yyyy'; $sendto = 'yyyyyy@gmail.com'; $cc = ''; include("mail/PHPMailerAutoload.php"); include("mail/class.PHPMailer.php"); include("mail/class.smtp.php"); $mail = new PHPMailer; $mail-> isSMTP(); $mail-> Host = 'smtp.gmail.com'; $mail->

Trying to send a responsive email using PHP mailer

限于喜欢 提交于 2019-12-02 12:55:44
I have a responsive email template in a php file and trying to send it with PHP mailer with no success. My code looks like this. $m = new PHPMailer; $m ->isSMTP(); $m->SMTPAuth=true; // debugging // $m->SMTODebug=1 // endof debug $m->Host="smtp.gmail.com"; $m->Username="example@gmail.com"; $m->Password="blahblah"; $m->SMTPSecure='ssl'; $m->Port=465; $m->isHtml(true); $m->Subject = 'Welcome to Efie'; $m->msgHTML(file_get_contents('functions/register-email.php'), dirname(__FILE__)); $m->FromName="Contact Form Efie"; $m->AddAddress($email,$fname); if($m->send()) { echo '<p class="errors bg

Is PHPMailer Secure

元气小坏坏 提交于 2019-12-02 10:23:11
I know this probably isn't an easy question but I'm developing several webforms and want a PHP library that I can use to send the mail and have it automatically sanitize the data. I was looking at PHPMailer which looked pretty simple to setup. Is PHPMailer a secure library to use to prevent my forms from being subject to SQL Injection/E-mail Injection / XSS, etc? I recognize nothing is 100% secure but I'm looking for an easy script to use without me having to sanitize the data. PHPMailer doesn't create/use any SQL itself, nor does it have anything to do with javascript, so it's secure on those

Godaddy phpmailer smpt configuration

微笑、不失礼 提交于 2019-12-02 10:22:00
We have a site on godaddy server. We have a contact form. When user filled form, first we should send mail to our info@oursite, after we should send mail to user's mail from our info@oursite. My tried code below: $name = $_POST['name']; $email = $_POST['email']; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPDebug = 2; $mail->port = 25; $mail->Host = 'localhost'; $mail->Username = 'username@example.com'; $mail->Password = 'password'; $mail->addAddress($email, $name); $mail->subject = 'Subject'; $mail->MsgHTML('mail içeriği'); if ($mail->Send()){ this outputs below: it seems mail

how to send mail using phpmailer on xampp

南笙酒味 提交于 2019-12-02 10:04:11
I have been trying to send a mail using php mailer on xampp and i do get this error saying Message could not be sent. Mailer Error: The following From address failed: xxxx2@gmail.com : Called Mail() without being connected please, i need help on how to fix this. Here is my code; <?php require( 'class.phpmailer.php' ); $mail = new PHPMailer; $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Host = "tls://smtp.gmail.com"; $mail->Port = 25; $mail->Username = "xxxx@gmail.com"; $mail->Password = "xxxxx"; //Sending the actual email $mail->setFrom('xxxx2@gmail.com', 'Aaron'); $mail->addAddress('xxxx2