Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

PHPMailer not working with SendGrid

I am using phpmailer's SMTP seems to not be working with SendGrid and wanted to know if anyone could tell me how they got theirs working if they used send grid thanks :)

2 Answers

Hi Tunde,

You should be able to enter ping sendgrid.com at the command prompt and get the IP address. I got 198.37.144.73. There are also add-ons for most browsers that will give you that information plus more that I wouldn't know what to do with.

Jeff

Its not the ip address i think the site hosting my website has blocked a port that i need to use

Chris Shaw
Chris Shaw
26,676 Points

Hi Tunde,

SendGrid have some information about which ports on their website, see the following link. https://sendgrid.com/docs/User_Guide/smtp_ports.html

I've read this before and the info is alright the issue is that i think my isp which is hosting my site has blocked the ports that i need to use

Chris Shaw
Chris Shaw
26,676 Points

If you're unsure about this you can use a tool like the Open Port Check Tool which automatically fills your IP address but you can replace it with any IP, simply enter the port and it will tell you.

My theory was right these ports are closed by my isp thanks for your help