to send mails using smtp in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pradeepknv
Forum Newbie
Posts: 3
Joined: Thu Jun 12, 2008 2:18 am

to send mails using smtp in php

Post 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?
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Re: to send mails using smtp in php

Post by Ollie Saunders »

What's the error? What's the code?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: to send mails using smtp in php

Post by onion2k »

Use Swiftmailer.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Re: to send mails using smtp in php

Post by Ambush Commander »

It's likely that your php.ini is misconfigured. Please post.
Post Reply