-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invitation email not being sent #171
Comments
Hello and thanks for the ticket. Can you confirm that this is the plugin that you use for email sending? https://wordpress.org/plugins/wp-smtp/ Perhaps the best recommendation I can make for further debugging is to collect the return value of $email_results = bp_send_email( 'invite-anyone-invitation', $to, $bp_email_args );
error_log( print_r( $email_results, true ) ); Instead of |
Thank you for the response. Yes, that is indeed the plugin. I instituted your logging code beginning on line 1379 but nothing is getting logged. I attempted to run the second line as |
I can't give in-depth advice on how best to run error reporting across platforms and configurations. For instance, it could be that logging is being blocked at the WP level ( The following should be config-independent: $file = 'some/writeable/log/path/on/your/server.log';
$log_entry = print_r( $email_results, true ); // You must do this in order to create a string out of the WP_Error object
error_log( date( '[Y-m-d H:i:s]' ) . ' ' . $content . "\n", 3, $file ); Hopefully that helps, or perhaps you can rig up some other way of logging (even a var_dump() or something). |
I have the logging code using this:
If I use $content as indicated in your code the log is blank. Using $log_entry seems to return as simple binary of 1. Here are the logs: [2022-11-17 17:52:01] Line 1 is using $content. Line 2 is using $log_entry |
Sorry, yes, The fact that you're getting a 1 means that You say that Mailgun is not showing anything; do the wp-smtp logs show any outgoing mail? I guess you could try digging deeper into the |
We are trying to integrate IA into our BP setup. In testing, we have found that although a success message is displayed after sending an email invite that the email itself is not being sent. We are using the WP SMTP plugin to send transactional emails via Mailgun. I can confirm that:
We have run the fix for missing IA templates from https://gist.github.com/boonebgorges/03945bad2fd6870f608eb5affd853f83 as stated by you in https://wordpress.org/support/topic/invitation-emails-not-sent/. While the missing email templates were created, it did not restore the sending of the invitation.
As also outlined in https://wordpress.org/support/topic/invitation-emails-not-sent/, If line 1358 of the by-email.php is commented out then the emails finally get sent. However, this is just a band aid since the change would be overwritten on every IA update.
Please advise.
And thank you for your work!
The text was updated successfully, but these errors were encountered: