Jump to content

smtp problem


adv

Recommended Posts

 

 

<?php
$SMTP = fsockopen("smtp.libero.it", 25); 

$InputBuffer = fgets($SMTP, 1024); 

fputs($SMTP, "HELO hello\r\n");
fputs($SMTP, "MAIL From: <[email protected]>\r\n"); 
fputs($SMTP,"RCPT TO: <[email protected]>\r\n"); 
$InputBuffer = fgets($SMTP, 1024); 


echo $InputBuffer;
?>

 

how do i get the server/smtp response to show if the email is valid or not?

550 RCPT TO:<[email protected]> User unknown

 

250 RCPT TO:<[email protected]> OK

 

 

Link to comment
https://forums.phpfreaks.com/topic/219144-smtp-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.