Hi!
I’m trying to test out email settings for a staging site and having trouble. When I send from the Communicate page, it looks like it sends but the page just refreshes with this message: https://d.pr/i/hS8GqL
I’ve tried SMTP, PHP mail, and Sendmail. All three have the same issue as above. Not sure if it’s a setting or something else. This is EE 4.0.9.
Thanks!
Ok, if you can’t share the actual address, try sending an email from your communicate page to me: [email protected]
If it doesn’t work to my address, and your email config doesn’t matter, it is probably environmental. A submission which is redirected by .htaccess for instance, without forwarding the POST data, or a server security filter stripping the “to” field from POST.
If that’s the case you could confirm by editing ExpressionEngine/system/ee/EllisLab/ExpressionEngine/Controller/Utilities/Communicate.php and adding:
var_dump($_POST);
exit;
to the top of the send() method and check for missing or altered data.
If the dynamic config is setting email config in a separate file, possibly. The error though resembles what would happen if you tried to send to zero addresses, which the form validation prevents. So I’m trying to see how your addresses could be nulled even when intact in POST.
Is it possible to get access to this site?
A support ticket would be best so the credentials are encrypted and not stored permanently. I’m away from my desk at the moment but will take a look as soon as I am able. Please include FTP as I will need to step debug the php to figure out why it’s failing in your environment.
Did this get resolved? I have a similar (but not identical) issue - having big difficulties persuading EE(5.2.1) to send emails - tried SMTP and phpMail, and mail server does not appear to be logging any transactions from EE, but EE thinks it has sent the messages (messages sent via the Communicate utility are logged and no sending error is reported).
I tried the var-dump thing suggested above, and it looks like the POST data is properly formed.
Is there any way to get better log information out of EE to find out what happens when it actually tries to send the message? (i.e. what response from server)?
Thanks for any help.
No - not getting anything: complete the Communicate form and hit send and a confirmation message pops up, and message appears in “sent” list. But nothing apparently gets as far as the mail server. So trying to find out what happens between the POST dump (which implies all info from form is present) and the end of the process.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.