• caglararli@hotmail.com
  • 05386281520

how to communicate with an smtp serverusing socket library in python

Çağlar Arlı      -    25 Views

how to communicate with an smtp serverusing socket library in python

i am trying to print the output of HELP command not the output of me connecting to the SMTP server that is how my code looks like

**import socket

s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)

s.connect(("localhost",25))

s.send(b'HELP')

print s.recv(1024)**

that is what i am geting enter image description here

that is what i want to see enter image description here