How to send mail using SMTP configurations

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
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

How to send mail using SMTP configurations

Post by vinoth »

Hi all

I am sending mail through mail() function but it won't send mail to some yahoo ids and some SBC Global mail ids.

Is it possible to send mail through smtp configuration
please suggest where I have to modify the smtp hostname,password,username.

Thanks in advance
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Yes it's possible. If your host runs Linux or UNIX (most probable) then you want be able to do it using mail(), but Swift Mailer will allow you to do this:

http://www.swiftmailer.org/
Post Reply