Topic: Webmaster e-mail option not working

hi,

I've just installed PunBB on my site - all seems to be working, except when a user registers the confirmation email sent is from [username]@[server URL] instead of "forums@[mydomain].com" as specified in the e-mail section of the admin options.

Also, when I'm logged in as administer and e-mail a user via the forum the same thing happens, the Webmaster e-mail option is ignored and instead the return-path and from address are concocted from my webhosting user info.

Is this a standard problem?  (I did a quick search but couldn't find any relevant info...)

Re: Webmaster e-mail option not working

I think this is your host messing with the From header of the e-mails. What host is it?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Webmaster e-mail option not working

It's bluehost.com

I found this in their knowledge base:

"Formmail from Matt's Script Archive will not send from an email address other than my main bluehost account."(from: http://helpdesk.bluehost.com/kb/index.p … amp;id=196)

Although it's perl-related It seems to be a similar issue.

I'll try experimenting with PHP's mail() function and maybe see if I can get some assistance on Bluehost's forums.

Do all of PunBB's various e-mailing tasks use the same pun_mail() function?  ie. if I find a solution do I just need to change include\email.php ?

Re: Webmaster e-mail option not working

Yes, they all use pun_mail().

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Webmaster e-mail option not working

I didn't have much luck with tinkering with email.php (I've not got much PHP experience)

but it turns out that sending with SMTP works OK - I just added "localhost" as the SMTP server address in PunBB's email options.