MyBB Community Forums

Full Version: Mailing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How does MyBB send emails to the registered users. What SMTP server does it use and how does it configure the whole thing.
I'm trying to make a mailing script and it'd be nice to know how MyBB sends mail. I know it's not a simple "mail()" function, so if anyone knows, please tell.
(2011-07-20, 03:40 PM)rekcah Wrote: [ -> ]How does MyBB send emails to the registered users.

By default is uses the mail() function.

(2011-07-20, 03:40 PM)rekcah Wrote: [ -> ]What SMTP server does it use and how does it configure the whole thing.

It doesn't use any by default, but you can use one such as gmail.

(2011-07-20, 03:40 PM)rekcah Wrote: [ -> ]I'm trying to make a mailing script and it'd be nice to know how MyBB sends mail. I know it's not a simple "mail()" function, so if anyone knows, please tell.

It's exactly that, the mail() function.
(2011-07-20, 03:43 PM)Malcolm. Wrote: [ -> ]
(2011-07-20, 03:40 PM)rekcah Wrote: [ -> ]How does MyBB send emails to the registered users.

By default is uses the mail() function.

(2011-07-20, 03:40 PM)rekcah Wrote: [ -> ]What SMTP server does it use and how does it configure the whole thing.

It doesn't use any by default, but you can use one such as gmail.

(2011-07-20, 03:40 PM)rekcah Wrote: [ -> ]I'm trying to make a mailing script and it'd be nice to know how MyBB sends mail. I know it's not a simple "mail()" function, so if anyone knows, please tell.

It's exactly that, the mail() function.

How do you know?
I tried to use that on my localhost but it didn't work, it gave me an error.
(2011-07-20, 03:46 PM)rekcah Wrote: [ -> ]How do you know?

Years of working with MyBB.

(2011-07-20, 03:46 PM)rekcah Wrote: [ -> ]I tried to use that on my localhost but it didn't work, it gave me an error.

Do you have a mail server on your localhost?
Look in ./inc/functions.php (starting in line 404) and in ./inc/mailhandlers/php.php to see how MyBB sends emails via PHP.
(2011-07-20, 03:48 PM)Malcolm. Wrote: [ -> ]
(2011-07-20, 03:46 PM)rekcah Wrote: [ -> ]How do you know?

Years of working with MyBB.

(2011-07-20, 03:46 PM)rekcah Wrote: [ -> ]I tried to use that on my localhost but it didn't work, it gave me an error.

Do you have a mail server on your localhost?

No, I don't think so. How do I get a mail server on my localhost then?

(2011-07-20, 03:49 PM)faviouz Wrote: [ -> ]Look in ./inc/functions.php (starting in line 404) and in ./inc/mailhandlers/php.php to see how MyBB sends emails via PHP.

I'll do that right away.
(2011-07-20, 03:50 PM)rekcah Wrote: [ -> ]No, I don't think so. How do I get a mail server on my localhost then?

Are you running Windows? If so, take a look at these:

http://www.tech2all.com/2006/03/12/how-t...il-server/
http://www.hmailserver.com/

(2011-07-20, 03:50 PM)rekcah Wrote: [ -> ]I'll do that right away.

I was really just mentioning it in case you were interested. It's basically the mail() function.
(2011-07-20, 03:53 PM)faviouz Wrote: [ -> ]
(2011-07-20, 03:50 PM)rekcah Wrote: [ -> ]No, I don't think so. How do I get a mail server on my localhost then?

Are you running Windows? If so, take a look at these:

http://www.tech2all.com/2006/03/12/how-t...il-server/
http://www.hmailserver.com/

(2011-07-20, 03:50 PM)rekcah Wrote: [ -> ]I'll do that right away.

I was really just mentioning it in case you were interested. It's basically the mail() function.

Thanks for all the info.