₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,032 members, 8,448,289 topics. Date: Monday, 20 July 2026 at 07:11 AM

Toggle theme

Programmers In The House Pls Come In And Solve My Hassle - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingProgrammers In The House Pls Come In And Solve My Hassle (531 Views)

1 Reply (Go Down)

Programmers In The House Pls Come In And Solve My Hassle by dodgelord(op): 10:20am On Aug 25, 2021
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "dodgelord@gmail.com";
$to = "peterleeads@gmail.com";
$subject = "Checking PHP mail";
$message = "PHP mail works just fine";
$headers = "From:" . $from;
if(mail($to,$subject,$message, $headers)) {
//echo "The email message was sent.";
} else {
//echo "The email message was not sent.";
}







i dont know i cant send email to my Gmail account. it is not working



any solution for me
Re: Programmers In The House Pls Come In And Solve My Hassle by etoluw: 3:19pm On Aug 25, 2021
try sending it to your site email address first.
Re: Programmers In The House Pls Come In And Solve My Hassle by Jas80: 4:04pm On Aug 25, 2021
dodgelord:
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "dodgelord@gmail.com";
$to = "peterleeads@gmail.com";
$subject = "Checking PHP mail";
$message = "PHP mail works just fine";
$headers = "From:" . $from;
if(mail($to,$subject,$message, $headers)) {
//echo "The email message was sent.";
} else {
//echo "The email message was not sent.";
}







i dont know i cant send email to my Gmail account. it is not working



any solution for me
Are you on local server?
Re: Programmers In The House Pls Come In And Solve My Hassle by dodgelord(op): 4:12pm On Aug 25, 2021
Jas80:
Are you on local server?
no sir

currently on live server
Re: Programmers In The House Pls Come In And Solve My Hassle by webapi: 4:51pm On Aug 25, 2021
dodgelord:
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "dodgelord@gmail.com";
$to = "peterleeads@gmail.com";
$subject = "Checking PHP mail";
$message = "PHP mail works just fine";
$headers = "From:" . $from;
if(mail($to,$subject,$message, $headers)) {
//echo "The email message was sent.";
} else {
//echo "The email message was not sent.";
}







i dont know i cant send email to my Gmail account. it is not working



any solution for me
Change the from to an email of your domain name. For example info@yourdomainname.com. Hope this helps
Re: Programmers In The House Pls Come In And Solve My Hassle by dodgelord(op): 10:04pm On Aug 25, 2021
webapi:
Change the from to an email of your domain name. For example info@yourdomainname.com. Hope this helps
i don it....

working fine thanks
1 Reply

Come And Solve This Coding ProblemTo All The Programmers In The House, I've Got A Question, Please Don't Ignore �Top 10 Richest Programmers In Nigeria234

Top 2 Questions Clients Ask Before Working With A Fintech Company.Check Out This Website CloneBest IT & SIWES Training In Ibadan – Gain Hands-on Tech Experience At Dataslid