Use SMTP Value in mail() Function

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
devarishi
Forum Contributor
Posts: 101
Joined: Fri Feb 05, 2010 7:15 pm

Use SMTP Value in mail() Function

Post by devarishi »

Hi,


I have specified a particular IP in the php.ini configuration file to be used by the mail() function. However, there are exceptions when I want to use a different SMTP Server's IP to relay delivery of emails to External Domains. So, how to use SMTP Value in the mail() function. I think it has to be done in the Header Section of it...?


Any example?
Post Reply