phpmailer

PHP on GoDaddy Linux Shared trying to send through GMAIL SMTP

我的梦境 提交于 2019-11-27 02:09:44
I have tried EVERY single script/code/method posted on StackOverflow and other sites for this, but with no luck. I am hosting on GoDaddy. I have setup a Google App account, set up everything needed for MX Records (using the GoDaddy tool for that), and even tried sending some emails from the GMAIL interface for my site, as well as through SMTP in terminal on one of my unix machines. It all worked. HOWEVER, when I try using PHP, it doesn't! Is it like GoDaddy blocking it somehow? I always receive: SMTP -> ERROR: Failed to connect to server: Connection refused (111) SMTP Error: Could not connect

PHPMailer generates PHP Warning: stream_socket_enable_crypto(): Peer certificate did not match expected

心已入冬 提交于 2019-11-27 00:56:41
I am using PHPMailer on PHP 5.6, the increased security around certificated in PHP 5.6 is certainly fun. I am trying to send a test message to a domain hosted on dreamhost, the error that comes back from PHPMailer is: Could not connect to SMTP host. That error is not right though, I have logging enabled and here is what is actually going on. Connection: opening to mx1.sub4.homie.mail.dreamhost.com:25, timeout=30, options=array ( ) Connection: opened S: 220 homiemail-mx32.g.dreamhost.com ESMTP C: EHLO s81a.ikbb.com S: 250-homiemail-mx32.g.dreamhost.com 250-PIPELINING 250-SIZE 40960000 250-ETRN

Cannot connect to GMail SMTP (PHPMailer) - Certificate Verify Failed

北战南征 提交于 2019-11-26 23:47:37
问题 Very recently encountered this error when trying to send mail via SMTP and GMail. Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in C:\xampp\htdocs\portal\libraries\php_mailer\class.smtp.php on line 343 2017-12-05 09:48:03 SMTP Error: Could not connect to SMTP host. 2017-12-05 09:48:03 CLIENT -> SERVER: QUIT 2017-12-05 09:48:03 SMTP ERROR: QUIT command failed:

phpmailer send gmail smtp timeout [duplicate]

会有一股神秘感。 提交于 2019-11-26 23:29:25
问题 Possible Duplicate: Having trouble with PHPMailer There are lots of similar questions , but none of them helped me. Here's my script which is provided in the phpmailer exmaples: require_once('../class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to use SMTP try {

PHP on GoDaddy Linux Shared trying to send through GMAIL SMTP

余生长醉 提交于 2019-11-26 22:14:04
问题 I have tried EVERY single script/code/method posted on StackOverflow and other sites for this, but with no luck. I am hosting on GoDaddy. I have setup a Google App account, set up everything needed for MX Records (using the GoDaddy tool for that), and even tried sending some emails from the GMAIL interface for my site, as well as through SMTP in terminal on one of my unix machines. It all worked. HOWEVER, when I try using PHP, it doesn't! Is it like GoDaddy blocking it somehow? I always

PHPMailer - gmail smtp not working properly

我的未来我决定 提交于 2019-11-26 21:53:11
问题 I use gmail smtp for contact form in my site.(PHPMailer script https://github.com/PHPMailer/PHPMailer‎) my code is: <?php include "classes/class.phpmailer.php"; // include the class name $mail = new PHPMailer(); // create a new object $mail->IsSMTP(); // enable SMTP $mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only $mail->SMTPAuth = true; // authentication enabled $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail $mail->Host = "smtp.gmail

PHPMailer AddAddress()

风格不统一 提交于 2019-11-26 20:24:19
I don't know how the data should be formatted for AddAddress PHPMailer function; I need the email to be sent to multiple recipients so I tried $to = "me@domain.com,you@domain.net,she@domain.it"; $obj->AddAddress($to); but with no success. Any help will be appreciated. doamnaT You need to call the AddAddress function once for each E-Mail address you want to send to. There are only two arguments for this function: recipient_email_address and recipient_name . The recipient name is optional and will not be used if not present. $mailer->AddAddress('recipient1@domain.com', 'First Name'); $mailer-

PHPMailer - mails going straight to spam

安稳与你 提交于 2019-11-26 20:22:27
问题 Whenever I send an automated e-mail using PHPMailer, it goes straight into the spam folder in Gmail. I have tried finding a solution to this myself but I don't know enough about e-mails and e-mail headers. Can anyone explain why this is happening? PHP Code is below, followed by the headers that show up from the receiver. Thanks! $mail = new PHPMailer; $mail->From = "chrisxenongroup@server.xenonacademy.org.uk"; $mail->FromName = 'Xenon Group Academy'; $mail->AddAddress($email); $mail->Subject

phpmailer and gmail SMTP ERROR: Failed to connect to server: Network is unreachable (101) SMTP connect() failed

时光毁灭记忆、已成空白 提交于 2019-11-26 17:19:10
问题 I need help please this is my code: require 'PHPMailerAutoload.php'; $mail = new PHPMailer; $mail->isSMTP(); $mail->Host = "smtp.gmail.com"; $mail->SMTPDebug = 2; $mail->SMTPAuth = true; $mail->SMTPSecure = "tls"; $mail->Port = 587; $mail->Username = 'some@gmail.com'; $mail->Password = 'somepass'; $mail->addAddress('another@gmail.com', 'Josh Adams'); $mail->Subject = 'PHPMailer GMail SMTP test'; $body = 'This is the HTML message body in bold!'; $mail->MsgHTML($body); if (!$mail->send()) {

PHPMailer error: SMTP -> ERROR: Failed to connect to server

。_饼干妹妹 提交于 2019-11-26 17:05:33
问题 I try to google all the morning and i think i need Stackoverflow now! I wrote a simple script to send a mail (from hotmail to gmail) but i get this error: SMTP -> ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)SMTP Connect() failed. Error This is the code: <?php require_once("../includes/phpMailer/class.phpMailer