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
-
0
votes0
answers50
viewsImage I insert into the email body using Tinymce does not appear in the email
I’m trying to send an email with one or more images I uploaded using the tinymce textarea, where I write the email to be sent, I write what I want and upload the image, it appears there but does not…
-
0
votes1
answer76
viewsSend email with attachment and default title in FORM
I took on the internet a PHP form to attach files but the email arrives without subject. I would like to leave a pre-defined and hidden Subject and after sending back to the site (today it ends on…
-
0
votes1
answer310
viewsPhpmailer image does not appear in Outlook
Good afternoon, everyone, I made a system that sends emails via Phpmailer from a client table in Mysql. So far so good, works perfectly. The problem occurs when I receive this email in MS Outlook…
-
0
votes1
answer63
viewsPhpmailer how to receive replies that email has not been delivered
I believe people don’t understand what I want to know. In fact I have already found a solution, which I am testing and I will describe it here. I don’t care if the email was sent successfully and I…
-
0
votes2
answers2436
viewsSMTP Debug with Phpmailer
would like to identify a problem in the following code: try { $mail = new PHPMailer(true); $this->setLanguage("br"); $this->isSMTP(); $this->SMTPDebug = 4; $this->SMTPAuth = true;…
-
0
votes1
answer85
viewsSend e-mail with attachment in PHP
Hello, I’m using the following code: <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <title>Enviar e-mail com anexo</title> </head>…
-
0
votes2
answers665
viewsMailer Error: SMTP connect()
This class was created to send product purchase information to the email box, but an error ("Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting")…
-
0
votes1
answer691
viewsPhpmailer "Language string failed to load: tls"
I am not able to send e-mail by Phpmailer 5.1, I used the following class: <?php require_once(__DIR__.'/../../PHPMailer/class.phpmailer.php');…
-
0
votes1
answer34
viewsPHP - Using phpmailer passwords
Working with php Mailer, a question has arisen regarding the use of passwords. I am developing a page with form, and I wanted to know if it is safe to put the email password in the email class…
-
0
votes0
answers29
viewsError sending email to localhost
I am trying to send emails via html data, using xampp, but is returning me the following error: "Warning: mail(): Failed to connect to mailserver at "localhost" port 25, Verify your "SMTP" and…
-
-1
votes1
answer45
viewsPage ratio in Html5
I have an html code that I’m using to send email through phpmailer. The problem is that the background of the page is very large and I would like to know if there is a way to decrease this size.…
-
-1
votes1
answer103
viewsPhpmailer does not attach
I’ve looked at Stack’s answers, I’ve done it before, but it’s still going wrong. So I’d like you to take a look and maybe find something I can’t see Is that simply the email sent by Phpmailer does…
-
-1
votes2
answers897
viewsphpmailer causes syntax error error, Unexpected T_FUNCTION when hosted
Well I have a problem in phpmailer I am using a XAMPP server to mess with it I made a form but it is sending normally to my email that in case it would be GMAIL however I have a hosting on the…
phpmailerasked 8 years, 9 months ago Felipe Henrique 2,135 -
-1
votes1
answer511
viewsPHP Mailer - Undefined Method 'Subject'
send-contact.php <?php session_start(); $nome = $_POST["nome-contato"]; $email = $_POST["email-contato"]; $mensagem = $_POST["mensagem-contato"]; require_once("mailer/mail-autoloader.php"); $mail…
-
-1
votes1
answer966
viewsPhpmailer does not work email
I have the code to follow: require_once('c:\wamp64\www\phpmailer\class.phpmailer.php'); $mail = New PHPMailer(); //$mail-> ErrorInfo; //exit; $mail->IsSMTP = true; //$mail-> ErrorInfo;…
-
-1
votes1
answer131
viewserror sending email in php using phpmailer
Follow my php and html code <?php require("PHPMailer/PHPMailerAutoload.php"); if (isset($_POST['submit'])){ $enviaFormularioParaNome = 'Lucas'; $enviaFormularioParaEmail = '[email protected]';…
-
-1
votes1
answer916
viewsFilling sender with email field - PHP Mailer
I am using PHP Mailer to send the contact form I have on my site, I wonder if there is any way in which the contact is sent already with the email address filled in the form email field as sender,…
-
-1
votes2
answers406
viewsDo not send email with PHP Mailer
I have the following code: <?php // Inclui o arquivo class.phpmailer.php localizado na pasta class require_once("a/class.phpmailer.php"); require_once("a/class.smtp.php"); // Inicia a classe…
-
-1
votes1
answer111
viewsPHP does not take information from the phone field
I am creating a form to send e-mail direct from a website, through the PHP. However, when I add the field to put the phone to contact the code PHP, You don’t seem to recognize the field, and you…
-
-1
votes1
answer105
viewsFailed to read a file. php (lib Phpmailer)
Hello! I have the following form: <form role="form" method="post" action="send_email.php" id="formContato"> <div class="left"> <fieldset class="mail"><input…
-
-1
votes1
answer667
viewsError of: preg_replace_callback
Certain precise functionality of sending emails and before sent normally, however, now appears the following message: Deprecated: preg_replace(): The /e Modifier is deprecated, use…
-
-1
votes1
answer132
viewsModal help for confirmation of email sending and data validation
I have the following form on my website <form class="form-horizontal" name="form1" method="post" action="enviaemail.php"> <div class="form-group"> <div class="col-sm-4"…
-
-1
votes1
answer27
viewsHow do I send including the database id in the email?
I tried that way but of the undifined index. php-based. <?php $conexao=mysqli_connect('localhost', 'root','','formulario'); mysqli_set_charset($conexao,'utf'); if ($conexao->connect_error) {…
-
-1
votes1
answer239
viewsMy php code for sending email is not being loaded
I have the following code to send email from my form <?php // alterar a variavel abaixo colocando o seu email $destino = "[email protected]"; // emails para quem será enviado o formulário…
-
-1
votes3
answers107
viewsReceiving e-mail without data
I created a form using phpmailer, but every day a blank email arrives, without having filled in the name, phone or email. I believe it’s a search robot, does anyone know how I can remove it? because…
-
-1
votes1
answer33
viewsPhpmailer - does not work
so I’m trying to make a form to send some information in my email, it is returning successfully but ends up not sending the email. php. <?php include_once('phpmailer.php'); //Chama o arquivo…
-
-1
votes1
answer58
views -
-1
votes1
answer169
viewsPhpmailer email sent successfully but not received Amazon SES
I’m using Amazon’s Phpmailer Laravel SES. My account is not in a sandbox. My problem is when I try to email the Laravel admin panel on my website to my customers. I am informed that it has been…
-
-1
votes1
answer89
viewsProblem with Phpmailer sending emails
I am having problems in a project that uses Phpmailer, the same worked normally, but now is giving problem of Connection Timeout on the site, however when I run the script via terminal the same…
-
-1
votes1
answer61
viewsI created a form inside my site to be sent to my email, it’s not coming in the inbox. What can it be?
https://facasozinho.com/fale.html On the same day I uninstalled wordpress manually, so I do not know if there was conflict with the . original htacess with the other 2 files (.htacess) that…
-
-1
votes1
answer572
viewsPhpmailer error - Undefined class Constant 'ENCRYPTION_STARTTLS'
Hello, I executed the code, but the following error appears: Undefined class Constant 'ENCRYPTION_STARTTLS' Follows my code: <?php require "./bibliotecas/PHPMailer/Exception.php"; require…
-
-1
votes1
answer54
viewsSMTP error - Gmail SMTP error
I am trying to configure the SMTP of my contact form via SMTP Gmail, and every time I will send an error Here is my code <?php require 'OAuth.php'; require 'POP3.php'; require 'SMTP'; require…
-
-1
votes2
answers53
viewsView php file on the body of an email
I’m using Phpmailer to send emails, I want to encapsulate the content of a php page in the field: $mail->Body, this page that should be included in the body does search in the mail tracking api…
-
-2
votes2
answers793
viewsHow to place variables in email with phpmailer?
$sql = ("SELECT nome, datas FROM tabelas WHERE datediff(now(), data) <= 10 "); $validade = mysql_query($sql); while.... (codigo phpmailer) // corpo da mensagem $PHPMailer->Body =…
-
-2
votes1
answer216
viewsHow to send emails with Phpmailer on localhost without module ssl
Hello folks would like to know if there is a possibility to send email localhost using the Phpmailer library without having to install the SSL module in apache and PHP? I have tried several…
-
-2
votes2
answers79
viewsPhpmailer not taking form value
So, I have an example registration form to test Phpmailer, only that PHP is not accepting the form ID shows the error: Undefined index HTML and PHP are just below: <?php //ATENÇÃO ESSE TIPO DE…
-
-2
votes3
answers465
viewsSend email inside if com phpmailer
I have already created a folder inside my server phpmailer with the classes Phpmailer.php and SMTP.php. Now I have this code to insert into the database table: $data = isset($_POST["DataRegisto"]) ?…
-
-2
votes1
answer45
viewsWhy does it appear undifined index?
I have a code that sends some information but it’s not sending the full copies I don’t know why. I send everything else up to the file except the total copies. I used an echo="$totalcopias" instead…
-
-2
votes1
answer162
viewsPHPMAILER library sending duplicate emails
I have a PHP code that sends data to Phpmailer (data resulting from a query in the database). The problem is that when Phpmailer fires the email, it arrives duplicated in the inbox of who should…
-
-2
votes1
answer25
viewsdisplay array result within phpmailer message
Good evening folks, I need to display the results of an array in a message body phpmailer, so send the same by email. My sending code is working and I have done several tests, the email arrives…
-
-2
votes1
answer33
viewsHow to send the respective messages to emails coming from the php database?
WARNING: HICCUP AT THE END OF THE POST I’m finalizing a project however I’m stuck in the following situation! I’m making a Newsletter system where the database has three fields, the permission to…
-
-2
votes1
answer31
viewsE-mail Submission by PHP Mailer
I am using PHP Mailer for sending email, in Outlook appears the title and subject correctly, but where it is underlined in red appears part of the HTML code that makes up the body of the email, I…
-
-2
votes1
answer29
viewsCity and zip code information behaving strange. PHP Mailer, Html
Hello community all right? I have a very strange problem. I have an html form, and a php Mailer program that sends the mapped information. However only 2 fields behave very strange, the fields City…
-
-2
votes1
answer84
viewsPhpmailer (HTTP ERROR 500)
I’m using apache 2 and php8. When loading the page this message appears "This page is not working localhost can not meet this request at the moment. HTTP ERROR 500" <?php use…
-
-3
votes1
answer104
viewsHow do I send an email?
I’m using this code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php if($_POST) {…
-
-3
votes1
answer37
viewsPhp - send e-mail!
I would like to include the $nome and $email in the body of the message, but I’m not getting. <?php // recebe as Variaveis $nome = $_POST[“nome”]; $email = $_POST[“email”]; $emailDonatario =…
-
-3
votes1
answer876
viewsEnviar Email via PHP
Hello, I’m trying to use this code: <?php $nome = $_POST['nome']; $arquivo = $_FILES["arquivo"]; $assunto = $_POST['assunto']; // Para quem vai ser enviado o email $para = $_POST['email'];…
-
-3
votes1
answer31
viewssending email with phpmailer
Hello. I have a query (SQLSRV) that brings me a list of clients with expired financial securities. I have to send an e-mail (PHPMAILER) to each one with their outstanding expired securities. As I am…