We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE4 emails not going out via Communicate

How Do I?

Angie Herrera's avatar
Angie Herrera
357 posts
7 years ago
Angie Herrera's avatar Angie Herrera

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!

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

Are you sending to a single address, comma-delimited, member group, using CC and/or BCC or a combination? It looks like it’s thrown into batch mode, but doesn’t have any valid email addresses to send to, an odd combination for sure to not throw an error.

       
Angie Herrera's avatar
Angie Herrera
357 posts
7 years ago
Angie Herrera's avatar Angie Herrera

Single address.

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

What is the from address and what is the to address?

       
Angie Herrera's avatar
Angie Herrera
357 posts
7 years ago
Angie Herrera's avatar Angie Herrera

From address is my work email myname at block81.com and the recipient address is a Gmail address.

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

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.

       
Angie Herrera's avatar
Angie Herrera
357 posts
7 years ago
Angie Herrera's avatar Angie Herrera

Here’s what’s output when I add that code: https://d.pr/i/n9gcm2

I added the code so it looks like this:

public function send()
 {
    var_dump($_POST);
exit;
       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

Perfect, that looks good. If you get rid of the debugging code and try to send the same request, are you still getting the odd batch alert?

       
Angie Herrera's avatar
Angie Herrera
357 posts
7 years ago
Angie Herrera's avatar Angie Herrera

Unfortunately, yes. Question: would a custom config (for multi-environment dev) cause any issues. I don’t have any email settings in config.php.

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

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?

       
Angie Herrera's avatar
Angie Herrera
357 posts
7 years ago
Angie Herrera's avatar Angie Herrera

Yep, you bet. Where should I send? Your email? Slack?

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

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.

       
JCOGS Design's avatar
JCOGS Design
71 posts
6 years ago
JCOGS Design's avatar JCOGS Design

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.

       
Derek Jones's avatar
Derek Jones
7,561 posts
6 years ago
Derek Jones's avatar Derek Jones

So are you getting the same batch message that the OP had?

       
JCOGS Design's avatar
JCOGS Design
71 posts
6 years ago
JCOGS Design's avatar JCOGS Design

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.

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.