Comments (7)
This makes no sense. Your subject line string already has other spaces in, and whether they come from the name or the literal text makes no difference.
First of all double check what you're actually receiving:
var_dump($_POST['name']);
Then try these combinations to find out where it's going wrong:
$subject = 'Hello Ravi a! Welcome to Habits!';
$name = 'Ravi a';
$subject = 'Hello '.$name.'! Welcome to Habits!';
$subject = $_POST['name'];
from phpmailer.
This makes no sense. Your subject line string already has other spaces in, and whether they come from the name or the literal text makes no difference.
First of all double check what you're actually receiving:
var_dump($_POST['name']);
Then try these combinations to find out where it's going wrong:
$subject = 'Hello Ravi a! Welcome to Habits!'; $name = 'Ravi a'; $subject = 'Hello '.$name.'! Welcome to Habits!'; $subject = $_POST['name'];
with $subject = 'Hello Ravi a! Welcome to Habits!';
the emails are not sending
from phpmailer.
Define what you mean by "not sending"; show the debug output with $mail->SMTPDebug = 2
.
from phpmailer.
Define what you mean by "not sending"; show the debug output with
$mail->SMTPDebug = 2
.
2024-04-16 10:32:23 SERVER -> CLIENT: 220-p3plzcpnl445408.prod.phx3.secureserver.net ESMTP Exim 4.96.2 #2 Tue, 16 Apr
2024 03:32:23 -0700 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
2024-04-16 10:32:23 CLIENT -> SERVER: EHLO apis.journyapps.com
2024-04-16 10:32:23 SERVER -> CLIENT: 250-p3plzcpnl445408.prod.phx3.secureserver.net Hello apis.journyapps.com [208.109.22.165]250-SIZE 52428800250-8BITMIME250-PIPELINING250-PIPECONNECT250-AUTH PLAIN LOGIN250 HELP
2024-04-16 10:32:23 CLIENT -> SERVER: AUTH LOGIN
2024-04-16 10:32:23 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2024-04-16 10:32:23 CLIENT -> SERVER: [credentials hidden]
2024-04-16 10:32:23 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2024-04-16 10:32:23 CLIENT -> SERVER: [credentials hidden]
2024-04-16 10:32:23 SERVER -> CLIENT: 235 Authentication succeeded
2024-04-16 10:32:23 CLIENT -> SERVER: MAIL FROM:<[email protected]>
2024-04-16 10:32:23 SERVER -> CLIENT: 250 OK
2024-04-16 10:32:23 CLIENT -> SERVER: RCPT TO:<[email protected]>
2024-04-16 10:32:23 SERVER -> CLIENT: 250 Accepted
2024-04-16 10:32:23 CLIENT -> SERVER: DATA
2024-04-16 10:32:23 SERVER -> CLIENT: 354 Enter message, ending with "." on a line by itself
2024-04-16 10:32:23 CLIENT -> SERVER: Date: Tue, 16 Apr 2024 10:32:23 +0000
2024-04-16 10:32:23 CLIENT -> SERVER: To: [email protected]
2024-04-16 10:32:23 CLIENT -> SERVER: From: Journy Apps <[email protected]>
2024-04-16 10:32:23 CLIENT -> SERVER: Subject: Hello Ravi Amrutiya this is for the test
2024-04-16 10:32:23 CLIENT -> SERVER: Message-ID: <[email protected]>
2024-04-16 10:32:23 CLIENT -> SERVER: X-Mailer: PHPMailer 6.8.0 (https://github.com/PHPMailer/PHPMailer)
2024-04-16 10:32:23 CLIENT -> SERVER: MIME-Version: 1.0
2024-04-16 10:32:23 CLIENT -> SERVER: Content-Type: text/html; charset=iso-8859-1
2024-04-16 10:32:23 CLIENT -> SERVER:
2024-04-16 10:32:23 CLIENT -> SERVER: demo
2024-04-16 10:32:23 CLIENT -> SERVER:
2024-04-16 10:32:23 CLIENT -> SERVER: .
2024-04-16 10:32:28 SERVER -> CLIENT: 250 OK id=1rwg6x-008SCc-2g
2024-04-16 10:32:28 CLIENT -> SERVER: QUIT
2024-04-16 10:32:28 SERVER -> CLIENT: 221 p3plzcpnl445408.prod.phx3.secureserver.net closing connection
{"success":"1","message":"Mail sent successfully!"}
from phpmailer.
This shows an entirely successful send. It also reveals that you're using GoDaddy, which is never a good thing, and you're also using an old version of PHPMailer.
from phpmailer.
It also reveals that you're using GoDaddy,
->ya it is used by our client we can't do anything in that.
"This shows an entirely successful send"
->but still we are not receiving the emails
and you're also using an old version of PHPMailer.
->which is the new version nad you mean in new version this is resolved?
from phpmailer.
Not receiving and not sending are entirely different problems. PHPMailer is responsible only for sending, and here you have shown that it is working fine; Your submission to GoDaddy's server is successful. What happens to the message after that is nothing to do with PHPMailer, but you should expect to receive bounces if onward delivery from there fails. If you don't receive anything, it's GoDaddy's mail servers that are at fault, which is nothing unusual. Alternatively, check your spam folder.
It's not "resolved" in the new version, because there is nothing to resolve, but you should always be running latest versions.
from phpmailer.
Related Issues (20)
- Setting Up PHPMailer with Microsoft Azure - Encountering Errors HOT 3
- addBCC doesn't work without AddAddress HOT 10
- SMTP Error: Could not connect to SMTP host. STARTTLS command failed Unrecognized command 'STARTTLS' HOT 9
- "Invalid address: (cc): " HOT 2
- Gmail
- hi i have problem- -function open ssl_pkey_free is depraced since php 8.0 HOT 2
- send differents body for mulitple bcc addresses in one send command HOT 4
- T
- Add the possibility of changing @phpmailer.0 string in asHtml method when composing image cid. HOT 2
- Missing header termination in multipart/mixed container HOT 2
- Issues with sending emails HOT 13
- 405 Not Allowed HOT 4
- SMTP Authentication not working with special characters like "ยง" HOT 1
- Withdraw/recall HOT 2
- edebug() should probably also get ride of "\r\n" when using LoggerInterface HOT 1
- postfix installation problem in PHP 5.5 test suite
- How do I only get the SMTP ERROR from debugging? HOT 1
- Can you add possibility to customized dsn by recipient ? HOT 4
- 6.2.0+ corrupts HTML body HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpmailer.