SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2003
    Location
    California
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sending email through a relay server

    Hey guys,

    I am trying to send an email from a normal php file directly to an internal MS Exchange mail server which is set to only accept email from port 25. SMTP is only allowed to go through the MS Exchange server because of router access lists.

    So what we have is a web server (linux) running php5 and we are using the normal php mail() function. But, what we need to do is relay the email to the MS Exchange server.

    So the kicker here is this: We cannot figure out how the hell to get the email to bounce over to the MS exchange server... from the web server.

    Is this something we need to manage within php.ini or directly in our php file, or something that needs to get handled elsewhere.

    Any thoughts? Not clear?

  2. #2
    SitePoint Wizard cranial-bore's Avatar
    Join Date
    Jan 2002
    Location
    Australia
    Posts
    2,634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So is the problem that using mail() does not use port 25, and is therefore not accepted by the MS Exchange server?
    If your linux web server could email from 25 would that solve your problem, or have I not understood?

    If it's just the port which is the issue SwiftMailer is probably able to send from a port of your choosing.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •