mail function php not working

CONFIGURE THESE SETUPS:

in your php.ini:
SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = [email protected]
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"


in your sendmail.ini
smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
[email protected]
auth_password=my-gmail-password
[email protected]

4.2
4
Leevit2bvr 105 points

                                    Although there are portions of this answer that apply to only to the usage of themail() function itself, many of these troubleshooting steps can be applied to any PHP mailing system.

There are a variety of reasons your script appears to not be sending emails. It's difficult to diagnose these things unless there is an obvious syntax error. Without one you need to run through the checklist below to find any potential pitfalls you may be encountering.

4.2 (5 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
function mail php doesn't work in server function mail php doesn't work mail not sending from server in php after adding from in mail function is not working in php php mailer not working mail is not sending mail php mail not sending in php php mail is not working in server why php mailer not send mail on organition mail html not working in mail php php send mail not working with "http" email by mail function is not working in php send email php not working php in mail snt not working mail function is not working in php php send mail not working php mail function not sending email php mail function not working on localhost php email not working php send mail is not working on server php in setn mail not working mail php not working mail is not sending in php html not work in php mail() cc in mail in php is not working mail php not sending mail function working but mail is not sending in php mail php not working on server send mail using php not working php mail function is working but not getting email php mail() function not working php send email not working php mail function not works php mailto function not working mail fucntion not working php mail function in php not working Mail () not working in PHP php mail not sending mail in php not working why php mail function not working php 7 mail not working php html mail not working mail does not work php php mail function not working cpanel php mail() not working mail() not working in php how to check mail function is working or not in php php mail if not working php mail function doesn't send anything php mail not sending email mail php function not working php mail function not working localhost mail not sent php function why mail is not sending in php php mail function not working with domain addresses not send mail using simple mail function in php mail function not working in php my admin mail function not working php mail function in php not working on windows server mail function in php not working on server php mail not working on server php mail function not working php mail() on not working from mail in php is not working php mail function not working on server mail function doesn't work php mail() function in php doesn't work in production mail function in php doesn't work in production mail function not working in localhost php php mail does not work mail function not working in php hostinger php send mail not working mail function not working in php php mail not working php mail function not work on prod mail() php not working mail function php not working
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source