Forum Moderators: coopster

Message Too Old, No Replies

connecting to a remote mail server

         

alexh

11:06 am on Dec 4, 2003 (gmt 0)

10+ Year Member



I am trying to send a mailout using a php script hosted on my server to connect to a seperate mail server. The server uses pop3 and is QuickMail Server 2. Can anyone explain what PHP script I use to connect to the mail server. I am currently using the mail() function but this is simply sending from my development machine.

Thanks.

percentages

11:26 am on Dec 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



PHPMailer available at [phpmailer.sourceforge.net...] lets you connect to an external mail server.

alexh

11:58 am on Dec 4, 2003 (gmt 0)

10+ Year Member



Thanks, I will check it out.

alexh

9:18 am on Dec 11, 2003 (gmt 0)

10+ Year Member



I have been trying to get PHPMailer to connect out to a remote host without any success. Following the online tutorial I set up the following code:

$mail = new PHPMailer();
$mail -> isSMTP();
$mail -> HOST = "my ip";

However it keeps telling me it can't make the connection, stating the port as a possible problem. It is using the standard port 25, which is the correct port for my mail server. I have trawled through the online help and posted a message to the PHPMailer discussion group without any success.

Any thoughts?