phpmailer

Retrieve of the bounce mail in php?

一世执手 提交于 2019-12-01 12:41:59
问题 I am using swift mailer , which only provide me opition of failure mail, that is, indicate whether the mail delivered to outgoing mail server (not report after sending process). So i am finding any way to tell me whether there is bounce mail. I find zend and phpmailer BHM, the phpmailer has not updated for a while (2009) , so would zend the best choice can help me doing this or i can do it by some coding in php? Thank you Reference: 1.Zend http://framework.zend.com/manual/en/ 2.phpmailer BMH

PHPMailer SMTP configuration

ぃ、小莉子 提交于 2019-12-01 12:04:09
For the past 2 hours I've been looking online to see if any other people encountered this problem, and it seems a lot has, bot none of the answers are working for me. SMTP -> FROM SERVER:220 mx.google.com ESMTP vq7sm928004oeb.13 SMTP -> FROM SERVER: 250-mx.google.com at your service, [50.57.114.141] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES SMTP -> FROM SERVER:220 2.0.0 Ready to start TLS SMTP -> FROM SERVER: 250-mx.google.com at your service, [50.57.114.141] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 250 ENHANCEDSTATUSCODES SMTP -> FROM SERVER

TextArea line breaks for e-mail

China☆狼群 提交于 2019-12-01 09:21:05
How can I take the text from a textarea (html) and insert line breaks. Right now, if I input info to send out as an e-mail, it puts all the text on the same line without any line breaks. Using $_POST['field'] to get the data from the form and sending using PHP mail. use \n for new line, or \r\n for return followed by new line ie. <?php printf("This is the first line. \n"); printf("This is the second line"); ?> ie. to replace html tag with newline: str_replace ('<br>' , '\r\n', $_POST['field']) alternativly set the email you are sending out to be html encoded (add html header) Use nl2br()

phpMailer email not sending gmail smtp

徘徊边缘 提交于 2019-12-01 09:20:54
I am not able to send an email using gmail SMTP, this is what I'm getting when I print_r the object. I'm using the same gmail credentials to Username and Password of phpMailer attributes, so I'm sure my credentials are correct but no idea why its not sending. Thanks, appreciate any support. EMailer Object ( [pathViews:protected] => application.views.email [pathLayouts:protected] => application.views.email.layouts [_myMailer:EMailer:private] => PHPMailer Object ( [Priority] => 3 [CharSet] => UTF-8 [ContentType] => text/html [Encoding] => 8bit [ErrorInfo] => SMTP Error: Could not authenticate.

phpMailer gmail spam

限于喜欢 提交于 2019-12-01 08:57:03
问题 I use phpMailer, but I have a problem: when the recipient is Gmail or Yahoo my email ends up in the spam folder. How is it possible? The code is this: $mail->AddCustomHeader('Reply-to:info@myemal.com'); $mail->From="info@myemal.com"; $mail->FromName="MY NAME"; $mail->IsSendmail(); $mail->AddReplyTo("info@myemail.com"); $mail->From = 'info@myemail.com'; $mail->FromName = 'My name'; $mail->AddAddress($to, $toName); $mail->Subject = $subject; $mail->AltBody = "To view the message, please use an

Email Attempt Failed when signin through PHP in gmail

六月ゝ 毕业季﹏ 提交于 2019-12-01 08:51:02
I need a help in email sending in PHP. Am actually trying to send email using PHP mailer. Somehow for some of the mail ids am able to send the email but for some other email ids am unable to send. I receive an email in gmail stating 'Signin attempt prevented.' Can somebody help me know where do I need to change the settings in my gmail account in order to make my PHP code to send emails? require("phpmailer/class.PHPMailer.php"); require("phpmailer/class.smtp.php"); $f_pointer=fopen("test.csv","r"); // file pointer $emails = array(); while (($data = fgetcsv($f_pointer, 1000, ",")) !== FALSE) {

How to use phpMailer isSMTP on Bluehost?

空扰寡人 提交于 2019-12-01 08:12:52
It's taken me days to get the right settings so I thought I would post a php script that works on Bluehost. In initial tests using isSMTP is faster than isMAIL. <?php require_once '../includes/phpmailer/PHPMailerAutoload.php'; $mail = new PHPMailer(); $mail->IsSMTP(); // set mailer to use SMTP $mail->Host = "box1311.bluehost.com"; // specify bluehost as outgoing server $mail->SMTPSecure = "tls"; // sets the prefix to the server do not use ssl $mail->SMTPDebug = 3; // comment out if you don't need debug info $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "USER@EXAMPLE

Email Attempt Failed when signin through PHP in gmail

假如想象 提交于 2019-12-01 07:18:11
问题 I need a help in email sending in PHP. Am actually trying to send email using PHP mailer. Somehow for some of the mail ids am able to send the email but for some other email ids am unable to send. I receive an email in gmail stating 'Signin attempt prevented.' Can somebody help me know where do I need to change the settings in my gmail account in order to make my PHP code to send emails? require("phpmailer/class.PHPMailer.php"); require("phpmailer/class.smtp.php"); $f_pointer=fopen("test.csv"

Unable to send mail through Google SMTP with PHPMailer

余生颓废 提交于 2019-12-01 06:45:39
I'm trying to send out mail using Google's SMTP in combination with PHPMailer, but I can't get it to work. This is my code: $mail->IsSMTP(); $mail->Host = "smtp.gmail.com"; $mail->SMTPAuth = true; $mail->SMTPSecure = "ssl"; $mail->Username = "myemail@gmail.com"; $mail->Password = "**********"; $mail->Port = "465"; First I do not fully understand what should be filled in as 'SMTPSecure', some say ' ssl ', other say ' tls '. Next for 'Port' I could enter '465' or '587'. But none of the combinations work... Note that I'm using a regular Gmail account and not Google Apps. In my Gmail account I've

PHPMailer - OpenSSL Error

只谈情不闲聊 提交于 2019-12-01 06:33:56
Based on the example that PHPMailer provides i have the script below, date_default_timezone_set('Etc/UTC'); require './PHPMailerAutoload.php'; $mail = new PHPMailer; $mail->isSMTP(); $mail->SMTPDebug = 2; $mail->Debugoutput = 'html'; $mail->Host = 'smtp.gmail.com'; $mail->Port = 587; $mail->SMTPSecure = 'tls'; $mail->SMTPAuth = true; $mail->Username = "myemail@example.com"; $mail->Password = "********"; $mail->setFrom('myMail@example.com', 'First Last'); $mail->addReplyTo('myEmail@example.com', 'First Last'); $mail->addAddress('toEmail@example.com', 'first last'); $mail->Subject = 'PHPMailer