Topic on Project:Support desk

"Email confirmation" does not send a mail

6
Breadncup (talkcontribs)

Hi,

Clicking "Confirm your email address" should send a mail to the user, but it looks no mail is sent.

I'm using sharing web hosting server via Bluehost.com, and it doesn't seem to send.

In this case, what should I do? What should I check?

Ciencia Al Poder (talkcontribs)

MediaWiki will try to use the default settings for sending emails, as defined in php.ini. You can try to specify custom values in $wgSMTP, if you also have PEAR's Mail package available. Try to contact your hosting inquiring if they have mail settings configured in php.ini. Depending on how cheap your hosting is, it may have SMTP blocked (some may enable it on request)

Breadncup (talkcontribs)

I've checked php.info and sendmail_path = "/usr/sbin/sendmail -t -i", SMTP = "localhost", and smtp_port = 25

Would it be good enough?

Or should I set $wgSMTP explicitly?

Ciencia Al Poder (talkcontribs)
Breadncup (talkcontribs)

Thanks, but the following code is working.

<?php
mail("my.private.address@gmail.com","My subject","My message body");
?>

( Of course, my.private.address has changed to valid email address )

The above code is running fine in the bluehost.

I've tried to set up wgSMTP, but no luck so far.

Coyote897 (talkcontribs)

I had similar. Couldn't get postfix working (which was default on server) but was able to get sendmail working. In send mail I have to add all the domains (of the email, like gmail.com, live.com) to the relay list of servers allowed otherwise it doesn't work.