Guest User

Untitled

a guest
Dec 18th, 2017
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. write_command("MAIL FROM: <foo@bar.de>");
  2. write_command("RCPT TO: <foo@bar.de>");
  3.  
  4. Smtp smtp_client = Smtp();
  5. smtp_client.new_connection("smtp.mailtrap.io", 25);
  6. smtp_client.auth_login("username", "password");
  7. smtp_client.sendmail();
  8. smtp_client.close_connection();
Add Comment
Please, Sign In to add comment