PHPMailer Script Hosting Location

Avatar
  • Answered
Just wondering - this may be a ridiculous question - but can I host the php script on a different server than the html form is displayed on? I'm going to give it a shot - but I thought I'd try to save some time if it isn't possible due to security.

thanks.
Avatar
johnpaulb-imhs1
Hello,

Thank you for your question. While, it is possible, it depends on the specifics of your setup, and how you are passing the information between servers.

Typically, I prefer to have the scripts I am running on the same server, since it usually helps with load time, as it is not fetching something elsewhere.

Also, when you are pulling from separate servers/location, it can be more susceptible to connectivity issues, etc. This can be affected by the reliability of the server hosting the script.

Thank you,
John-Paul