Skip to content

Permission denied, wrong credentials when using sendgrid-php 6.0.0 on PHP 7.2.3 #584

Closed
@fterrag

Description

@fterrag

Issue Summary

When attempting to call $sg->client->mail()->send()->post($mail); per the Quick Start in README.md, I'm receiving the error "Permission denied, wrong credentials". I have verified that the API key I am using is correct and also have tried creating new API keys.

Where it gets interesting is that if I downgrade the sendgrid-php library to version 5.0.0, I'm able to successfully send an email.

Any thoughts here would be helpful! Thanks

Steps to Reproduce

Run the code from the Quick Start in README.md.

Technical details

  • sendgrid-php Version: master 8db454e (6.0.0) and 9fb94f6 (5.0.0)
  • PHP Version: 7.2.3 on macOS 10.13.3 installed via Homebrew

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: easyfix is easy in difficultystatus: work in progressTwilio or the community is in the process of implementingtype: bugbug in the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions