Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mail.md #135

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 1.8/faq/mail.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ It should say `Mail was sent by PHP` and there should not be any errors displaye

Some webhosts place restrictions on PHP mail. For example, some require that the `From` address be an address configured on their server; other hosts may disable the PHP mail function completely.Check with your webhost if there are any restrictions in place for sending mail via PHP.

If your webhost only allows sites to send mail from their own domain, edit the file `inc/functions.php` to try a workaround fix.
If your webhost only allows sites to send mail from their own domain, edit the file `inc/mailhandlers/php.php` to try a workaround fix.

Find:
```php
mail($to, $subject, $message, $headers);
$mail = new PhpMail();
```

Add before:
Expand All @@ -61,7 +61,7 @@ Add before:
The final result of the edit should be:
```php
ini_set("sendmail_from", "[email protected]");
mail($to, $subject, $message, $headers);
$mail = new PhpMail();
```

`YOURDOMAIN` in the above code must be replaced by the domain where the forum is hosted.