General Question

ro_bot's avatar

Why doesn't my PHP email forum work with any other sender besides my SMTP email account?

Asked by ro_bot (60points) February 1st, 2011

My website, www.LPCstudents.com, hosted with www.freehostia.com, has an “Email this person” button, but the only time the email ever goes through is if I put into the “Your email” section MY SMTP mail account that is on the server (so it sends an email to itself). What’s wrong?

This is the PHP page: http://goo.gl/Dk1wd
The site is freeware: http://market.matterdaddy.com/

I would include the code, but I really don’t know what to include.

This is a classifieds type website (like craigslist), but for my College to help students buy and sell books to each other. Please help!

-Ben

Observing members: 0 Composing members: 0

3 Answers

jaytkay's avatar

Port 25 for SMTP may blocked on your network.

How to check whether SMTP port 25 is blocked?

ro_bot's avatar

thanks, I tried that but just got “request timed out”
.

Anyways, your answer lead me to finding the real answer.. so on freehostia.com I found a “rule” for making PHP email forums:

“Make sure that the e-mail account of either the recipient or the sender of the message is hosted here [...]”

So my PHP email forum on the classifieds website (www.LPCstudents.com) should work like this,

A visiter puts up an ad with their email address (recipient) and a customer fills out their email in the forum (sender).

Would this usually work with PHP? Is this not possible with freehostia.com? Would this work on other host providers? Or is there another way to follow the below and still get the same results: visiter posts the ad (recipient) and the customer replies (sender).

ro_bot's avatar

Well thanks, I guess I’ll have to do the following.

Because my host requires that one of the email’s, either the (recipient) or (sender), is in my host account I will try to change the code.

In the “email this person” button the “your email” will be hidden with a value = myhostemail. The customer will then have to add contact info in the email.

Thanks anyways,

ben

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther