- Posts: 40
Before asking for help please read "How to request help" by clicking on that tab above here.
Question PHP mail or SMTP not working
- bukbr
- Topic Author
- Offline
- New Member
SMTP (gmail account and also my paid server settings)
PHP mail
Does not work! There's no error messages when sending a message!
URL: www.bc.adm.br/genealogiabuchmann/
What´s the problem?
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Perhaps the mail was deleted by a spam-filter?
There are lots of reasons why mail is not received.
Is this your own server? What to the mail logs show?
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- bukbr
- Topic Author
- Offline
- New Member
- Posts: 40
Well, it's not a problem with spam filter. I tried different e-mails and servers.
The host server is not mine... the site is hosted at: www.kinghost.com.br/
I called the host support, and phpmail is working fine, we made a test together, with smtp and php mail.
Where can I find the log?
Please Log in or Create an account to join the conversation.
- bukbr
- Topic Author
- Offline
- New Member
- Posts: 40
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Where can I find the log?
Many errors/logs are recorded in Administration -> Logs
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- bukbr
- Topic Author
- Offline
- New Member
- Posts: 40
Attached the log, after creation.
Thanks.
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Edit the file message.php and change lines ~207 from
to
Then try to send another message.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- bukbr
- Topic Author
- Offline
- New Member
- Posts: 40
I've created the user again...
After your instruction, I also tried to send an e-mail under Administration ==> Users, when I click the envolpe, I get a blank popup screen.
Thanks.
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Your server is configured to hide errors (great!) so we must use guesswork....
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- bukbr
- Topic Author
- Offline
- New Member
- Posts: 40
Now, OK, I see the composition message again, but, it's still don't sending mails...
Attached the log, again.
Thanks!
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Now, OK, I see the composition message again, but, it's still don't sending mails...
You didn't say the important thing.
webtrees *did* send the message. Your mail server accepted the message, and gave a "success" message.
If the message is not delivered, look to your mail server.
Your mail server may be very fussy about the name/address given in the sender/from fields.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- bukbr
- Topic Author
- Offline
- New Member
- Posts: 40
Or you mean about where my website is hosted?
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Well, it's configured to send using my gmail account settings...
Google recently changed the behaviour of their SMTP service. To continue to use it, you must change your google account settings to "allow low-security applications to connect".
Or try a different mail server....
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- bukbr
- Topic Author
- Offline
- New Member
- Posts: 40
Mail: '' does not match the expected structure for a DNS hostname, '' does not appear to be a valid URI hostname, '' does not appear to be a valid local network name
Attached how it's configured. The same settings works well on another installed software, in the same web server.
Att.
Please Log in or Create an account to join the conversation.
- Jackie
- Offline
- Platinum Member
- Posts: 4787
Please Log in or Create an account to join the conversation.
- bukbr
- Topic Author
- Offline
- New Member
- Posts: 40
Please Log in or Create an account to join the conversation.
- Jackie
- Offline
- Platinum Member
- Posts: 4787
I am not sure I understand the whole translation from Google Translate.
Please Log in or Create an account to join the conversation.
- bukbr
- Topic Author
- Offline
- New Member
- Posts: 40
Attached my gmail settings.
Also, teste with SSL as you said, you're right, I was wrong, , but still don't work. Error message: error Mail: Could not open socket
Regards.
Please Log in or Create an account to join the conversation.
- Jackie
- Offline
- Platinum Member
- Posts: 4787
In webtrees, there is three places where you need to set email.
1- Administration -> Site configuration -> Mail configuration tab
2- Administration -> Family trees -> your family tree -> General tab -> Contact information section
3- Administration -> Users -> your user account -> email column and lower (click the green + icon) « Preferred contact method »
To use a Google mail account, use the following settings: server=smtp.gmail.com, port=587, security=tls, username=xxxxx@gmail.com, password=[your gmail password]
Please Log in or Create an account to join the conversation.
- bukbr
- Topic Author
- Offline
- New Member
- Posts: 40
I made some changes, attached what I did:
After that, I teste again and got the following error: Unable to send a message. FROM:daniel.buchmann TO:teste (failed to send)
Please Log in or Create an account to join the conversation.