Jump to content

alkogolic

Members
  • Posts

    4
  • Joined

  • Last visited

alkogolic's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yes, i want implement the SMTP protocol. <? $connect = fsockopen ("hotmail.com", 25, $errno, $errstr, 30); ?> Warning: fsockopen(): unable to connect to hotmail.com:25 <? $connect = fsockopen ("outlook.com", 25, $errno, $errstr, 30); ?> Warning: fsockopen(): unable to connect to outlook.com:25 Why? php script hosted in domain for example domain.com DNS records this is domain:
  2. Thanks, but i want send email via command HELO. Why hotmail.com disconnect my?
  3. How to send mail via command "HELO" "MAIL FROM"? Error "Warning: fsockopen() [function.fsockopen]: unable to connect to hotmail.com:25" Code: <? socketmail("hotmail.com", "asdasd22e@hotmail.com", "asd@yahoo.com", "sub", "mess"); function socketmail($server, $to, $from, $subject, $message) { $connect = fsockopen ($server, 25, $errno, $errstr, 30); fputs($connect, "HELO localhost\r\n"); fputs($connect, "MAIL FROM: $from\n"); fputs($connect, "RCPT TO: $to\n"); fputs($connect, "DATA\r\n"); fputs($connect, "Content-Type: text/plain; charset=iso-8859-1\n"); fputs($connect, "To: $to\n"); fputs($connect, "Subject: $subject\n"); fputs($connect, "\n\n"); fputs($connect, stripslashes($message)." \r\n"); fputs($connect, ".\r\n"); fputs($connect, "RSET\r\n"); } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.