Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

PHP Mailer

Chechi03

Recruit
Basic Member
Messages
3
Reaction score
0
Points
16
Need help for PHP Mailer, ano po ba maganda gamitin yung mas madali sana iconfigure.
 
Eto config sa PHPMailer, mas okay gamitin kasi yan lalo kapag nag-aaral ka pa ng coding. Ofcourse free pa

PHP:
use PHPMailer\PHPMailer\PHPMailer;

use PHPMailer\PHPMailer\SMTP;

use PHPMailer\PHPMailer\Exception;



//Edit mo to with ur directory of PHPMailer

 require 'C:\xampp\htdocs\PHPMailer\PHPMailer\PHPMailer\src\Exception.php';

   require 'C:\xampp\htdocs\PHPMailer\PHPMailer\PHPMailer\src\PHPMailer.php';

   require 'C:\xampp\htdocs\\PHPMailer\PHPMailer\PHPMailer\src\SMTP.php';



$mail = new PHPMailer(true);



 $mail->isSMTP();                                        

        $mail->Host       = 'smtp.gmail.com';                

        $mail->SMTPAuth   = true;                                

        $mail->Username   = '[email protected]';                  

        $mail->Password   = 'urpassword'; //u can search pano kunin yung password sa mail set-up using ur gmail                            

        $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS;      

        $mail->Port       = 465;                                

 

        //Recipients

        $mail->setFrom('[email protected]', 'Title');

        $mail->addAddress($to); //$to is the address u want to send or the recipient



$mail->isHTML(true);                                  //Set email format to HTML pwede kang maglagay ng html designs here

        $mail->Subject = 'Enter your subject Here';

        $mail->Body    = "Enter your message!";

$mail->send();

for more info, you can visit the github site for phpmailer

PHPMailer Github
 
Isa sa sakit sa ulo ng web developer to, struggle ako kapag gagamit na ng Login feature at registration ang website na binibuild ko at may mailer and activation code na kasama.
 
Isa sa sakit sa ulo ng web developer to, struggle ako kapag gagamit na ng Login feature at registration ang website na binibuild ko at may mailer and activation code na kasama.
maglagay ka lang ng randomize na activation code na nag-eexpire after maactivate yung account (set sa column to blank) and maglagay ka ng verify column na naka boolean 0,1 ;)
 
Back
Top Bottom