Topic on Extension talk:ContactPage

Emails Not Delivered to RecipientUser

2
128.125.52.169 (talkcontribs)

I'm trying to send emails to the admin on the site (email confirmed), but they're not receiving it. I'm receiving the return email I requested. This is the code:


#ContactPage

wfLoadExtension( 'ContactPage' );

$wgContactConfig['default'] = array(

'RecipientUser' => 'Admin', // Must be the name of a valid account which also has a verified e-mail-address added to it.

'SenderName' => 'Contact Form on ' . $wgSitename, // "Contact Form on" needs to be translated

'SenderEmail' => null, // Defaults to $wgPasswordSender, may be changed as required

'RequireDetails' => true, // Either "true" or "false" as required

'IncludeIP' => true, // Either "true" or "false" as required

'MustBeLoggedIn' => false, // Check if the user is logged in before rendering the form

'AdditionalFields' => array(

'Text' => array(

'label-message' => 'emailmessage',

'type' => 'textarea',

'rows' => 20,

'required' => true,  // Either "true" or "false" as required

),

),

        // Added in MW 1.26

'DisplayFormat' => 'table',  // See HTMLForm documentation for available values.

'RLModules' => array(),  // Resource loader modules to add to the form display page.

'RLStyleModules' => array(),  // Resource loader CSS modules to add to the form display page.

);

$wgCaptchaTriggers['contactpage'] = true;

$wgHooks['SkinTemplateOutputPageBeforeExec'][] = function( $skin, &$template ) {

$contactLink = Html::element( 'a', [ 'href' => $skin->msg( 'contactpage-url' )->escaped() ],

$skin->msg( 'contactpage-label' )->text() );

$template->set( 'contact', $contactLink );

$template->data['footerlinks']['places'][] = 'contact';

return true;

};


Any ideas how to fix this?

128.125.53.209 (talkcontribs)

Update: When I submit a test email with an email such as test[at]hello.com, the admin email receives it, but when I send the test email as something [at] gmail.com or [at] outlook.com, it doesn't, even though I can get a copy of the email

Reply to "Emails Not Delivered to RecipientUser"