PHP mail not working

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Post by ljCharlie »

So I don't have to turn on my smtp service on my serve? In this case, in the php.ini file setting I should have something like this, correct?

SMTP = charter.net

Is the above correct?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

If this is your local machine then you can use your ISP's SMTP server most likely. This will be the same as in your e-mail setup, normally along the lines of smtp.yourisp.com.

Where you've placed the information is correct but you may need to check on that SMTP server name.

Mac
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

you will also need to know if your ISP's smtp server requires authentication. The simple mail() function in php does not account for smtp authentication.

If you determine that it does, let me know as I wrote a mail function a while back that will allow you to send mail via smtp (with authentication).
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Post by ljCharlie »

Many thanks your help. I'll test again with smpt.charterter.net and see if it works. For the these questions:
can you send mail via another means through your smtp server? Do you even have an smtp server set up on the same machine that php is installed?
First, I don't have or have not setup a smtp server yet. This is a server and not my personal machine. What's the most efficient way, going through my ISP or setting my own smtp server? Anothe question, can I even setup my own smtp server by turning the services in my server?
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Post by ljCharlie »

Okay, using the smtp.charter.net works! I don't have to setup my own smtp server...would be nice if I know how to setup my own. Not sure if it is leagal to setup my own smtp too.

In anycase, the email works! Thanks to all of you.
Post Reply