Closed nilesjohnson closed 3 weeks ago
I added rDNS and outbound email is working (tested to gmail and Office365). Do we need MX records for inbound email or does it just send?
Update Just tested via application - the first test worked but went to spam then I changed app_local
to send from test.mathmeetings.net, updated the SPF, DKIM. Will test in a day or two and see if it's improved
I checked on this just now; here's what I got:
app_local
setting I need to change, or did you already do that?About the middle item, I don't plan to receive any email to that address, but maybe it indicates some other underlying issue? I tried checking for a spam mailbox in the webmail client, but I get an error message "Cannot get options: Host is required if port is specified".
Feel free to split this into two issues, but I think now that #25 is working the email functions need to be updated to explode
/foreach
I have a simple function testEmailSend
to try to test email independently of other issues.
https://github.com/sethjohnson1/conflist5/blob/752f691cc67046d75b7c45ec723d5ec634c32aed/src/Controller/ConferencesController.php#L558
It checks for the curator cookie and, if detected, re-sends the confirmation email for a given announcement, but with all the address fields (To, Cc, Bcc) replaced by Configure::read('site.test_email')
. So, for example, visiting /conferences/testEmailSend/1122
should resend the email for announcement 1122. This was working on the old server, but is failing silently now.
Uncommenting the debug($mailer)
line will give an error, but maybe you can use it to verify that all of the transport details are correct? (e.g., is the port correct?) Once this is working, I can try to figure out the explode/foreach issue for multiple addresses.
Separately, emailing directly from the web client does seem to be working, with dkim and spf marked correct by gmail. But, replying to that address still doesn't go through.
The "transport" is a generic PHP/openssl which is why CakePHP docs don't say much about it. I still can't get verify_peer
to work with a valid SSL cert OR self-issued with a CA file - I think it has something to do with LE but not sure. Doesn't matter much anyway
I set the server rDNS back to the main one, it always hits that hop on the relay anyway.
Just sent you a test, see how it does!
This is great!!!
I added a new address and put the credentials in the app config file; app gives a success message, but emails don't appear to actually send. Tried just using the webmail for that account, and those emails don't appear to send either; I don't see any warnings or error messages.