Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

EbrahemSamer's avatar

How to send an Email using PHP ?

I am on bluehost server and I find out that phpmailer is the best way to send an email.

What smtp to use ? the username is username of bluehost account ? the password is password of bluehost account ?

thanks

0 likes
2 replies
larsonator's avatar
Level 3

Looking at the bluehost, it doesn't look like they have their own SMTP server. Looks like they are partnered with office 365 if you pay for one of the larger packages, and at that its only included for a month before you have to pay Microsoft too.

if you do go that route, you can use the microsoft email account as your login, and use microsofts SMTP server.

Please or to participate in this conversation.