{"id":2034,"date":"2019-01-27T19:55:35","date_gmt":"2019-01-27T10:55:35","guid":{"rendered":"http:\/\/www.python.ambitious-engineer.com\/?p=2034"},"modified":"2020-10-04T22:26:04","modified_gmt":"2020-10-04T13:26:04","slug":"python%e3%81%a7%e3%83%a1%e3%83%bc%e3%83%ab%e9%80%81%e4%bf%a1","status":"publish","type":"post","link":"https:\/\/www.python.ambitious-engineer.com\/archives\/2034","title":{"rendered":"Python\u3067\u30e1\u30fc\u30eb\u9001\u4fe1"},"content":{"rendered":"<p>\u304a\u77e5\u3089\u305b\u3084\u30a8\u30e9\u30fc\u901a\u77e5\u306a\u3069\u3067\u30b7\u30b9\u30c6\u30e0\u3092\u904b\u7528\u3059\u308b\u4e0a\u3067\u6b20\u304b\u305b\u306a\u3044\u30e1\u30fc\u30eb\u9001\u4fe1\u6a5f\u80fd\u3067\u3059\u304c\u3001Python\u306b\u306f\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3067SMTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u306a\u308bsmtplib\u304c\u4e88\u3081\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u7c21\u5358\u306b\u30e1\u30fc\u30eb\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u6642\u306b\u306fMIME\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u3061\u3089\u3082\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u7d30\u304b\u3044\u8aac\u660e\u3092\u3059\u3063\u3068\u3070\u3057\u3066\u3068\u308a\u3042\u3048\u305a\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u305f\u3044\u5834\u5408\u306f<a href=\"https:\/\/www.python.ambitious-engineer.com\/?p=2034&preview=true#G\">G\u30e1\u30fc\u30eb\u9001\u4fe1\u30b5\u30f3\u30d7\u30eb<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>smtplib\u306e\u4f7f\u3044\u65b9<\/h2>\n<p>smtplib\u306e\u4f7f\u3044\u65b9\u3067\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u306fMIME\u3092\u4f5c\u6210\u3057\u3066\u9001\u4fe1\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u3059\u304c\u3001SMTP\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u8a2d\u5b9a\u306b\u3088\u308a\u30ed\u30b0\u30a4\u30f3\u306a\u3069\u306e\u51e6\u7406\u3092\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8ffd\u52a0\u3057\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u8a8d\u8a3c\u306a\u3057\u306e\u5834\u5408<\/h3>\n<p>\uff08\u901a\u5e38\u3042\u308a\u3048\u306a\u3044\u3067\u3059\u304c\uff09\u307e\u305a\u3001LAN\u5185\u90e8\u3067\u958b\u767a\u7528\u306e\u3088\u3046\u3046\u306a\u8a8d\u8a3c\u306a\u3057\u306eSMTP\u30b5\u30fc\u30d0\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002MIME\u306f\u81ea\u529b\u3067\u66f8\u304f\u5fc5\u8981\u306f\u306a\u304f\u3001\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport smtplib\r\nfrom email.mime.text import MIMEText\r\n\r\n# \u9001\u53d7\u4fe1\u5148\r\nto_email = &quot;\u9001\u4fe1\u5148@hoge.com&quot;\r\nfrom_email = &quot;\u9001\u4fe1\u5143@fuga.com&quot;\r\n\r\n# MIMEText\u3092\u4f5c\u6210\r\nmessage = &quot;\u30e1\u30fc\u30eb\u672c\u6587&quot;\r\nmsg = MIMEText(message, &quot;html&quot;)\r\nmsg[&quot;Subject&quot;] = &quot;\u30e1\u30fc\u30eb\u8868\u984c&quot;\r\nmsg[&quot;To&quot;] = &quot;\u9001\u308a\u5148\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&quot;\r\nmsg[&quot;From&quot;] = &quot;\u9001\u4fe1\u5143\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&quot;\r\n\r\n# \u30b5\u30fc\u30d0\u3092\u6307\u5b9a\u3059\u308b\r\nserver = smtplib.SMTP(&quot;SMTP\u30b5\u30fc\u30d0&quot;, \u30dd\u30fc\u30c8\u756a\u53f7)\r\n# \u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\r\nserver.send_message(msg)\r\n# \u9589\u3058\u308b\r\nserver.quit()\r\n\r\n<\/pre>\n<h3>\u8a8d\u8a3c\u3042\u308a\u306e\u5834\u5408\u306a\u3069<\/h3>\n<p>\u3055\u3066\u3001\u6b21\u306b\u8a8d\u8a3c\u7b49\u304c\u3042\u308b\u5834\u5408\u306f\u30ed\u30b0\u30a4\u30f3\u51e6\u7406\u306a\u3069\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>\u30ed\u30b0\u30a4\u30f3\u51e6\u7406<\/h4>\n<p>\u30ed\u30b0\u30a4\u30f3\u51e6\u7406\u3092\u884c\u3046\u5834\u5408\u3001login\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nserver = smtplib.SMTP(&quot;SMTP\u30b5\u30fc\u30d0&quot;, \u30dd\u30fc\u30c8\u756a\u53f7)\r\n# \u8a8d\u8a3c\u3092\u884c\u3046\r\nserver.login(account, password)\r\n<\/pre>\n<h4>\u30c7\u30d0\u30c3\u30b0<\/h4>\n<p>\u8a8d\u8a3c\u5931\u6557\u306a\u3069\u3067\u539f\u56e0\u3092\u8abf\u3079\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30c7\u30d0\u30c3\u30b0\u3092True\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nserver = smtplib.SMTP(&quot;SMTP\u30b5\u30fc\u30d0&quot;, \u30dd\u30fc\u30c8\u756a\u53f7)\r\nserver.set_debuglevel(True)\r\n<\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c7\u30d0\u30c3\u30b0\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsend: 'ehlo xxxx.xxxxxx\\r\\n'\r\nreply: b'250-smtp.xxxxx.com at your service, [NNN.NNN.NNN.NNN]\\r\\n'\r\nreply: b'250-SIZE 35882577\\r\\n'\r\nreply: b'250-8BITMIME\\r\\n'\r\nreply: b'250-STARTTLS\\r\\n'\r\nreply: b'250-XXXXXX\\r\\n'\r\nreply: b'250-PIPELINING\\r\\n'\r\nreply: b'250-CHUNKING\\r\\n'\r\nreply: b'250 SMTPUTF8\\r\\n'\r\nreply: retcode (250); Msg: b'smtp.xxxxx.com at your service, [NNN.NNN.NNN.NNN]\\nSIZE 35882577\\n8BITMIME\\nSTARTTLS\\nXXXXXX\\nPIPELINING\\nCHUNKING\\nSMTPUTF8'\r\nsend: 'STARTTLS\\r\\n'\r\n:\r\n:\r\n:\r\n<\/pre>\n<h4>STARTTLS<\/h4>\n<p>STARTTLS\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u5834\u5408\u3001starttls\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308a\u5143\u306e\u30dd\u30fc\u30c8\u306e\u307e\u307e\u9014\u4e2d\u304b\u3089\u6697\u53f7\u5316\u901a\u4fe1\u306b\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nserver = smtplib.SMTP(&quot;SMTP\u30b5\u30fc\u30d0&quot;, \u30dd\u30fc\u30c8\u756a\u53f7)\r\nserver.starttls()\r\n<\/pre>\n<p>\u3088\u308a\u6c4e\u7528\u7684\u306b\u3001STARTTLS\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u5834\u5408\u3060\u3051starttls()\u3092\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306f\u5834\u5408\u306fhas_extn\u3067\u6587\u5b57\u5217'STARTTLS'\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u5224\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nif server.has_extn('STARTTLS'):\r\n    server.starttls()\r\n<\/pre>\n<p>\u307e\u305f\u3001ehlo\u306f\u5185\u90e8\u3067\u52dd\u624b\u306b\u5b9f\u884c\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u6c17\u306b\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u304c\u3001\u3042\u3048\u3066\u624b\u52d5\u3067\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3067\u660e\u793a\u7684\u306behlo\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nserver.ehlo()\r\n<\/pre>\n<h4>SSL\u63a5\u7d9a<\/h4>\n<p>SSL\u306b\u63a5\u7d9a\u3059\u308b\u5834\u5408\u306f\u3001SMTP_SSL\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport ssl\r\nserver = smtplib.SMTP_SSL(&quot;smtp.gmail.com&quot;, 465, context=ssl.create_default_context())\r\n<\/pre>\n<h2>G\u30e1\u30fc\u30eb\u9001\u4fe1<\/h2>\n<p>\u3067\u306f\u3001\u3088\u304f\u4f7f\u3046\u4f7f\u3046\u3067\u3042\u308d\u3046\u3001G\u30e1\u30fc\u30eb\u3067\u306e\u9001\u4fe1\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002GMail\u306f\u63a5\u7d9a\u5143IP\u30a2\u30c9\u30ec\u30b9\u3092DNS\u9006\u5f15\u304d\u3057\u3066\u30c9\u30e1\u30a4\u30f3\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u63a5\u7d9a\u3092\u62d2\u5426\u3059\u308b\u305f\u3081\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30ed\u30fc\u30ab\u30eb\u306ePython\u304b\u3089\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u3053\u306e\u305f\u3081\u3001\u4e88\u3081\u30a2\u30ab\u30a6\u30f3\u30c8\u8a2d\u5b9a\u304b\u3089\u300c\u5b89\u5168\u6027\u306e\u4f4e\u3044\u30a2\u30d7\u30ea\u304b\u3089\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u300d\u3092ON\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u5371\u967a\u3092\u306f\u3089\u3080\u305f\u3081\u3001\u5225\u9014\u5b66\u7fd2\u7528\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<br \/>\n\u307e\u305a\u3001STARTTLS\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nfrom email.mime.text import MIMEText\r\nimport smtplib\r\n\r\n# SMTP\u8a8d\u8a3c\u60c5\u5831\r\naccount = &quot;hogehoge@gmail.com&quot;\r\npassword = &quot;passpass&quot;\r\n\r\n# \u9001\u53d7\u4fe1\u5148\r\nto_email = &quot;\u9001\u4fe1\u5148@hoge.com&quot;\r\nfrom_email = &quot;\u9001\u4fe1\u5143@gmail.com&quot;\r\n\r\n# MIME\u306e\u4f5c\u6210\r\nsubject = &quot;\u30c6\u30b9\u30c8\u30e1\u30fc\u30eb&quot;\r\nmessage = &quot;\u30c6\u30b9\u30c8\u30e1\u30fc\u30eb&quot;\r\nmsg = MIMEText(message, &quot;html&quot;)\r\nmsg[&quot;Subject&quot;] = subject\r\nmsg[&quot;To&quot;] = to_email\r\nmsg[&quot;From&quot;] = from_email\r\n\r\n# \u30e1\u30fc\u30eb\u9001\u4fe1\u51e6\u7406\r\nserver = smtplib.SMTP(&quot;smtp.gmail.com&quot;, 587)\r\nserver.starttls()\r\nserver.login(account, password)\r\nserver.send_message(msg)\r\nserver.quit()\r\n<\/pre>\n<p>SMTP\u30b5\u30fc\u30d0\u306bsmtp.gmail.com\u3001\u30dd\u30fc\u30c8\u756a\u53f7\u306b587\u3092\u6307\u5b9a\u3057\u3001starttls\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<br \/>\n\u6b21\u306bSSL\u3092\u4f7f\u7528\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport smtplib, ssl\r\nfrom email.mime.text import MIMEText\r\n\r\n# SMTP\u8a8d\u8a3c\u60c5\u5831\r\naccount = &quot;hogehoge@gmail.com&quot;\r\npassword = &quot;passpass&quot;\r\n\r\n# \u9001\u53d7\u4fe1\u5148\r\nto_email = &quot;\u9001\u4fe1\u5148@hoge.com&quot;\r\nfrom_email = &quot;\u9001\u4fe1\u5143@gmail.com&quot;\r\n\r\n# MIME\u306e\u4f5c\u6210\r\nsubject = &quot;\u30c6\u30b9\u30c8\u30e1\u30fc\u30eb2&quot;\r\nmessage = &quot;\u30c6\u30b9\u30c8\u30e1\u30fc\u30eb2&quot;\r\nmsg = MIMEText(message, &quot;html&quot;)\r\nmsg[&quot;Subject&quot;] = subject\r\nmsg[&quot;To&quot;] = to_email\r\nmsg[&quot;From&quot;] = from_email\r\n\r\nserver = smtplib.SMTP_SSL(&quot;smtp.gmail.com&quot;, 465, context=ssl.create_default_context())\r\n\r\nserver.login(account, password)\r\nserver.send_message(msg)\r\nserver.quit()\r\n\r\n<\/pre>\n<p>SMTP\u30b5\u30fc\u30d0\u306bsmtp.gmail.com\u3001\u30dd\u30fc\u30c8\u756a\u53f7\u306b465\u3092\u6307\u5b9a\u3057\u3001SMTP_SSL\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2>MIME\u95a2\u9023\u306e\u88dc\u8db3<\/h2>\n<p>\u6700\u5f8c\u306b\u88dc\u8db3\u3068\u3057\u3066MIME\u95a2\u9023\u306etips\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30d5\u30a1\u30a4\u30eb\u3092\u6dfb\u4ed8<\/h3>\n<p>MIME\u306b\u306f\u30c7\u30fc\u30bf\u5f62\u5f0f\u306e\u7570\u306a\u308b\u8907\u6570\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30921\u3064\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3057\u3066\u6271\u3046\u305f\u3081\u300c\u30de\u30eb\u30c1\u30d1\u30fc\u30c8\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u5f62\u5f0f\u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u30e1\u30fc\u30eb\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3059\u308b\u969b\u7b49\u306b\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>Python\u3067\u30de\u30eb\u30c1\u30d1\u30fc\u30c8\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306fMIMEMultipart\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>gmail\u3067\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u4ed8\u304d\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nfrom email.mime.text import MIMEText\r\nfrom email.mime.application import MIMEApplication\r\nfrom email.mime.multipart import MIMEMultipart\r\nimport smtplib\r\nfrom os.path import basename\r\n\r\n# SMTP\u8a8d\u8a3c\u60c5\u5831\r\naccount = &quot;hogehoge@gmail.com&quot;\r\npassword = &quot;passpass&quot;\r\n\r\n# \u9001\u53d7\u4fe1\u5148\r\nto_email = &quot;\u9001\u4fe1\u5148@hoge.com&quot;\r\nfrom_email = &quot;\u9001\u4fe1\u5143@gmail.com&quot;\r\n\r\n# MIME\u306e\u4f5c\u6210\r\nsubject = &quot;\u30c6\u30b9\u30c8\u30e1\u30fc\u30eb3&quot;\r\nmessage = &quot;\u30c6\u30b9\u30c8\u30e1\u30fc\u30eb3&quot;\r\nmsg = MIMEMultipart()\r\nmsg[&quot;Subject&quot;] = subject\r\nmsg[&quot;To&quot;] = to_email\r\nmsg[&quot;From&quot;] = from_email\r\nmsg.attach(MIMEText(message))\r\n\r\n\r\n# \u30d5\u30a1\u30a4\u30eb\u3092\u6dfb\u4ed8\r\npath = &quot;.\/readme.txt&quot;\r\nwith open(path, &quot;rb&quot;) as f:\r\n    part = MIMEApplication(\r\n        f.read(),\r\n        Name=basename(path)\r\n    )\r\n\r\npart['Content-Disposition'] = 'attachment; filename=&quot;%s&quot;' % basename(path)\r\nmsg.attach(part)\r\n\r\n# \u30e1\u30fc\u30eb\u9001\u4fe1\u51e6\u7406\r\nserver = smtplib.SMTP(&quot;smtp.gmail.com&quot;, 587)\r\nserver.starttls()\r\nserver.login(account, password)\r\nserver.send_message(msg)\r\nserver.quit()\r\n\r\n<\/pre>\n<h3>\u30e1\u30fc\u30eb\u30d8\u30c3\u30c0\u306e\u66f8\u304d\u63db\u3048<\/h3>\n<p>email.utils\u3092\u4f7f\u7528\u3059\u308b\u3068\u30e1\u30fc\u30eb\u30d8\u30c3\u30c0\u3092\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport email.utils\r\nmsg = MIMEText(message, &quot;html&quot;)\r\nmsg[&quot;Subject&quot;] = subject\r\nmsg['To'] = email.utils.formataddr(('xxxxx', from_email))\r\n<\/pre>\n<p>\u4e0a\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u66f8\u304d\u63db\u3048\u305f\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nSubject: \u30fb\u30fb\u30fb\u30fb\r\nTo: xxxxx &lt;\u30fb\u30fb\u30fb\u30fb@gmail.com&gt;\r\nFrom: \u30fb\u30fb\u30fb\u30fb\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u304a\u77e5\u3089\u305b\u3084\u30a8\u30e9\u30fc\u901a\u77e5\u306a\u3069\u3067\u30b7\u30b9\u30c6\u30e0\u3092\u904b\u7528\u3059\u308b\u4e0a\u3067\u6b20\u304b\u305b\u306a\u3044\u30e1\u30fc\u30eb\u9001\u4fe1\u6a5f\u80fd\u3067\u3059\u304c\u3001Python\u306b\u306f\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3067SMTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u306a\u308bsmtplib\u304c\u4e88\u3081\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u7c21\u5358\u306b\u30e1\u30fc\u30eb\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001...<\/p>\n","protected":false},"author":1,"featured_media":2995,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[180],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/2034"}],"collection":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/comments?post=2034"}],"version-history":[{"count":6,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/2034\/revisions"}],"predecessor-version":[{"id":2672,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/2034\/revisions\/2672"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media\/2995"}],"wp:attachment":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media?parent=2034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/categories?post=2034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/tags?post=2034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}