Hi,
I am trying to use phpmailer with xampp and using gmail account to send email through xampp localhost.
I would request if any tutorials are there where I can tryout the code for sending email.
Thanks
ST
Hi,
I am trying to use phpmailer with xampp and using gmail account to send email through xampp localhost.
I would request if any tutorials are there where I can tryout the code for sending email.
Thanks
ST
just have a look at search results for PHPMailer SMTP Tutorial
You should find the PHPMailer documentation gives you all you need. Try it first and if you run into any specific problems you can ask for help here.
if (filter_input(INPUT_SERVER, 'SERVER_NAME', FILTER_SANITIZE_URL) == "localhost") {
$mail->isSmtp(); // Local Host:
$mail->Port = EMAIL_PORT; // Local Host Port: (Usually 587)
} else {
$mail->isSendMail(); // Remote Host:
}
The above might help you out? About a half-year ago my PHPMailer script stopped working all together and after doing a Google search I came up with this solution. It all depends on how your remote email server handles emails, but the local server side should work fine for you. Like already stated reading the PHPMailer documentation will help tremendously.
Thanks for the inputs and valuable suggestions. I am trying it. If I get any error I will post my query along with the error.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.