generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:dietercoopman/mailspfchecker
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 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
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,6 +1,6 @@ | ||
![showsql](https://banners.beyondco.de/mailspfchecker.png?theme=light&packageManager=composer+require&packageName=dietercoopman%2Fmailspfchecker&pattern=architect&style=style_1&description=A+Laravel+package+to+check+if+your+application+can+send+e-mail+in+name+of+a+given+address.&md=1&showWatermark=1&fontSize=100px&images=https%3A%2F%2Flaravel.com%2Fimg%2Flogomark.min.svg) | ||
|
||
# A package to check if you can send e-mail through a given mailserver in name of a given e-mail address | ||
# A Laravel package to check if you can send e-mail through a given mailserver in name of a given e-mail address | ||
|
||
[![Latest Version on Packagist](https://img.shields.io/packagist/v/dietercoopman/mailspfchecker.svg?style=flat-square)](https://packagist.org/packages/dietercoopman/mailspfchecker) | ||
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/dietercoopman/mailspfchecker/run-tests?label=tests)](https://github.com/dietercoopman/mailspfchecker/actions?query=workflow%3Arun-tests+branch%3Amain) | ||
|
@@ -35,11 +35,11 @@ composer require dietercoopman/mailspfchecker | |
|
||
```php | ||
|
||
if ($mailService->canISendAs("[email protected]")) { | ||
if ($mailSpfChecker->canISendAs("[email protected]")) { | ||
// the happy path | ||
} else { | ||
// you can not send e-mail in name of [email protected], but I can tell you what to do | ||
echo $mailService->howCanISendAs("[email protected]"); | ||
echo $mailSpfChecker->howCanISendAs("[email protected]"); | ||
// Generate a txt-record with a name of dietse.dev and the value v=spf1 ip4:#.#.#.# -all | ||
} | ||
``` | ||
|
@@ -48,11 +48,11 @@ composer require dietercoopman/mailspfchecker | |
|
||
```php | ||
|
||
if ($mailService->using('smtp.mandrill.com')->canISendAs("[email protected]")) { | ||
if ($mailSpfChecker->using('smtp.mandrill.com')->canISendAs("[email protected]")) { | ||
// the happy path | ||
} else { | ||
// you can not send e-mail in name of [email protected], but I can tell you what to do | ||
echo $mailService->using('smtp.mandrill.com')->howCanISendAs("[email protected]"); | ||
echo $mailSpfChecker->using('smtp.mandrill.com')->howCanISendAs("[email protected]"); | ||
// Generate a txt-record with a name of dietse.dev and the value v=spf1 ip4:spf.mandrill.com -all | ||
} | ||
``` | ||
|