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

Please dont ignore - configuring swift mailer

I have a domain hosted on bluehost and an account on Vultr. (But have not setup any server, dont know how to go about that yet). My website is still in development and I want to implement a mailing system so once a user register's, an activation mail is been sent.

To configure swift mailer it ask for a smtp_server, I have reach out to bluehost, it turns out I must have a host account with them. Where do I get this smtp_server from? (cant I just use my Gmail?)

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! You're in luck. Google offers a free SMTP server that you can use, but obviously, you need to know how to configure everything to make it work with their server.

Might I suggest this article on how to set up SMTP through Google?

Hope this helps! :sparkles:

Thanks @ jenifer. I just tried using gmail as you have said but no luck it says... Expected response code 220 but got code "", with message "". can you help me fix this?