Best way to send mail with PHP


#1

Hi, I am making new social network script and I want to add mail function. I added simple PHP mailing function, but it often shows my messages as a spam. What is good, but simple PHP mailing class?


#2

PHPMailer

Setup SPF rules too, your host should help with this


#3

Downloaded it tomorow, but I have never used it before…


#4
dtbaker said

PHPMailer

Setup SPF rules too, your host should help with this

+1

OR you can also use swift mailer


#5

I’d agree with using swift mailer.


#6

I coded mailing function with PHP and it seems to work fine now. I would research PHP mailer and swift mailer these days.