Topic on Extension talk:ContactPage

Summary by Kghbln

'RecipientUser' must be specified.

BradLeeBH (talkcontribs)

Hi, I'm getting the following error message on Special:Contact DESPITE specifying a valid email in LocalSettings.php

No email address

This user has not specified a valid email address.

I'm using MW 1.25.2 with the master branch of ContactPage, (although 1.25 stable does the same thing).

Syntax I'm using is: 'SenderEmail' => 'admin (AT) smiliepedia.org',

NOTE: This *is* also the default $wgPasswordSender which also works for sending/receiving emails, just not with this extension.

Can you please help me fix this? Thanks, @BradLeeBH

Kghbln (talkcontribs)

Hmm, what happens when you set 'SenderEmail' => null,?

BradLeeBH (talkcontribs)

Same error. That is why I am so stumped.

I have the exact same email list in $wgPasswordSender and $wgEmergencyContact, and I am able to send and receive emails to and from that address through the normal wiki Special:EmailUser mechanism.

Kghbln (talkcontribs)

Something else must cause this issue. I just tested this on a MW 1.25.1 wiki and it is working fine: That's the LocalSettings.php for the particular wiki.

One other thing I can come up with right now: The user added to the "RecipientUser" parameter must have added and verified an e-mail for the whole setup to work.

Kghbln (talkcontribs)
BradLeeBH (talkcontribs)

Hi,

That was my problem. I had not added a RecipientUser, as I thought that having either adding a valid e-mail address to SenderEmail or using "null" would be sufficient.

As you have clearly explained however, it STILL requires the RecipientUser to be added.

Thanks

Kghbln (talkcontribs)

Great that things now work out cool for you!

Andreas Plank (talkcontribs)

I don't know, is https://phabricator.wikimedia.org/T124849 related to this?

$contactSender = new MailAddress(
  $config['SenderEmail'] ?: $wgPasswordSender,
  $config['SenderName']
);

Why if $config['SenderEmail'] is set then this setting is not used? Just a guess, that there is something disarranged

Andreas Plank (talkcontribs)

in line 407 from git commit 2014-01-29 it reads:

$csender = $wgContactSender ? $wgContactSender : $wgPasswordSender;

and a commit later on 2014-02-19 it reads:

$csender = $config['SenderEmail'] ?: $wgPasswordSender;

Why ? It seems like (German: Verschlimmbesserung) worsen the functioning, right? Or am I overlooking something?

Kghbln (talkcontribs)

In case this is related to the bug reported by infinite-dao which you linked it will be better to continue the discussion on phabricator since from experience this is the place there the programmers look at things if they do it at all.