E-mailing from PHP - server needs authentication

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
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

...

Post by Calimero »

Just to ask, as the topic is here.

I have the same problem, and already did all that - entering the SMTP and ACCOUNT, but what I can't figure out is:

My for ex: alibaba@cave.net requires authentication before you cen send anything trough it - as any other email account.

Where do I insert my password inside php.ini so when I want to use mail() inside my scripts - they are able to send that mail.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Split from modcp.php?t=26428

It's better if you reference an existing topic in your own new one - makes things less confusing in the long run.

Mac
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

I don't think that you can do anything to the php.ini to allow SMTP authentication. A check on the php.net/mail user comments shows that PEAR has this functionality and a bit of a Google also brought up this: http://phpmailer.sourceforge.net/

Mac
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

...

Post by Calimero »

Well I was thinking to look for this "module" inside phpBB forum source - because (although I haven't looked at it and am new to administering it) I saw this option (SMTP server, accont and username) to send from distant mail server.

Is this good, or is there a better ways (I will look into suggested link more deeper as soon as finish some piece of code)


Thanks for the resource.
Post Reply