I am using default PHP mail() function to send emails as below . I have two email servers. How can I set my code to use these two mail server? I am running my PHP code on Linux.
mail($currEmail, $HOT_EMAIL_SUBJECT, $body, 'From: '.$pollsConfig_senderEmail);
Use PEAR::Mail, you can specify a SMTP server with it.