Search
 
SCRIPT & CODE EXAMPLE
 

PHP

mail() function in php not working

CONFIGURE THESE SETUPS:

in your php.ini:
SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = my-gmail-id@gmail.com
sendmail_path = ""C:xamppsendmailsendmail.exe" -t"


in your sendmail.ini
smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
auth_username=my-gmail-id@gmail.com
auth_password=my-gmail-password
force_sender=my-gmail-id@gmail.com
Comment

mail function php not working

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.
Comment

PREVIOUS NEXT
Code Example
Php :: how to create constant in php 
Php :: Doctor Strange 
Php :: remove all items of an array except the last 5 in php 
Php :: php object is empty 
Php :: wordpress popular posts query 
Php :: laravel 8 carbon if date is today 
Php :: mac install php-fpm 
Php :: publish spatie 
Php :: close connection pdo 
Php :: apache use public folder as root 
Php :: array_unshift 
Php :: spaceship operator 
Php :: display all files in a directory php 
Php :: php include multiple files at once 
Php :: how to add multiple images in php 
Php :: set cookie on button click JavaScript 
Php :: global variable in laravel controller 
Php :: laravel array search blade 
Php :: laravel where() method 
Php :: php get array key 
Php :: how to create cookie in laravel 
Php :: how to add two string in php 
Php :: transient wp 
Php :: how do i use $variables as values in php 7 mysqli insert 
Php :: laravel where and blade 
Php :: how to create a php website 
Php :: wp php footer date automatically 
Php :: php gravity forms display 
Php :: AuthController 
Php :: create resource controller in admin folder laravel 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =