phpmailer

phpMailer - How do you Remove Recipients

只谈情不闲聊 提交于 2019-11-27 12:34:04
There are a lot of StackOverflow questions on this topic, but I couldn't find one that was able to help with the issue I'm having. The script that I'm writing sends out multiple emails to various recipients with different message contents. I can get this working by re-initializing the phpMailer object multiple times, but what I'd like to be able to do is create the object a single time, and then re-assign the following fields: $mail->AddAddress($email); $mail->Subject = $subject; $mail->IsHTML(false); $mail->Body = $message; That way I can just run those four lines of code and then send the

phpmailer: Reply using only “Reply To” address

不羁岁月 提交于 2019-11-27 11:39:16
I'm using phpmailer on my website and to help with spam issues I have created a mailbox to send these emails from (using SMTP). I have set the emails to come from the mailbox address and then I have added a reply to address for where I want the replies to go to: $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = 'tsl'; $mail->SMTPDebug = 1; $mail->Host = EMAIL_HOST; $mail->Port = EMAIL_PORT; $mail->Username = EMAIL_USER; $mail->Password = EMAIL_PASS; $mail->SetFrom('mailbox@email.com', 'Mailbox name'); $mail->AddReplyTo('replyto@email.com', 'Reply to name');

Gmail Sending Limits

时间秒杀一切 提交于 2019-11-27 11:18:37
问题 I'm developing software on a website that uses PHPMailer to send mail through our company's Gmail accounts via SMTP. With the software, a customer signs up for the site and receives a receipt and a video ticket. Two separate emails per customer at sign up. Then, before the event starts we want to resend all the video tickets. I was wondering what the limits were about sending emails. How many emails can we send per minute, per hour, per day via SMTP using PHPMailer? Thanks. UPDATE: We are

How to send multiple attachment in single mail in php

為{幸葍}努か 提交于 2019-11-27 09:19:28
I would like to know about attaching multiple attachment in single mail and send . Please refer my following oode. In this only one file is getting attached. That is second file. First file is not at all considering for attaching. But file is being created properly in the path specified. $filename=array($filenamee1 ,$filenamee2); for($x=0;$x<count($filename);$x++){ echo $path.$filename[$x]; $file = $path.$filename[$x]; $file_size = filesize($file); $handle = fopen($file, "r"); $content = fread($handle, $file_size); fclose($handle); $content = chunk_split(base64_encode($content)); $uid = md5

Everytime my mail goes to spam in phpmailer

旧时模样 提交于 2019-11-27 09:18:43
Here are my codes for sending mail: $fullname = $_POST['fullname']; $email = $_POST['email']; $telephone = $_POST['telephone']; $email = $_POST['email']; $date = $_POST['date']; $time = $_POST['time']; $adult = $_POST['adult']; $children = $_POST['children']; $company_name = $_POST['company_name']; $addition = $_POST['addition']; $confirm = $_POST['confirm']; $body = ' <table width="100%" border="0" cellpadding="0"> <tr> <td>Dear Sir, </td> </tr> <tr> <td><b>Booking request from '.$fullname .'</b><br /><br /> <u>The details provided are:</u><br /> <p>Name : '.$fullname.'<br /> E-mail Address:

Sent mails with phpmailer don't go to “Sent” IMAP folder

不羁岁月 提交于 2019-11-27 09:14:55
in my CRM online system I control ingoing mails with IMAP protocol. Now I'm making sending mails with phpmailer and SMTP protocol. Everything is ok but I have one wierd thing. How to make sent with phpmailer script mails go to "Sent" IMAP folder? There is now a method getSentMIMEMessage in PHPMailer which returns the whole MIME string $mail = new PHPMailer(); //code to handle phpmailer $result = $mail->Send(); if ($result) { $mail_string = $mail->getSentMIMEMessage(); imap_append($ImapStream, $folder, $mail_string, "\\Seen"); } I found easier way to do this. PHPmailer prepares email as string

phpmailer - The following SMTP Error: Data not accepted

被刻印的时光 ゝ 提交于 2019-11-27 09:00:39
I'm trying to figure out this issue for 6 hours. But there is nothing to make sense. Here is the scenario; There is a well formatted HTML template. $mail_body = ' <b>Message Num :</b> 769<br /> <b>Message Date :</b> 2013-04-08 09:03:21<br /> <b>Name :</b> John Doe<br /> <b>Phone :</b> 123456789<br /> <b>E-mail :</b> abcdf@somedomain.com<br /> <b>Message :</b> Here is the message info<br /> '; Here is the array of recipients' mails; $recipients = array("abc@something.com","xyz@somtehing.com"); Everything looks fine and email ready to send.Here is the phpmailer config; $mail = new PHPMailer();

PHPMailer Gmail Server Error

让人想犯罪 __ 提交于 2019-11-27 08:08:48
问题 I'm having a little trouble with PHPMailer. Can someone help? Please don't tell me my username and password might be wrong. I triple-checked and they are correct. The lines of code that I think could be the issue are: $mail->Host = 'smtp.gmail.com'; $mail->Port = 587; $mail->SMTPSecure = 'tls'; $mail->SMTPAuth = true; $mail->Username = '*********@gmail.com'; $mail->Password = '*********'; $mail->setFrom('*********@gmail.com','Name'); The error log output is: 2015-12-31 16:46:17 CLIENT ->

“Password not accepted from server: 535 Incorrect authentication data” when sending with GMail and phpMailer

故事扮演 提交于 2019-11-27 08:03:37
I have the same php script running on localhost - my PC with XAMPP and on a hosted server. It works from my PC, but not from the hosted server. When I send it from the hosted server, I get the following output: SMTP -> ERROR: Password not accepted from server: 535 Incorrect authentication data SMTP -> ERROR: RCPT not accepted from server: 550-Please turn on SMTP Authentication in your mail client, or login to the 550-IMAP/POP3 server before sending your message. dev.camppage.com 550-(patchvalues.com) [205.234.141.238]:50958 is not permitted to relay through 550 this server without

PHPMailer with GMail: SMTP Error

怎甘沉沦 提交于 2019-11-27 08:01:12
问题 I am making use of PHPMailer to send mail through GMail. The code I use is straight from a tutorial and it works perfectly on my laptop. However, testing this on a Windows 2003 Server - it seems to always return an SMPT error: SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect to SMTP host. Here is the settings I use in PHPMailer: include("phpmailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; // enable SMTP