Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method SendGrid\Email::addTos() #127

Closed
gustavomanolo opened this issue Feb 17, 2015 · 4 comments
Closed

Call to undefined method SendGrid\Email::addTos() #127

gustavomanolo opened this issue Feb 17, 2015 · 4 comments

Comments

@gustavomanolo
Copy link

Hi, i'm having a PHP Fatal error when trying to call the "addTos" function with the following message:
Call to undefined method SendGrid\Email::addTos()

Did yo remove this function in the latest release, or why is still in the README documentation?

Thanks

@eddiezane
Copy link
Contributor

Thanks for letting us know this. The addTos method was moved to addTo and does not currently support arrays being passed in. Sorry if it caused you an issue. I'll be sure to get the README updated soon.

eddiezane added a commit that referenced this issue Mar 12, 2015
@Haritsinh
Copy link

Haritsinh commented Jun 19, 2019

Hey @thinkingserious ,@eddiezane , i am little bit confused by reading this because now on 19 june 2019 i have used addTos method and it is perfectly working and you have said we have moved it to addTo.

do you guys have added addTos method now or what because it is there in Mail class, And it is working perfectly in my code, i have arrived here by answer of stackoverflow question in which user has referenced this so please clarify, thanks.

@eddiezane
Copy link
Contributor

@Haritsinh it's been a few years since I've worked at SendGrid but maybe @thinkingserious can help.

@thinkingserious
Copy link
Contributor

Hello @Haritsinh,

The current version of this SDK does have an addTos method as defined here.

With best regards,

Elmer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants