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
votes2
answers1933
viewsSend email in HTML format with background image and text on top of image
I’m making a website where the customer registers his email and when registering he will automatically receive an email with a newsletter. To send this email I am using Phpmailer <?php require…
-
0
votes0
answers37
viewsEmail duplicity using PHP Mail()
I need help, I don’t know where is the error to generate e-mail duplicity only for $to. Below is my code: $mails = '[email protected]'; $Nome = 'Fulano'; $Email = '[email protected]'; $to =…
-
0
votes1
answer1024
views -
0
votes2
answers134
viewsI’m trying to send email with HTML and PHP and I can’t
Well, the thing is, I created a form to send a quote from my client to my client using the site, but do not click the "send" button anything happens and I do not understand why. I’ll leave the HTML…
-
0
votes1
answer37
viewsSend Add Calendar Button with Phpmailer
I have this script. <!-- AddEvent --> <script type="text/javascript" src="https://addevent.com/libs/atc/1.6.1/atc.min.js" async defer></script> <div title="Add to Calendar"…
-
0
votes0
answers308
viewsDeclaration error in phpmailerException class
I use wordpress, and am using the plugin contact form 7. When sending an email by clicking the button, it returns me the following error: Fatal error: Cannot declare class phpmailerException,…
-
0
votes0
answers293
viewsError sending email in gmail with Phpmailer
I used this code for a long time and it worked very well until now it simply doesn’t work anymore, neither with outlook nor with gmail. <?php if($_SERVER['REQUEST_METHOD'] == 'POST' and…
-
0
votes1
answer352
viewsSending the contents of a div by email with php Mailer
I have the following code: <?php require_once ("cabecalho.php");?> <div id="menor"> <div class="input-field col s12"> <form action="envia-texto.php" method="post"> <div…
-
0
votes1
answer226
viewsPhpmailer Error include
I’m having a problem with the Phpmailer class. It’s giving a bug include. Could someone tell me the reason for the mistake? PHP code: <?php // Variaveis que vão ser enviadas $nome =…
-
0
votes1
answer168
viewsphpmailer is not taking the values from my database
I’m trying to recover e-mail and password, where: $o_email = $_GET['email']; $celular = $_GET['celular']; Receives via URL the user’s email or mobile phone. But I am not able to get these recovered…
-
0
votes0
answers178
viewsError sending form with PHP
I created a script to send an email to my Gmail in PHP, but it is giving me an error when sending the form, ERROR 405 Not Allowed This is my form: <form action="email.php" method="post">…
-
0
votes1
answer713
viewsSending attachment in Phpmailer email
I have a problem in this code, because when sending is done sending the information I receive the return = 1, however the attachment is not sent someone can help me? SENDING.PHP $arquivoreal =…
-
0
votes2
answers329
viewsPhpmailer sends email but does not send variable values
I’m making a system to send emails with the contact form data to the administrator. So far so good, I was able to configure everything, send the e-mail, but there’s a very peculiar problem. The…
-
0
votes0
answers122
viewsAdditional emails are not being sent - Phpmailer - $mail->addAddress('[email protected]')
Good night. I have a somewhat curious problem. I have a client where I was hired to maintain his old site. As the same does not intend to update the site now, I’ll manage in the middle of that mess.…
-
0
votes2
answers530
viewsPhpmailer error: Hostnet configuration
follows the used code taken from the latest version of github I found <?php // Import PHPMailer classes into the global namespace // These must be at the top of your script, not inside a function…
-
0
votes2
answers431
viewsSender’s email is the default email in the form
I would like the email and name of the person filling the form, appear as the sender in my email box, otherwise google groups the messages from the same sender. $mail->Sender = "xxxxxx"; // Conta…
-
0
votes1
answer450
viewsHow to send Phpmailer and values to a Mysql database
I am trying to send the form data to an email using Phpmailer (this is already working) and take advantage to include this data in a Mysql database table. It didn’t work, I imagine the error is in…
-
0
votes1
answer26
viewsPhpmailler Attachment with Tmp name
I have the following code in PHP, using Phpmailer to send by email files of a multiple upload, is working the problem is that in the email the name of the files is with the name of the folder tmp…
-
0
votes0
answers73
viewsemail using php
People my program is giving a single syntax error on the penultimate line and I do not understand why. Someone help me pf. <?php session_start(); setlocale(LC_CTYPE,"pt_BR"); require_once…
-
0
votes1
answer121
viewsEmail form does not only work on smartphones!
Hey, guys! All right? This is my first post here. I’m in a bit of a silly problem, but three, four days ago! I started to develop recently and this is my first commercial project. It’s practically…
-
0
votes1
answer146
viewsPHP Mailer class does not work
I’m trying to send an email by php using PHP MAILER but I always get the missing class error and no longer know what to do. Error: Fatal error: Class 'PHPMailer' not found in…
-
0
votes1
answer902
viewsEmail No Localhost or Mail Server()
Hello, I have the system PHP below to register after the user’s Ubmit, the registration usually occurs, however I would like to be sent an email to the registered email, but the way I did is not…
-
0
votes0
answers308
viewsProblems with Phpmailer
I am testing the php script that sends emails using Phpmailer by WAMP with the correct credentials of my SMTP, only every time I open php by wamp it says that it is impossible to send the email and…
-
0
votes0
answers431
viewsPHP Mailer 'PHP Parse error'
When using PHP Mailer it is returning me the following message PHP Parse error: syntax error, Unexpected '[' in plugins Phpmailer src Phpmailer.php on line 288 My code as below require…
-
0
votes1
answer254
viewsSending email with multiple senders and recipients
I have records on MySql, basically with columns: usuario, emailusuario, descricao, responsavel, emailresponsavel. I need, when a new registration is made, send an email to the user himself…
-
0
votes2
answers284
viewsImage selection - phpmailer upload
I am trying to send an email by phpmailer with a signature image at the end, in case I have this select to select the desired signature. <select class="form-control" id="assinatura"…
-
0
votes1
answer100
viewsFailed to send email with phpmailer
I use the PHPMAILER on another site of mine where it is working perfectly. However, that same code does not allow me to send emails, it gives Sucesso and no error appears. I used the code…
phpmailerasked 6 years, 8 months ago I_like_trains 1,430 -
0
votes0
answers90
viewsPhpmailer and foreach
I redid the email from my website. Among the novelties, you can now send a message to more than one e=mail. I have this select that searches which emails will be from the recipients: <?php…
-
0
votes1
answer294
viewsSending attachment using email as file name with Phpmailer
I am using Phpmailer to send a form and I would like the attached files when they arrived in the email destination, had the file name the email of the person from whom I send, and not the file name,…
-
0
votes0
answers889
viewsSMTP connect() failed
Someone can help me, I am a few days trying to solve this error with Phpmailed. I have tried to use 3 different scripts, and always shows SMTP connect() failed, I’ve used the door 465, but gave the…
-
0
votes1
answer1295
viewsPhpmailer + gmail
I am using the latest version of Phpmailer to fire e-mail using my Gmail account, this application runs locally, below my code (copied from Phpmailer’s own Github talking about sending to Gmail):…
-
0
votes1
answer96
viewsPhpmailer - Annex has no extension
Good, when sending my attachment using Phpmailer, if I don’t add an extension after the variable, I can’t get the selected file extension: $mail->addAttachment($uploadfile) should send the file,…
-
0
votes2
answers529
viewsSend email using Phpmailer
Thank you for your attention! Well I don’t have much familiarity with programming just with design. I tried to use the Phpmailer class to create a simple contact form on my site, I looked here for…
-
0
votes1
answer43
viewsSend Cart Session by email with Phpmailer
I have this code that shows the results of the items in the cart <?php session_start(); require_once "functions/product.php"; require_once "functions/cart.php"; $pdoConnection = require_once…
-
0
votes0
answers32
viewsError in sending emails , is giving a form sending error
<?php if(!isset($origin, $content, $to)) exit(); if(!isset($titleName) || $titleName == NULL) { $titleName = ""; } else { $titleName = " por ".$titleName; } $phpmailer = true; $from = array(…
-
0
votes1
answer228
viewsDebian Linux Phpmailer: EOF Caught while checking if Connected
Hello! I’m having a problem using Phpmailer for an email sending via an external SMTP. When I try to run the code, it always shows the following error at the end: SMTP -> NOTICE: EOF Caught while…
-
0
votes1
answer915
viewsHow to insert an HTML file into a PHP variable?
Fala galera, I have a file called post_forms.phpthat picks up the results of $_POST[], must fill variables inside the file form_xxx.html, create a PDF with Dompdf lib and send with Phpmailer. See a…
-
0
votes2
answers509
viewsAnnex with phpmailer not enough
I am creating a system for sending resume, is working properly, but the attachment does not arrive. PHP: <?php $nome = strip_tags(trim($_POST['nome'])); $email =…
-
0
votes1
answer477
viewsSend invitation for meeting with Phpmailer
When creating a new event on the calendar, automatically sends an email to the person responsible for that event with the information that a new event has been marked in this way: try { $bdd = new…
-
0
votes1
answer393
viewsSend multiple mailing lists from Mysql with Phpmailer
I’m trying to send some emails with Phpmailer but always get an error message: Invalid address: [email protected], [email protected] I’ve checked everything I know but still can not, here my list is…
-
0
votes0
answers443
viewsE-mail sent by phpmailer function goes to spam
The code below sends the email properly, however, it goes to the spam box, be it for Gmail, Yahoo, Outlook etc. Is the problem in the code or the server that sends the email?! Just to indicate the…
-
0
votes2
answers866
viewsPHP - Phpmailer: stream_socket_enable_crypto(): SSL Operation
I am trying to send an email, I am using the Phpmailer library, and then the following error appears: stream_socket_enable_crypto(): SSL Operation failed with code 1. Openssl Error messages:…
-
0
votes1
answer56
viewsOnly send a product inside the email
I insert in 3 different tables and when the checkbox nay is different from empty send an email to the responsible. Everything is working correctly. I will show the code: $Carro = $_POST['Carro'];…
-
0
votes1
answer19
viewsMail to same page in php
People I am with a certain doubt and wanted more updates I have the following code // VALIDAÇÃO DE DADOS $chCC_Nome=$_POST['chCC_Nome']; $chCC_Assunto=$_POST['chCC_Assunto'];…
-
0
votes1
answer551
viewsPhpmailer - Email Formatting
I have a formatting problem when the email arrives in the inbox. Here is the HTML code: $mensagem = " <html> <body> <table>…
-
0
votes2
answers64
viewsPhpmailer works on a project created without a framework but does not work with a project created with Codeigniter
Initially, I created a project without any kind of php framework where I needed to use Phpmailer to send an email. It turns out that right now, I’m redoing the project using the Codeigniter…
-
0
votes0
answers740
viewsE-mail to various recipients in phpmailer
Hello, I’m having a problem, I’m trying to get phpmailer to send an email to several recipients at the same time, but only appear para:[email protected] just that and without showing the other…
-
0
votes1
answer119
viewsChange file name when sending email
I am sending emails with PHP mPDF files, but there is a situation where I recover a URL that contains a boleto, from that URL I take the content and saved in a temporary folder on the server, but I…
-
0
votes1
answer153
viewsPHP Mailer - email does not reach the inbox
I started using phpmailer by the very example of the git page, it gives everything ok, echo goes to "message sent", but the message does not arrive in the email box, someone can say why? <?php…
-
0
votes2
answers161
viewsPHP = Send Message + Message Thanks + (button) or refresh
Boas, I am bicão and I keep moving in my site I would like the help of you s: After the customer sent message appeared white screen with message of thanks. I fixed to return to the site but the…