User not receiving email to confirm email address in MediaWiki - mediawiki

I'm setting up a MediaWiki page. I go to Preferences after I have logged in with my admin account. I try to send a confirmation email at my email address. I don't receive anything.
I'm the owner of all files and I have rwx rights. LocalSettings.php: $wgEmailAuthentication = true; . But $wgEmergencyContact and $wgPasswordSender have something like "apache#Œinvalid (it contains some invalid characters and literally the word invalid). I have changed them to myusername#domain and it still doesn't send a confirmation email. Maybe I'm putting the domain in wrong format? Does the problem have to do with LocalSettings or is it something else?

and welcome to stackoverflow
what about this setting : Manual:$wgSMTP
Is it setup ?
PS: feel free to follow mediawiki tag, many things to learn through other's questions

Related

Opencart- order emails and enquiry form email ending up in admin's junk mail folder

New order emails and enquiry form emails, both ending in admin's spam/junk folder. I am not able to rectify it. Using 'mail' configuration instead of 'smtp' in the console. Have put '-F' in front of mail parameters. Tried using the port '587', '465' for for smtp.office365.com. Need help!
For those running into this issue with OpenCart here are some things you should verify.
Ensure your email address in System->Store->Email matches the email used in System->Mail->SMTP Username
In System->Mail->SMTP Hostname you may need to add the prefix "ssl://" or "tsl://" before your mail.servername.com this is not very clear and easy to miss if you're not sure which one to use, try ssl:// first then tsl:// and send yourself a test email with the contact form.
If using Cpanel, ensure there is an SPF record for your domain. This is found in Cpanel->Email->Email Deliverability
To test if emails are actually working the best way is to login into a test account and send a "Contact Us" email. If the page goes blank after submission, there is likely an issue with settings.
I have found using the OpenCart Default "Mail" setting will always result in emails being marked as spam, so you'll need to get in there and set them up with SMTP.

How to change the content of Email templates in MediaWiki

I have restricted the account creation to only bureaucrats. That is, only bureaucrats can create accounts for other users.
A confirmation email is sent to the newly created user on successful account creation in MediaWiki. But, would like to know where can i change the content of Confirmation Email template that i receive in MediaWiki.
Where can i find the various email templates used in MediaWiki?
For eg: Content of Confirmation Email upon successful account creation is as below.
Someone, probably you, from IP address ::1,has changed the email
address of the account "Admin" to this address on admin's Wiki!.
To confirm that this account really does belong to you and reactivate
email features on admin's Wiki!, open this link in your browser:
I would like to change the above content but couldn't find where these email contents are stored or from where it is invoked.
Any help is appreciated.
The email templates are stored as normal system messages, in the MediaWiki namespace, e.g. MediaWiki:Notificationemail_body_changed.
You can filter out all relevant system messages like this: Special:AllMessages&prefix=Notificationemail
Currently, there are four:
MediaWiki:notificationemail_body_changed
MediaWiki:notificationemail_body_removed
MediaWiki:notificationemail_subject_changed
MediaWiki:notificationemail_subject_removed
Those pages will give you the message in your wiki's default language. To change a specific language (that a user might have chosen), use MediaWiki:notificationemail_subject_removed/ar (Arabic), MediaWiki:notificationemail_subject_removed/en (English), etc
#leo's answer is correct for messages sent regarding email authentication.
All other email messages as related to changes in pages, etc., are stored in system messages that start with enotif_, and you can see them all using this filter:
Special:AllMessages&prefix=enotif_.
The messages for vanilla* MediaWiki are:
enotif_impersonal_salutation
enotif_subject_deleted
enotif_subject_created
enotif_subject_moved
enotif_subject_restored
enotif_subject_changed
enotif_body_intro_deleted
enotif_body_intro_created
enotif_body_intro_moved
enotif_body_intro_restored
enotif_body_intro_changed
enotif_lastvisited
enotif_lastdiff
enotif_anon_editor
enotif_body
And you can see them all using this filter:
Special:AllMessages&prefix=enotif_
* People using extension:Echo have a few other messages to change.

Get username without requiring it

There's an interesting problem I'm facing as an educator. I want to collect user names in a form, but when I do that, it automatically enables students to email themselves a copy of their response.
I believe there's a way to somehow poll who's responded. When you enable the "one response per user" option, it doesn't require a stored user name. I know the information is out there somewhere - I just don't know how to get to it.
Any help would be greatly appreciated!
EDIT: I neglected to be specific about the coding aspect - apologies. I'm generating the form programmatically, and wanted to know if the information is stored somewhere in the response when the one-response-per-person option is enabled. After more digging, it appears that the easiest way to deal with this is to use an extension to handle disabling the email option.
Thanks for all your help!
you cant get the user email unless you enable that option like you mentioned. yes google might internally know who you are if you were already logged-in but its not perfect because using chrome incognito mode for example would not detect the email.
one way I can think is to:
1) with apps script generate an array of all student emails and a random password. dump to a private spreadsheet and use as your database for the next script.
2) in your forms, ask first as a form question the custom username and password.
3) on another script you can generate form urls with prefilled usernames and passwords and email each student their own custom form url.
when the student opens the form to respond, the username and password would be prefilled already.
not perfect but a malicious user would need to hack the email and if they can hack their email then they could also impersonate the user logged-in.

how to require 'confirm by email' to create an account in mediawiki

I have a site built on mediawiki. How do I ensure that to create a new account the user must first confirm his email by clicking a link sent to his email address?
There is no built-in way to do that that I know of although you can get pretty close. The $wgEmailConfirmToEdit variable let's you prevent people from editing unless they have confirmed their email address. Just set:
$wgEmailConfirmToEdit = true;
in your LocalSettings.php

Exchange 2007 sending from accepted domain

We're opening an US office shortly and i've added the new domain (domainus.com) to our exchange 2007 environment as an "accepted domain" and added some addresses as SMTP addresses to a few members who can receive properly - yey :).
We want to send from these addresses too but I can't figure out how to make this work, I get the error:
"You are not allowed to send this message because you are trying to send on behalf of another sender without permission to do so. Please verify that you are sending on behalf of the correct sender, or ask your system administrator to help you get the required permission. "
I'm not well versed in exchange so i'm not sure what to search for to try and figure it out. I've tried:
Adding themselves to send to "Delivery options > send on behalf" and I edited the default email address policy for the organisation (which wasn't being applied before.... so I don't think it would make any difference).
Any suggestions welcomed.
Thanks in advance.
I know it isn't much help, but I was having the same issue, and getting the same error. I ran across this page that lists 4 ways to do it. None of them are what you would expect, except for the application that you have to purchase.
I do think if you have a gmail account that you could send as the alternate email address, and all replies etc would come back to the exchange account.
On the user account, in Active Directory, under Security, under the SELF account, select the Manage Send As Permission option.