phpmailer

PHPMailer sends duplicate emails

核能气质少年 提交于 2021-02-18 18:23:30
问题 PROBLEM: I'm receiving three duplicate emails for each user who signs up with their email address. My guest list is being overrun by duplicate emails, and I don't know what's wrong with my code. Probable Cause : I have 3 signup forms, so I think somehow when I submit one signup form they all submit at the same time. The problem lies in either the Bootstrap 4.1.3 JS or the HTML. PHP Code: $email = $_REQUEST['email'] ; // Import PHPMailer classes into the global namespace // These must be at

phpmailer looping through multiple emails [PHP PHPMAILER]

隐身守侯 提交于 2021-02-17 05:45:08
问题 I am using the phpmailer and I want to send it to multiple of emails at once, by using for loop. This is my current coding: require 'phpmailer/PHPMailerAutoload.php'; $mail = new PHPMailer; $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'yyy.com'; // SMTP username $mail->Password = 'yyy'; // SMTP password $mail->SMTPSecure = 'tls'; // Enable TLS

Threading without In-Reply-To: Message-ID?

假装没事ソ 提交于 2021-02-17 05:20:09
问题 So our system is sending us email notifications regarding specific incidents. The problem is, things get really spammy and disorganized, and we really want to have our email client (Gmail) thread notifications regarding the same incident. So for instance: Email 1 is sent about incident 1. Email 2 is sent about incident 1. Gmail displays them in their own threads while we want them to appear as "replies" in the same thread. I thought all I needed was to append "Re: Subject Line" but that doesn

Handling of List-Unsubscribe callbacks on server

拈花ヽ惹草 提交于 2021-02-11 14:18:30
问题 When adding 'List-Unsubscribe' email headers, what kind of handling is required on the server-side for the callbacks? It's possible to add both a mailto-link and a web-link to the header, in PHPMailer it could look like this: $email->AddCustomHeader("List-Unsubscribe: <mailto:unsubscribe@example.com?subject=Unsubscribe>, <http://example.com/unsubscribe.php?unsubscribeid=$id>"); But does the mailto-address have to somehow automatically handle the unsubscription, or is it okay if the request

How can I use phpmailer without composer

泄露秘密 提交于 2021-02-11 12:42:55
问题 I need to send emails and the mail() function just does not work for me. The problem is that PHP is not installed on my device. Can I still use it in, index.php for example? I use 000webhost 回答1: Try this code (it works for me): <?php use PHPMailer\PHPMailer\PHPMailer; require 'PHPMailer.php'; require 'SMTP.php'; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = 'ssl'; $mail->Host = 'smtp.gmail.com'; $mail->Port = 465; $mail->Username = 'xxx'; // Change

PHPMailer Foreach Loop

£可爱£侵袭症+ 提交于 2021-02-10 12:15:32
问题 I currently am using PHPMailer which gets the list of email addresses from an uploaded .txt file. The current system works fine, but I am trying to add a tracking system to see if the email is viewed. We are doing this by adding an image to each email which when viewed updates via php to let us know the email has been viewed. Currently our PHPMail looks something like this, foreach ($email_addresses as $line_num => $line) { $ismatch = preg_match('/^[\s,]+$/',$line); $isvalid = preg_match('/^[

PHPMailer Foreach Loop

我只是一个虾纸丫 提交于 2021-02-10 12:14:05
问题 I currently am using PHPMailer which gets the list of email addresses from an uploaded .txt file. The current system works fine, but I am trying to add a tracking system to see if the email is viewed. We are doing this by adding an image to each email which when viewed updates via php to let us know the email has been viewed. Currently our PHPMail looks something like this, foreach ($email_addresses as $line_num => $line) { $ismatch = preg_match('/^[\s,]+$/',$line); $isvalid = preg_match('/^[

Change from PHPmailer to sendmail

☆樱花仙子☆ 提交于 2021-02-08 10:25:21
问题 I want to send the emails via original old school sendmail. In what way i need to change this CODE to work with sendmail? i have tried but i always get very ugly errors, i tried to change IsMail to IsSedmail but still does not send the original way. Phpmailer sends 3 email and the website is taking a lot time to send, so i want to go to the old plain "mail(to...." but the problem is that i`m lost in all the code so please Help. function send_mail($rec_email,$subject,$message, $IsHtml=false,

PHPmailer disclose server IP address, how to hide it?

我们两清 提交于 2021-02-05 12:18:52
问题 I'm using CloudFlare to hide original server IP address (preventing from attacks to the server, DDos...), but when I use PHPmailer on site for sending confirmation e-mails to the customers, it is easy for an attacker to get original IP because it is in email headers. PHPmailer is set to send via Google SMTP relay. Received: from www.website.com (webhosting2.xxx.cloud. [195.91.163.4]) by smtp-relay.gmail.com with ESMTPS id 88sm967264wrf.7.2018.01.22.12.34.50 for <thomas.cook@customer.com>

Sending emails with PHPMailer

允我心安 提交于 2021-02-05 09:21:57
问题 I'm struggling to understand how to send emails with PHPMailer. I have multiple website clients and I have implemented a contact form for each of them. I can send emails to my own email address but not to theirs. This is the function I wrote to do it. function sendSMTP($host, $usr, $pwd, $port, $fromAddr, $fromName, $replyAddr, $replyName, $addr, $subject, $body) { $mail = new PHPMailer(true); $mail->SMTPDebug = 1; $mail->isSMTP(); $mail->Host = $host; $mail->SMTPAuth = true; $mail->Username