hello..
i've been trying to use IIS to relay email.
In my php.ini I have set the SMTP server as localhost and the port as 25, and have filled in the email address that I want to send from.

but it always return error like this:
Warning: mail(): SMTP server response: 564 <eg:aaa@hotmail.com>: Relay access denied in
<folder name> on line 8

Why is it like this? and how can I solve this?
I don't know how to relay email any other way.

thanx

    Hello anne,
    Although I have never tried sending message with IIS , so i cannot say why this error message is coming.

    But i would suggest you another way to make things work on your system. I have done it too..and it works fine.

    I would suggest you to download QK SMTP Server(freely available on internet ) and install it on your computer. Then whenever you will be sending the mails your program would be using the QK SMTP server.

    See if it works and let me know.

    Regards,
    azamat

      hello.. thank you 🙂 for your help.
      I just downloaded the software and right now changing the settings. Though I'm having a few problems as it said:

      Error: Failed to start service at port 25! Could not bind socket. Address and port are already in use.

      Anyway, the system I'm developing involves several administrators and multiple users all over the district (supposedly). So, if I use this software, does my clients need to install them too?
      I'm still a lot confused about this whole email relaying concept.
      I'm doing the trial and error, learning and doing at the same time.

      😃

        Most mail Servers do not allow relay. If you already have a Mail Server on your PC using port 25, you should assign another port to the software you recently installed..

        Look I hope this helps you.

        Regards,

          Write a Reply...