phpmailer

SMTP -> ERROR: Failed to connect to server: Connection timed out (110) The following From address failed: xxxxx@gmail.com ERROR

佐手、 提交于 2019-12-13 04:16:25
问题 In contact form it's working fine in localhost. While hosted it's not working. Showing the error **"SMTP -> ERROR: Failed to connect to server: Connection timed out (110) The following From address failed: xxxxx@gmail.com ERROR"** I attached my contact_submit.php code form include_once('class.phpmailer.php'); $mail->IsSMTP(); // $mail->Host = "smtp.gmail.com"; $mail->SMTPDebug = 1; $mail->SMTPAuth = true; $mail->Host = "smtp.gmail.com"; $mail->Port = 587; $mail->Username = "xxxx@gmail.com";

Is it possible to instruct PHP to use postfix configuration in php.ini?

两盒软妹~` 提交于 2019-12-13 04:13:04
问题 Is it possible to configure PHP to send email using the configuration set for postfix? WordPress (via PHPMailer) relies on these settings to be correct in php.ini: ;SMTP = localhost ; http://php.net/smtp-port ;smtp_port = 25 ; For Win32 only. ; http://php.net/sendmail-from ;sendmail_from = me@example.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path sendmail_path = "/usr/sbin/sendmail -t -i" ; Force the addition of the specified

PHPMailer attachments are showing up as base64-encoded text

萝らか妹 提交于 2019-12-13 03:57:40
问题 Here's my PHP code: $mail = new PHPMailer(); $mail->AddAddress('neubert@neubert.com'); $mail->SetFrom('neubert@neubert.com'); $mail->Subject = 'Attachment Test ' . mt_rand(1, 10000000); $mail->Body = 'See attached!'; $mail->AddStringAttachment('hello, world!', 'test.txt', 'base64', 'application/csv'); $mail->Send(); Here's what it looks like in my Gmail inbox: Here's what I want it to look like: Here's what I see when I click on "Show original" in Gmail: Content-Type: multipart/alternative;

Mail sent with PHP mail are not shown in my mails Sent folder

北慕城南 提交于 2019-12-13 03:56:47
问题 I'm sending email from my webmail accounts to any email address. Mails are sending successfully, but how can I have this mails in my webmail account sent folder . I use codeigniter email sent functionality. 回答1: You should include your code in your question. This isn't PHPMailer's job, but it's related. Take a look at the end of the gmail example provided with PHPMailer. It includes a section that uploads a sent message to your IMAP folder. The basic idea is that after you've received a

PHPMailer not sending at all

狂风中的少年 提交于 2019-12-13 03:10:56
问题 PHPMailer send issue: I have been following a tutorial to try and send an email via PHPMailer and SMTP, However it is not sending and I am not sure why... maybe my logic is off or something else? It just outputs the last message $msg = "Please try again!", and removes all form fields entered. Here is my PHP code: <?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'vendor/autoload.php'; $msg = ""; //message variable if (isset($_POST['submit'])) { $name = $_POST

PHPMailer - Unable to load MsgHTML

风流意气都作罢 提交于 2019-12-13 02:50:01
问题 I am using PHPmailer in order to send an e-voucher to customers. I am wanting to send a dynamic html document to the user as the body text however when i refer to this file, i get an error. My code is as follows: $sessionid = '12345'; $cid = '98765'; require('class.phpmailer.php'); $bodytext1 = "Your Evoucher is attached for ".$row_checkout['name']; $email = new PHPMailer(); $email->From = 'noreply@xxx.com'; $email->FromName = 'xxx.com'; $email->Subject = 'Your e-voucher for '.$row_checkout[

phpmailer with hotmail?

人走茶凉 提交于 2019-12-13 01:54:06
问题 I'm trying to send emails from my server by a PHP script. I used to send it by a native php function mail and everything worked OK. Here's the code I used: $to = $sMail;<br> $subject = $sSubject;<br> $message = $sMessage; $headers = 'From: user@domain.com' . "\r\n";<br> $headers .= 'Reply-To: user@domain.com' . "\r\n";<br> $headers .= 'MIME-Version: 1.0' . "\r\n";<br> $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";<br> $bRes = mail($to, $subject, $message, $headers); I then

Speed up PHPmailer with office 365 smtp

。_饼干妹妹 提交于 2019-12-13 01:34:14
问题 I am using an PHPMailer to send mail from my server through an office365 account. However it seems to take about 10-12 seconds to send the email, and this is making customers impatient and they are clicking the send button again. This is my code $mail->IsSMTP(); // enable SMTP $mail->SMTPAuth = true; // turn on SMTP authentication $mail->SMTPSecure = "tls"; // Secure type = tls $mail->Host = "smtp.office365.com"; // Hostname $mail->Username = "user@domain.co.uk"; // Username $mail->Password =

The following From address failed Called Mail() without being connected

别等时光非礼了梦想. 提交于 2019-12-13 01:14:21
问题 Hello guys I get this error: The following From address failed: username_from@gmail.com : Called Mail() without being connected <?php require("PHPMailer/class.phpmailer.php"); $msg = 'hello world!'; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->Port = 465; $mail->SMTPAuth = true; $mail->Username = 'username@gmail.com'; $mail->Password = 'password'; $mail->SMTPSecure = 'ssl'; $mail->From = 'username_from@gmail.com'; $mail->FromName = 'My name'; $mail-

Track emails sent by SMTP with PHP

半世苍凉 提交于 2019-12-13 00:19:19
问题 I'm developing a little email sender portal that allows registered users to send some amounts of emails. I use a secure connection with an SMTP server installed on localhost (I mean same server of Apache and PHP) to send the emails and I have implemented a system to take control on the amounts of emails sent (I schedule the sending of the emails to avoid sending too much emails at the same time). I use PHPMAiler class to send the emails and a class of my own to schedule them. The only thing I