This is our last little (big problem) before we go live. Thanks for all the help, and hopefully this is simple and someone can help us fix it.
URL to your eFiction:
http://thedelphicexpanse.com.p8.hostingprod.com/efiction/index.php
Version of eFiction:
3.5.3
Have you bridged eFiction, if so with what?:
No.
Version of PHP: can be found out from your host
5.2.12
Version of MySQL: can be found out from your host
MySQL client version: 4.1.14
Have you searched for your problem: (yes/no)
Yes.
If so, what terms did you try:
sendmail, fixing mail, setup mail
State the nature of your problem: Copy and paste any errors you are receiving.
We have never gotten mail to work, either with the smtp or sendmail. Recently, I was able to activate sendmail and the host insists it should work correctly. I have left the fields blank, however, mail functions still do not work. They say my email script is not specifying the send_from correctly.
My PHP settings say:
sendmail_from no value
sendmail_path /usr/sbin/sendmail -t -i
They also say the mail path is - /usr/sbin/sendmail (So I assume, that this is correct.)
This is the error message in the email log: "2010 Oct 22 05:13:53 From address not in member domain. Message not sent."
Do you have a test account for us?
Delphicadmin1, porthos
Again, I'm thinking there's something very simple somewhere that I need to reset to make this work. If anyone has any ideas, let me know.
Do you have a value for the site email in your admin settings? If not, enter one. If that doesn't fix it, then this isn't a problem with the script. It's a problem with your sendmail configuration.
Yes, I have a value for that set.
I had an instinct it was a problem with the host, but they are insisting otherwise. But that's for the quick response and confirm. 🙂
What is the email you have set for your site email? Could it be flagged as an invalid e-mail?
I have tried several emails. I have it currently set at honeybee@thedelphicexpanse.com - an email I have tested both sending and receiving email.
I also tried its smtp settings, but I got the same "mail cannot be send please contact an administrator" error message.
Our url just ported, so we have just been able to try and use sendmail.
I've got someone more familiar with code looking into it - and she says that yahoo (our host) has some funky set ups. She's going to look into it when she has a moment. I'll get back to you if I solve the mystery.
edited to add:
Good news. Sendmail is working. I was able to use the contact members function no problem, which obviously requires a proper send from email. The only function that is not working is sending email to the site.
This seems like a totally new problem.
Sending e-mail to the site? What do you mean? You mean the contact page? It's using the same function as the contact members function.
Yes. This seems peculiar.
I can use all the mail user functions, and they work.
However, when I use the contact form (contact.php) - get the standard error message about the email not being sent.
I uploaded a fresh version of contact.php, it did not help.
Our mail error log seems the same:
http://thedelphicexpanse.com/tmp/mailError.log
So, for whatever when people try and email the site, it's not registering the correct email for sending and spitting back the error.
Could there be a ghost email somewhere saved in the tables that I can delete?
Sorry for the double post, but I wanted to clearly articulate this is an update.
Here's what I did:
I deleted our settings table.
I reinstalled the software and recreated a new settings file, and reset all the settings - including putting in the correct url and email information for our sendmail to work.
I made the default settings in the settings file our specific, correct information.
I can use sendmail to mail all the users.
The contact.php form still does not work. Same error message in the sendmail about it needing to be an email from our domain, but that is what is set in the settings.
Okay, this appears to be a problem with our host, yahoo.
Yahoo requires the sendmail_from address to be from its own host.
The contact.php works in such a way, that it plugs the users email into the sendmail_from value.
I sent myself an email through the contact form, which worked like a charm when I used an email with our domain. But that sort of defeats the purpose of the contact form to begin with.
Now, this problem means that no one using yahoo to host their efiction site, would be able to use the contact forms.
I hate to have our users live without contact forms, as well.
Is there any workaround for this? Can anyone suggest an approach?
I have a programming person who is willing to take a look - and I'll let you guys know what she says.
just edit contact.php to use your site's email (which I assume would be a yahoo email) and then append the user's e-mail to the message sent.
That's just what our programmer told us to do! Thanks for confirming so quickly.
Once the work around is done and tested, I'll come back and post so future people will know what to do in this situation.
Thanks Tammy!
So, we went in and changed the emailer.php file to reflect an email with our domain - bingo! Everything works.
Such a simple solution to what was a maddening issue! Thanks, Tammy. File this one under solved.
FYI. To mark an issue solved, just modify your initial post and change the subject line to put [SOLVED] at the front.
