iam new to php. i want to send a test mail to my gmail account from my application. i tried many code but i cant get the mail. so plz help me reagrding this.
i need a code to send mail to gmail account from my application

Member Avatar for rajarajan2017

Use PHPMailer and the

require("../PHPMailer_v5.1/class.phpmailer.php");
	$mail->SMTPAuth = true;
	$mail->SMTPSecure = "ssl"; 
	$mail->Host = "smtp.gmail.com";
	$mail->Port = 465;

It will work.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.