/    Sign up×
Community /Pin to ProfileBookmark

Inter server communication with PHP

I just got a PHP e-mail system set up on my web server only to discover that the mail server wasn’t on the same machine. The mail server pipes the mail to a script, which then passes it on to the mail software which processes it. The problem is that with them being on seperate machines this can’t happen. MySQL (on this machine) doesn’t support remote connections either so I can’t do it that way.
I don’t have a clue how to get past this and couldn’t find any way to do it in PHP. One idea I had was to pass the data on with a POST request, however I couldn’t find a way to do this. If anyone could help me do this, or has any other ideas, I would be very greatful.
Thanks
Benoni

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@shimonDec 20.2004 — If I understand you correctly (of which I'm not entirely confident!) this may be something you can solve at a configuration level. What I mean is, you can configure PHP to use an external mail server rather than 'localhost'. Check out the manual here:

http://www.php.net/mail

Though I guess the mail server would have to be set up to accept connections from your web server.

Is this roughly what you're thinking of, or have I missed your point entirely?
Copy linkTweet thisAlerts:
@BenoniauthorDec 20.2004 — Thanks for your reply. The problem was in getting mail from the mail server to the webserver where there there was a web interface. I have just sorted that by posting the data to the web server as a HTTP request with fsocketopen().

Benoni
×

Success!

Help @Benoni spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...