• 0

Senging Email with PHP?


Question

This is basically an expert question ...

When sending e-mail with php, it's easy enough with the mail() function. What about if my SMTP server requires authentication ?

/edit

Ok i am more confused: under windows, the smtp server IP is a parameter. Does this mean that under unix you have to set up the smtp IP AND username+pass in the php.ini file ... but windows can't use authentication or something ?

Oh man i am confused :confused: .

edit/

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Well, to clear things up a bit. Under unix/linux, php uses the sendmail program.

You dont need to use an smtp server because the system IS an smtp server.

When you run a script through php, it runs in your linux login/pass, so you dont have to worry about username password.

I hope this clarifies a bit, and that I am not saying something stupid. lol

Link to comment
Share on other sites

  • 0

Most web servers are set up to fake being the mail server, that way it sends an e-mail directly from the sendmail program, and makes it seem that the mail server sent it.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.