Most voted "phpmailer" questions
Phpmailer is a class developed for the PHP language for sending email to servers that require SMTP authentication.
Learn more…248 questions
Sort by count of
-
19
votes2
answers3841
viewsBest practices for sending emails and avoiding spam
Nowadays, almost every web site or web system almost inevitably needs functionalities with sending emails, whether in contact forms, password recovery, account activation, order confirmation, etc.…
-
13
votes4
answers31386
viewsSending email via Phpmailer to Gmail
I can’t at all send an email to my Gmail account via PHP. I had a previous project where I tried to use phpmailer and I can’t get it to work properly (2 months trying). Now I finished a website and…
-
7
votes2
answers417
viewsLimit incoming emails from the same domain
There are SPAM source verification policies that are based on the amount of emails that a given domain is sending per hour. Such policies may be internal, such as those applied by Google, or…
-
6
votes1
answer1395
viewsSend email using Cpanel and Phpmailer account
I am trying to send an email using my Cpanel account and the phpmailler class but I am not succeeding , the code I am using is the same as the Phpmailler documentation, how should I proceed? , would…
-
5
votes2
answers3379
viewsHow to avoid sending PHP requests in a row?
Well, the situation is that there are some forms on my website. These forms are programmed to trigger emails using the Phpmailer class. What happens is the following, if the page takes a little time…
-
5
votes2
answers1625
views -
5
votes2
answers1064
viewsError using phpmailer class
I am making a contact form using phpmailer class and whenever sending the email this error happens: I’m using the SMTP connection. "Fatal error: Class 'SMTP' not found in…
-
4
votes1
answer1795
viewsHow to know if the e-mail has reached the Recipient?
I’m building a system (in PHP) that requires approvals, and with each approval I send a confirmation email to the user... I’m using the phpMailler, and he informs me at the end, that the server sent…
-
4
votes1
answer8622
viewsHow do I get in the Input file?
I need to send several attachments via Phpmailer and am using jQuery to get the value of input file, now I need to pick up the file path to be able to send by email, but when I take the path it…
-
4
votes1
answer813
viewsErrors when connecting to gmail SMTP using Phpmailer
Hello, I am trying to email using Phpmailer but am having some errors. First errors with the SMTP class not located. I found that I need to create a require for aruqivo Phpmailerautoload.php in my…
-
4
votes2
answers8261
views -
3
votes2
answers127
viewsAccent in comment field
I need a help for a situation that seemed simple, I have a form with a comment field and when sending this comment by email the same appears all disfigured, I’m using the phpmailer. The code page on…
-
3
votes4
answers34147
viewsSMTP connection error when sending email using Phpmailer
I’m trying to implement email sending with the library Phpmailer, but brought me the following mistakes: Edit: I’m testing it locally. SMTP -> ERROR: Failed to connect to server: Uma tentativa de…
-
3
votes3
answers6401
viewsConfigure Phpmailer with Hotmail
I’m not being able to set up my email on PHPMailer, my code is like this: $mail->IsSMTP(); // Define que a mensagem será SMTP $mail->CharSet = 'UTF-8'; $mail->Host = "smtp.live.com"; //…
-
3
votes2
answers69
viewsPhpmailer - Sending emails is possible?
Is there any implementation that can be done on PHPMailer so that emails that could not be sent (due to the momentary fall of the server of the site that uses the PHPMailer, for example) can be sent…
-
3
votes1
answer845
viewsPHP Mailer sending email without the information
Guys, I made a Landing page on the company page and it sends the information that people fill out to my email using Phpmailer. Most of the e-mails are coming straight through, with all the necessary…
-
3
votes1
answer595
viewsDifferences in Phpmailer functions
In the documentation it does not leave much explained that (think), so what would be the difference of: I’m using the variable $mail for example. $mail->Username $mail->setFrom…
-
3
votes2
answers2905
viewsPhpmailler Error sending email SMTP connect() failed. UOL HOST
Hello, I have a problem regarding the connection with the SMTP of Uol, I am trying to send email but without any success. // Inicia a classe PHPMailer $mail = new PHPMailer(); // Define os dados do…
-
3
votes1
answer966
views -
3
votes1
answer1734
viewsgenerate and email with pdf file attached with php
In my PHP script, I need to generate a PDF file and send it via email. I was able to send an attached file by email using phpmailer and generate a PDF in the browser using fpdf. The problem is that…
-
3
votes1
answer8046
viewshow to add phpmailer hidden copy
How to send newsletter with hidden copy to customers, appearing only the email of the same that was sent? code: require_once("../phpmailer/class.phpmailer.php"); $mysqli =…
-
3
votes1
answer1470
viewsTest connection with Phpmailer
I’ve been working with Phpmailer for a while, now I’m inserting it into a more complex Content Manager and through the panel one can insert several emails to be the Phpmailer Sender in several…
-
3
votes2
answers5645
viewsPhp Mailer error in hostgator
This mistake you’re making I hope someone will help me please. Thank you (Warning: stream_socket_enable_crypto(): Peer Certification CN='*.hostgator.com.br' Did not match expected…
-
2
votes2
answers854
viewsPhpmailer shows SMTP error
I am running phpmailer codes and the following error warning appears: Fatal error: Class 'SMTP' not found in public_html/php/phpmailer/class.phpmailer.php on line 1291 Can someone help me?…
-
2
votes2
answers142
viewsProblems with Phpmailer and large emails
I have a problem with sending emails from an application. I’ve already tried PEAR_Mail together with PEAR_Mail_Mime and now with PHPMailer (what I found most readable). What is going on? When I send…
-
2
votes2
answers1533
viewsHelp with email form with PHP Mailer
I am having trouble sending messages through my website hosted at UOL Host. They require sending via authenticated SMTP. I’m using PHP Mailer. The form worked but stopped suddenly. php contact.…
-
2
votes2
answers998
viewsphpmailler error while sending email
how can I send more than one email with 'phpmailler' it always gives this error 'Mail error: You must provide at least one recipient email address. 'I am developing a newsletter system that will…
-
2
votes2
answers104
viewsCould not acess file: Array e syntax error, Unexpected '$name' (T_VARIABLE)
I am using Phpmailer to send an attached email by a form, my code has no errors, but when I finish the form and press send, returns an error but that the email was sent. Code:…
-
2
votes2
answers1563
viewsHow do I email multiple people with Phpmailer?
I would like to know how to make the "to:" in the email corresponds to the field in the table, that is, for example I have two emails, an email is [email protected] and the bank’s other email is…
-
2
votes1
answer506
viewsproblem when sending css email by phpmailer
Galera I set up an email using html and css. The email arrives perfect in several e-mail, but in G-mail the email arrives without css, ie only html. Does anyone know how to solve the problem? Follow…
-
2
votes2
answers250
viewsPhpmailer alternative Gmail From
I have a website where there is a contact form. The email sent by this form (Gmail), I use a specific only for the site (formulario@....), however, when sending to the client, set the parameter From…
-
2
votes1
answer608
views -
2
votes1
answer173
viewsHow to add SMTP mailing in phpmailer?
Good morning, I have the following code to send an e-mail via Phpmailer. <?php $GetPost = filter_input_array(INPUT_POST,FILTER_DEFAULT); $Erro = true; $Tipo = $GetPost['tipo']; $Nome =…
-
2
votes1
answer518
viewsProblem for sending Email with PHPMAILER using a GMAIL account for sending
Code require("phpmailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Charset = 'utf-8'; $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true;…
-
2
votes2
answers206
views -
2
votes1
answer411
viewsProblem with SMTP phpmailer
I’m making the following mistake : "Error: SMTP Error: Data not accepted." Yesterday was working well, today started giving this error. Yesterday the marketing people used to send mass message, I’m…
-
1
votes1
answer106
viewsPhpmailer presenting an unknown message
My code is working but when it runs, next to the message (which appears when completing the sending process), the following information appears: 2014-11-18 16:19:05 CLIENT -> SERVER: EHLO .org.br…
-
1
votes1
answer109
viewsError Generating PDF with Phpmailer
I am using Phpmailer to perform email sending more I would like to know why when I try to create a PDF attachment the file does not open right, With the upload everything is normal, up to the pdf…
-
1
votes0
answers33
viewsE-mail is sent only to the last confirmed/active user
Well, here’s the thing. I was doing some tests of sending Newsletter and I came across a problem. The part of registration/ user insertion is done, working all right. However, I was only sending it…
-
1
votes2
answers1880
viewsSend different emails to me and the customer after filling in the form by phpmailer
I have a form that sends the customer data to an email, but I need the customer to also receive a copy of this email and with additional text, for example: Thank you for registering, below you can…
-
1
votes0
answers665
viewsSend PDF in Attachment mPDF, phpmailer
I have the following code in PHP: error_reporting(E_ALL ^ E_DEPRECATED); $this->load->helper('mpdf'); $this->data['dadosboleto'] = $this->boleto_model->GerarBoletoCEF($id_cliente,…
-
1
votes3
answers751
viewsSend email with dynamic content in PHP
I have a template .html email with +- 700 lines (created on Mailchimp) and need to insert some recovered database values into it (something similar to what the Velocity makes) before sending to the…
-
1
votes0
answers198
viewssend products from shopping cart by email
I have the code below, I didn’t do it, I’m just putting together two files and small changes. I receive the email and it is sent to whoever makes the purchase, but only one product comes from the…
-
1
votes1
answer184
viewsSending e-mail with mail function
I have a site on the localweb, and the first question is: can I send email without authentication? Good by the way I think not, because despite appearing written "Your email was sent successfully!"…
-
1
votes1
answer304
viewsCheckbox and Phpmailer
Hello, everybody! I am unable to send checkbox values through Phpmailer. Could someone give me a hint? $precisa = implode(",", $_POST['precisa[]'] ); <label> <p style="margin-right:…
-
1
votes0
answers223
viewsHow to use Phpmailer in the MVC file structure
I need to use Phpmailer and my project has the MVC structure, but I don’t know how to organize the files in my models. I have the following file structure: root/ ajax/ controllers/ core/ phpmailer/…
-
1
votes1
answer157
viewsPhp Mailer embed image does not work
I’m trying to send an image in the body of the email with php Mailer follows my Cod: $mail->AddEmbeddedImage("img/header.jpg", "img1","header.jpg", "base64", "image/jpg"); and the html of the msg…
phpmailerasked 7 years, 2 months ago Jasar Orion 2,233 -
1
votes1
answer281
viewsphpmailer sends email to myself
<?php require 'funcoes/PHPMailer-master/PHPMailerAutoload.php'; $email = $_POST['email']; $nome = $_POST['nome']; $titulo = $_POST['titulo']; $mensagem = $_POST['mensagem']; $mail = new…
-
1
votes2
answers418
viewsSend image that is on the server as an email attachment
I need to send an email with Folder’s (images) that are already on the server. Does anyone have an idea how to do that? The e-mail is already working. I’m using codeigniter and phpmailer.
-
1
votes1
answer95
viewsPhpmailer: Using the email field as the sender
I have a question, can I use the email that was filled in the "E-MAIL:" field of the form as sender? I need that when I press the reply button of the mailbox it fills with the email that is filled…