質問編集履歴
1
情報の追加、タイトルの修正
    
        title	
    CHANGED
    
    | @@ -1,1 +1,1 @@ | |
| 1 | 
            -
             | 
| 1 | 
            +
            TypeError: gmail_send() missing 3 required positional argumentsを解消したい
         | 
    
        body	
    CHANGED
    
    | @@ -1,6 +1,5 @@ | |
| 1 1 | 
             
            pythonでGmailの定期送信をしたいのですが、初めの一回しかやってくれません。
         | 
| 2 2 | 
             
            どうしたら、繰り返しやってくれますか。
         | 
| 3 | 
            -
            具体的なエラーというよりも、ずっと………と動かない感じです。
         | 
| 4 3 |  | 
| 5 4 | 
             
            ###ソースコード
         | 
| 6 5 | 
             
            ```python
         | 
| @@ -95,4 +94,21 @@ | |
| 95 94 | 
             
            while True:
         | 
| 96 95 | 
             
                schedule.run_pending()
         | 
| 97 96 | 
             
                time.sleep(1)
         | 
| 97 | 
            +
            ```
         | 
| 98 | 
            +
             | 
| 99 | 
            +
            ###エラー
         | 
| 100 | 
            +
            ```
         | 
| 101 | 
            +
            Traceback (most recent call last):
         | 
| 102 | 
            +
              File "C:\test\autemail.py", line 90, in <module>
         | 
| 103 | 
            +
                schedule.run_pending()
         | 
| 104 | 
            +
              File "C:\Users\Owner\AppData\Local\Programs\Python\Python39\lib\site-packages\schedule\__init__.py", line 780, in run_pending
         | 
| 105 | 
            +
                default_scheduler.run_pending()
         | 
| 106 | 
            +
              File "C:\Users\Owner\AppData\Local\Programs\Python\Python39\lib\site-packages\schedule\__init__.py", line 100, in run_pending
         | 
| 107 | 
            +
                self._run_job(job)
         | 
| 108 | 
            +
              File "C:\Users\Owner\AppData\Local\Programs\Python\Python39\lib\site-packages\schedule\__init__.py", line 172, in _run_job
         | 
| 109 | 
            +
                ret = job.run()
         | 
| 110 | 
            +
              File "C:\Users\Owner\AppData\Local\Programs\Python\Python39\lib\site-packages\schedule\__init__.py", line 661, in run
         | 
| 111 | 
            +
                ret = self.job_func()
         | 
| 112 | 
            +
            TypeError: gmail_send() missing 3 required positional arguments: 'send_name', 'mail_to', and 'filename'
         | 
| 113 | 
            +
             | 
| 98 114 | 
             
            ```
         | 
