ã¡ã¼ã«ãéä¿¡ãããã¨ãªããã®ã¡ã¼ã«ã¢ãã¬ã¹ãåå¨ãããã©ãã調ã¹ã
SMTPãããã³ã«ã«å¾ã£ã¦ã¡ã¼ã«ãéãã¨ã以ä¸ã®ãããªããã¨ããããã¾ãã(å¾®å¦ã«éã£ã¦ãããããããªãã)
telnetã使ãã°ãæå
ã§ã試ããã¨ãã§ãã¾ãã
åè: telnetでメール送信
'>'ãã¯ã©ã¤ã¢ã³ãâãµã¼ãã§ã'<'ãã¯ã©ã¤ã¢ã³ãâãµã¼ãã表ãã¦ãã¾ãã
< 220 smtp.example.com ESMTP > HELO client.example.com < 250 smtp.example.com > MAIL FROM:[email protected] < 250 ok > RCPT TO:[email protected] < 250 ok > DATA < 354 go ahead > FROM:[email protected] > SUBJECT:test > Hello World! > . < 250 ok ABCDE1234 Message accepted for delivery > QUIT < 221 smtp.example.com
æµãã¨ãã¦ã¯ã
- æ¥ç¶ã®ç¢ºç«
- éä¿¡å ã¢ãã¬ã¹ã®è¨å®
- éä¿¡å ã¢ãã¬ã¹ã®è¨å®
- æ¬æ(ã¿ã¤ãã«çå«ã)ã®è¨å®
- éä¿¡
- åæ
ã§ãã
SMTPãµã¼ãã¯ã²ã¨ã¤éããã¨ã«è¿çããã¦ããã¾ãã
3ã®éä¿¡å
ã¢ãã¬ã¹ãè¨å®ããã¨ãããæå®ããã¢ãã¬ã¹ãåå¨ããã°ã250 OKã¨ããã¹ãã¼ã¿ã¹ãè¿ãã¦ããã¾ããããã§ããã以å¤ã®å¤ã®è¿çãããã°ããã®ã¡ã¼ã«ã¢ãã¬ã¹ã¯åå¨ããªãã®ã§ã¯ãªããï¼ã¨ãããã¨ãæ¨æ¸¬ã§ãã¾ãã
ãã®æ®µéã§åæãã¦ãã¾ãã°ãã¡ã¼ã«ãéä¿¡ãããã¨ãªãããã®ã¡ã¼ã«ã¢ãã¬ã¹ãåå¨ãããã©ãã調ã¹ããã¾ãã
対ç
ãã®ãããªææ³ã§ã¡ã¼ã«ã¢ãã¬ã¹ãåå¨ãããç¥ãããããªãå ´åã¯ãéä¿¡å
ã¢ãã¬ã¹ã«ã©ã®ãããªã¢ãã¬ã¹ãæå®ããã¦ããã¨ããããOKãè¿ãå®è£
ãããã°ããã¨æããã¾ãã
ãã ãåå¨ããã調ã¹ããã¡ã¼ã«ã¢ãã¬ã¹ã¨ã¨ãã«ãåå¨ããªãã¨æãããã¡ã¼ã«ã¢ãã¬ã¹(ã©ã³ãã ã«çæããæååã使ã£ããã®)ãåå¨ãããã©ãã調ã¹ãã°ããã®å¯¾çãããã¦ãããã©ããè¦ç ´ãäºã¯å¯è½ã§ãã
æ¤è¨¼ãã¦ã¿ã
ãã®æé ãåç¾ããã³ã¼ããRubyã§æ¸ãã¦ã¿ã¾ããã
é·ãã®ã§ãããã«ç´æ¥è¼ãã¾ããããGithubã«å
¬éãã¦ãã¾ããRuby1.8ã使ã£ã¦ããé ã«æ¸ããã®ã§ãã¡ãã£ã¨å¤ãã§ãã
kurochan/mail-address-checker · GitHub