mirror of
https://github.com/moparisthebest/mailcatcher
synced 2025-03-11 06:50:12 -04:00
Make PHP code example consistent
This commit is contained in:
parent
0b6d041b93
commit
dd180d96cb
@ -63,17 +63,15 @@ You can do this in an [Apache htaccess file](http://php.net/manual/en/configurat
|
||||
|
||||
If you've installed via RVM this probably won't work unless you've manually added your RVM bin paths to your system environment's PATH. In that case, run `which catchmail` and put that path into the `sendmail_path` directive above instead of `/usr/bin/env catchmail`.
|
||||
|
||||
Don't forget to set 'From' header.
|
||||
Don't forget to set 'From' header, either via the `sendmail_from` directive or explicitly:
|
||||
|
||||
Code example:
|
||||
~~~
|
||||
<?php
|
||||
```php
|
||||
$to = 'to@domain.tld';
|
||||
$subject = 'Subject';
|
||||
$message = 'Message';
|
||||
$headers = 'From: from@domain.tld';
|
||||
mail($to, $subject, $message, $headers);
|
||||
~~~
|
||||
```
|
||||
|
||||
### Django
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user