Installing phpMailer and using it
Posted by: dzedward (---.dc.res.rr.com)
Date: February 17, 2008 09:11PM

I've downloaded phpMailer for php 5, but where do I put everything, or how do I install it?

Options: ReplyQuote
Re: Installing phpMailer and using it
Posted by: yfastud (Moderator)
Date: February 17, 2008 11:34PM


Options: ReplyQuote
Re: Installing phpMailer and using it
Posted by: toivo (---.nsw.bigpond.net.au)
Date: February 18, 2008 03:30PM

Hi,

You need to configure the STMP settings of PHP to point to another server in your LAN which runs an SMTP server, or to the SMTP server of your ISP. The SMTP settings are documented at [php.net].

You can then use the mail() function of PHP, or classes like phpMailer, to send messages. Where exactly you put phpMailer depends on your PHP application.

Whichever function you use to send mail, make sure that if you accept user input as email addresses, your application code must carefully validate the format of the email address your users enter and scrub the input data from any SQL injection attempts and attempts to use your server as a relay server. It is important to do some research on these security topics first.

Regards,

toivo
Sydney, Australia

Options: ReplyQuote


Sorry, only registered users may post in this forum.