PHPMailer
Posted: Tue Jun 29, 2010 7:47 pm
Hi. I am using php mailer to send emails. I have this bit of code
I cant see how placing my smtp password in this php file, and then placing it on my server, will be very secure. Whats the normal procedure to adding passwords to php files, and how can i protect them?
cheers
Code: Select all
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Port = 25; // set the SMTP server port
$mail->Host = "mail.tester.com"; // SMTP server
$mail->Username = "info@tester.com"; // SMTP server username
$mail->Password = ""; // SMTP server passwordcheers