-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debug sendMail. Now sends mail correctly. No change in your codes is …
…necessary
- Loading branch information
Showing
4 changed files
with
46 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
index.php | ||
index.php | ||
sendmailCorpse.htm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ | |
"Kerogs\\KerogsPhp\\": "src/" | ||
} | ||
}, | ||
"version": "1.2" | ||
"version": "1.3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,4 +108,25 @@ addLog( | |
Encrypt or decrypt a log file. | ||
```php | ||
encryptDecryptFile(string $filePath, bool $encrypt): void | ||
``` | ||
``` | ||
|
||
### Kerogs\KerogsPhp\Sendmail | ||
You can send your e-mails directly without rewriting the code. | ||
|
||
#### Example of us | ||
```php | ||
require_once __DIR__.'/vendor/autoload.php'; | ||
|
||
use Kerogs\KerogsPhp\Sendmail; | ||
|
||
const from = "[email protected]"; | ||
const to = "[email protected]"; | ||
|
||
$sendmail = new Sendmail(from); | ||
|
||
if($sendmail->sendMail(to, "Subject test", "hello world"))) | ||
echo "Email sent successfully"; | ||
else | ||
echo "Email not sent"; | ||
``` | ||
The default content type is ``text/HTML`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters