Search
 
SCRIPT & CODE EXAMPLE
 

PHP

warning: mail(): failed to connect to mailserver at "localhost" port 25, verify your "smtp" and "smtp_port" setting in php.ini or use ini_set()

Change SMTP=localhost to SMTP=smtp.gmail.com
Comment

warning: mail(): failed to connect to mailserver at "localhost" port 25, verify your "smtp" and "smtp_port" setting in php.ini or use ini_set() in

//try to set IP Address of SMTP server or the Machine Name
$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host         = "IP Address or machine name";  // specify main and backup server
$mail->SMTPAuth     = true;     // turn on SMTP authentication
$mail->Username     = 'Username';                     //SMTP username
$mail->Password     = 'Password';
$mail->Port         = 25;
Comment

PREVIOUS NEXT
Code Example
Php :: array reduce associative array php 
Php :: php get tempfile 
Php :: add 1 day php datetime 
Php :: delete after 30 days in php 
Php :: check if a string contains a substring in php 
Php :: add log in laravel 
Php :: laravel where multiple conditions 
Php :: php mkdir with 777 permission 
Php :: php requuire once 
Php :: sendinblue send mail 
Php :: Installation request for phpoffice/phpspreadsheet 1.4.0 - satisfiable by phpoffice/phpspreadsheet[1.4.0] 
Php :: convert array to object php 
Php :: csv file to associative array php 
Php :: Larvel Print last query 
Php :: wp php get_the_category posts loop 
Php :: get am pm 12 hour timee laravel 
Php :: laravel withHeaders bearer 
Php :: Laravel required if it meet some value from another field 
Php :: cakephp 2.x join 
Php :: remove non-uppercase character php 
Php :: php select option 
Php :: php laravel intervention base64 to image save 
Php :: how make factory and seeder in laravel 8 
Php :: laravel username validation 
Php :: how to get current location latitude and longitude in php 
Php :: store emoji in php 
Php :: php datetime set timezone 
Php :: send html email laravel 
Php :: wpdb num_rows 
Php :: laravel forcefill 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =