franvergara66
franvergara66

Reputation: 10784

Send emails using PHP mail function, configuration of the mail server

I am making a web application (html + php + apache + mysql) which is on a Debian server, but when I try to send any mail using the php mail function, it is not simply sent me and throws an error. I guess I should install some smtp mail service. What do you recommend that is easy for a novice user settings?

I install a library called sendmail in localhost that simulates that smpt service in WAMP server, but when I upload the code to the production server simply does not send mail.

I researched on some mail servers like postfix, but the information I get is confusing to me. I want to recommend me some effective guide, or any server that is easy to configure for a novice user in the subject.

sorry if the question is obvious, but I want effective information

Upvotes: 0

Views: 535

Answers (1)

madz
madz

Reputation: 1873

For sending a mail you just simply need a smtp client that sends a mail to a destination. You don't need to install any smtp server for just sending a mail.

A smtp server is for receiving mails( and other stuff about mails).

All you need to make php sending a mail is to install a smtp client like sendmail

then edit php.ini to be like this:

sendmail_path= sendmail -t -i

EDIT: I guess debian has sendmail by default.

Upvotes: 2

Related Questions