Page 1 of 1

to send mails using smtp in php

Posted: Mon Jun 16, 2008 2:19 am
by pradeepknv
i want to send mail from php script using smtp server.i set configurations in php.ini file. and i used the php mail() function to send mails.but i am getting error. can anyone please tell me how to send mails?

Re: to send mails using smtp in php

Posted: Mon Jun 16, 2008 3:23 am
by Ollie Saunders
What's the error? What's the code?

Re: to send mails using smtp in php

Posted: Mon Jun 16, 2008 3:26 am
by onion2k
Use Swiftmailer.

Re: to send mails using smtp in php

Posted: Mon Jun 16, 2008 8:29 am
by Ambush Commander
It's likely that your php.ini is misconfigured. Please post.