#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    14
    Rep Power
    0
    Hi,

    Can anyone tell me/show me how I can connect to a (mail) server?

    Thanx,
    Dj Mouse
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    24
    Rep Power
    0
    Do you mean POP3 or SMTP?

    Ive recently been working on a script to do both.

    $pop3 = fsockopen($server, $port);
    Then use Fputs and FGets to talk to the server:

    fputs($pop3, "USER $userrn");
    $response = fgets($pop3, 1024);

    etc

    My working script (The DTHML isnt finished(sorry))
    is at http://www.spartanweb.co.uk/mail/index.php3

    I also have the code to send, although its currently not included.

    Sparky

Similar Threads

  1. Replies: 11
    Last Post: May 15th, 2004, 06:30 PM
  2. set up mail server in win xp
    By SystemOfADown in forum Mail Server Help
    Replies: 2
    Last Post: May 6th, 2004, 10:28 AM
  3. using mail() in Unix with outiside smtp mail server
    By edwardsc in forum PHP Development
    Replies: 4
    Last Post: February 18th, 2004, 10:34 AM
  4. Help with script
    By akastarlight in forum Perl Programming
    Replies: 1
    Last Post: February 6th, 2004, 07:55 AM
  5. connect to mysql db server in another server
    By darcher in forum MySQL Help
    Replies: 5
    Last Post: January 13th, 2004, 11:22 PM

IMN logo majestic logo threadwatch logo seochat tools logo