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 :: cpanel composer update kill 
Php :: laravel excel 
Php :: laravel use cache 
Php :: indirect modification of overloaded property has no effect laravel 
Php :: single row data from table in laravel 
Php :: php fn closure 
Php :: php delete file 
Php :: php loopthrough object 
Php :: In PackageManifest.php line 122: Undefined index: name 
Php :: $session php 
Php :: laravel field types from database field type 
Php :: Get class of an object variable php 
Php :: add data to the collection laravel 
Php :: merge pdf php fpdf 
Php :: error handling in laravel 
Php :: wordpress add action 
Php :: php reverse string 
Php :: what is actullay work model in laravel 
Php :: auto logout when session expires laravel 
Php :: auto complete order 
Php :: php laravel rount price to 99 
Php :: laravel $browser-keys alt click 
Php :: php integer to js integer 
Php :: php to display variables 
Php :: Laravel: Foreign id does not have default value 
Php :: 100 rows update php 
Php :: <?php function find total( $my_list ) { //Insert your code here } ? 
Php :: do php 
Php :: Script to create AdminLTE in a Laravel project 
Php :: php executor 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =