SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Feb 2004
    Location
    Rome
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    checking is STARTTLS is available using php

    Hello

    I would check if a remote server on port 25 is accepting STARTTLS for email using php , how can I do it ?

    (I other words I should do this

    # telnet domain.com 25
    Trying domain.com...
    Connected to domain.com.
    Escape character is '^]'.
    EHLO t220-hostname.domain.com ESMTP Exim 4.69 #1 Mon, 06 Feb 2012 08:26:08 -0500
    220-We do not authorize the use of this system to transport unsolicited,
    220 and/or bulk e-mail.
    EHLO aldsds.net
    250-hostname.domain.com Hello localhost [27.12.12.222]
    250-SIZE 52428800
    250-AUTH PLAIN LOGIN
    250-STARTTLS
    250 HELP

    via php , is it possible ? )

    Thank you
    trcris ::> http://www.trcris.com

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Sure, take a look at the socket_* family of functions.
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  3. #3
    SitePoint Addict
    Join Date
    Feb 2004
    Location
    Rome
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you , the examples does not seem to help me a lot http://www.php.net/manual/en/sockets.examples.php , however I will see thank you.
    trcris ::> http://www.trcris.com


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
  •