Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,195,014 members, 7,956,756 topics. Date: Monday, 23 September 2024 at 06:16 PM

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

Nairaland Forum / Science/Technology / Programming / Programmers In The House Pls Come In And Solve My Hassle (440 Views)

Come And Solve This Coding Problem / Please Programmers In The House,what Are The Benefits Of Programming / See Money Making Programmers In Nairalans (2) (3) (4)

(1) (Reply) (Go Down)

Programmers In The House Pls Come In And Solve My Hassle by dodgelord: 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: 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

1 Like

Re: Programmers In The House Pls Come In And Solve My Hassle by dodgelord: 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)

Data Scientist / Closed / I Noticed All META Apps I.e Facebook And Co Have Disappeared From My Phone.

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 12
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.