I have created a php script that sends emails but it doesn't seem to work. I have narrowed down the problem to the fact that the script is not authenticating on the SMTP server, as the problem i was encountering is "SMTP server response: 451 Greylisted" After googling around i found that it is due to authentication. Can someone please give me a hand with completing the script as i assume i need to add some form of ini_set("username", "username"); and the same for password but this doesn't seem to work. Any help would be much appreciated.