MyBB Community Forums

Full Version: SMTP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I have my forum installed. But I can't have registrations. I have before on this forum started an subject. They say that I need an SMTP host. But where can I fill in the information. And how I find an SMTP host. And How works that SMTP host. I hope Someone can help me.

Greetings Gijs,
My english is not very good sorry about that
Can't you use PHP mail??

[Wiki: Help:Mail] (Broken link, head over to docs.mybb.com instead)

And you don't have to send an email to people for registrations.....
My PHP mail din't work. And I don't understand what write in that wiki.

Were must I place this File, And what name I can give it?
<?php
error_reporting(E_ALL);

$to = '[email protected]';

if(mail($to, 'Testing mail', 'This is a mailing test to see if PHP mail works.'))
{
     echo 'Mail was sent by PHP';
}
else
{
     echo 'PHP could not send the mail';
}
?>

And must I replace this code
mail($to, $subject, $message, $headers);
By this or somthing other
ini_set("sendmail_from", " [email protected] ");
mail($to, $subject, $message, $headers);

Can you help me with this please.
Greetings Gijs,