Couldn't get mail() to work if my life depended on it

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
miphesto
Forum Newbie
Posts: 1
Joined: Thu Feb 24, 2005 5:26 pm
Location: Scotland

Couldn't get mail() to work if my life depended on it

Post by miphesto »

Hi guys ,
As part of a uni project I am trying to inpliment email in a website project I am buliding. I had apache, PHP & mysql installed at home. I tried to send mail using the mail() command with no sucsess. I installed a packet sniffer to see what was going on when the mail was sent. Activity was noted but no smtp. I was infact trying to bounce the mail off my ISP's smtp server. I get the feeling that the connection to the server has been made but without authentication the server will not forward the mail that I send to it.

I now have a hosted site with my own smtp server but this problem still remains.
Outlook requires username and password to connect to a pop3 server and authentication for the smtp server.

The main question I have is : How can I pass username and password details to an smtp server and is that what I need to be doing to send mail.

I have tried quite a lot of code samples from various sources all with the same effect....no mail sent
Can anyone help me out.................................. :? :?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

might want to look at phpmailer.. I believe it supports authentication.
Post Reply