-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not sending email when subject has first and last name in it #3049
Comments
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:
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 |
Define what you mean by "not sending"; show the debug output with |
|
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. |
It also reveals that you're using GoDaddy, "This shows an entirely successful send" and you're also using an old version of 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. |
Please check these things before submitting your issue:
SMTPDebug = 2
setphpmailer
, but search first!Problem description
->when sending email with the name as "Ravi a" the email is not sending ,when sending with "Ravi" email Is sent
not accepting the space in name variable which we get from post request
Code to reproduce
Debug output
in outout we are getting email is sent
The text was updated successfully, but these errors were encountered: