Topic on Extension talk:CIForms

Email notification settings clarification

7
School4schools (talkcontribs)

Doing my best to follow instructions for installation/ configuration. I've run the terminal commands and the form works fine w/ output to the special page.

However, I can't figure out email notification settings.

As best I can understand, the proper place to add the user for default email notifications in the file /extensions/CIForms/includes/CIForms.php ? It's the only place I can find 'email to' => null. I changed the null to 'username' but it doesn't produce an email. (I have $wgEnableEmail enabled, and I assumed the terminal command installed PHPmailer (per composer update --no-dev inside the folder extensions/CIForms)

The /extensions/CIForms/vendor/phpmailer seems to have installed ok.

Many thanks for your help. I'm code illiterate and just want my wiki to function properly -- your extension will be a great asset for it. Here for my wiki https://school4schools.wiki

Thomas-topway-it (talkcontribs)

no, it's in LocalSettings.php, as follows:

$wgCIFormsEmailTo = 'your email address';

School4schools (talkcontribs)

Tks for quick reply. That function didn't show in LocalSettings.php I added it manually on last line, but it still doesn't work. So I have now in LocalSettings.php :

wfLoadExtension( 'CIForms' );

define( 'CIFORMS_VALUE_IF_NULL', 0 );

define( 'CIFORMS_VALUE_OVERRIDE', 1 );

define( 'CIFORMS_VALUE_APPEND', 2 );

$wgCIFormsEmailTo = 'name@domain.com';

Thomas-topway-it (talkcontribs)

hello, yes, it is a parameter, it must be added in LocalSettings.php.

Can you also verify thatwgEnableEmail is set to true and the wiki has been already configured for sending emails ?

School4schools (talkcontribs)

That setting is "true" but when I ran a test an email via the special page http://YOURWIKIURL/index.php?title=Special:EmailUser/ it returned a php error. I ran some Cpanel tests and reset DNS, so will see if that changes the behavior by tomorrow. Tks for your help.

School4schools (talkcontribs)

Thank you for your help. I had my host verify email functionality, and they ended up screwing up the DNS... ugh. Now a few weeks later, I fixed it myself w/ full site email functionality, but email still not working on the wiki. So I followed the email troubleshooting guide: Manual:$wgSMTP - MediaWiki to replace the default settings in LocalSettings.php $wgEmergencyContact = "apache@🌻.invalid"; and $wgPasswordSender = "apache@🌻.invalid"; w/ the admin email and it's all working now. Thank you!

Thomas-topway-it (talkcontribs)
Reply to "Email notification settings clarification"