darbandi
darbandi

Reputation: 19

how to send mail with multi mta in php?

I've created a server that has multiple IP addresses. By PHP have also created a newsletter system. How can I send an email from the all server IP's? Do I have to install several MTA? Or by the PHP code to do this?

Upvotes: -1

Views: 393

Answers (1)

symcbean
symcbean

Reputation: 48367

Please, please don't attempt to run your own MTA. While setting an MTA is trivial, setting up an MTA which is secure and reliable is very, VERY difficult. That you need to ask to ask a question like this shows you have a lot of learning ahead of you before you have the requisite skills.

You don't need a seperate MTA for each IP address. You don't need a separate MTA for each MX domain.

It's very unusual to buy low-end internet connectivity for hosting without getting supporting such as DNS and mail thrown in. If your provider already offers these, then use the services there. If they are not provided, then there are lots of expert third party companies out there (although do beware that many of them exit to support UBE).

If you are using a remote MTA and are running PHP on anything other than MSWindows then you have 2 choices:

1) use a SMTP capable PHP mail library (e.g. swiftmailer)

or

2) install a rudimentary mail relay such as nullmailer on the Linux/Unix host.

Upvotes: 1

Related Questions