Skip to content

Commit

Permalink
Merge branch 'main' of github.com:dietercoopman/mailspfchecker
Browse files Browse the repository at this point in the history
  • Loading branch information
dietercoopman committed Sep 4, 2022
2 parents 9c00ced + 0995253 commit 1710096
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@0.1.0
uses: aglipanci/laravel-pint-action@1.0.0

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
10 changes: 5 additions & 5 deletions README.md
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)
Expand Down Expand Up @@ -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
}
```
Expand 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
}
```
Expand Down

0 comments on commit 1710096

Please sign in to comment.