Extension talk:SendGrid

About this board

Disable PHP mail() function

Notahashtag (talkcontribs)

Is it necessary to disable PHP mail() function if using this extension? It seems MediaWiki is making a call to mail() function but I've not setup SMTP, sendmail (etc.). I receive email via SendGrid ok.

For example, Special:EmailUser sends mail via SendGrid ok but I get error:

Unknown error in PHP's mail() function.

$wgSMTP is set to false (as by default). I installed the package using tarball download/curl. ~~~~

X-Savitar (talkcontribs)

Thanks for reporting @Notahashtag. Currently, I'm doing some upgrades to the extension code-wise so this issue will be resolved there. I'll let you know when it's done. :)

X-Savitar (talkcontribs)

@Notahashtag, check now and let me know if everything has been fixed.

You can resolve this thread if that is the case or let me know if you have any questions. Thank you!

Skp098 (talkcontribs)

Hey @X-Savitar the problem still exists at my end. The email is being sent properly by SendGrid but also getting "Mailer returned: Unknown error in PHP's mail() function."

Currently I'm using MW 1.37.3. I have already set $wgSMTP as false. Could you please look into it.

X-Savitar (talkcontribs)

@Skp098, did you update your extension to have the code that fixed this problem? Let me know then I'll try to reproduce this on the exact MW version you mentioned.

Skp098 (talkcontribs)

Yes I have updated the extention to it's in the latest version which supports MW 1.37.3 as well.

X-Savitar (talkcontribs)

@Skp098, can you have a look at: Topic:S4p9e9e1bywkis2b? Let me know if that solves the problem. It's a configuration problem at this level.

Reply to "Disable PHP mail() function"
There are no older topics