Giter Club home page Giter Club logo

Comments (7)

Synchro avatar Synchro commented on May 20, 2024

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.

RaviWeb105 avatar RaviWeb105 commented on May 20, 2024

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.

Synchro avatar Synchro commented on May 20, 2024

Define what you mean by "not sending"; show the debug output with $mail->SMTPDebug = 2.

from phpmailer.

RaviWeb105 avatar RaviWeb105 commented on May 20, 2024

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 &quot;.&quot; 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.

Synchro avatar Synchro commented on May 20, 2024

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.

RaviWeb105 avatar RaviWeb105 commented on May 20, 2024

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.

Synchro avatar Synchro commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.