mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	...
This commit is contained in:
		
							parent
							
								
									cfb7f9877e
								
							
						
					
					
						commit
						644ef91811
					
				@ -10,7 +10,6 @@ This module implements a simple commandline SMTP client that supports:
 | 
				
			|||||||
'''
 | 
					'''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import sys, traceback, os
 | 
					import sys, traceback, os
 | 
				
			||||||
from email import encoders
 | 
					 | 
				
			||||||
from calibre import isbytestring
 | 
					from calibre import isbytestring
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def create_mail(from_, to, subject, text=None, attachment_data=None,
 | 
					def create_mail(from_, to, subject, text=None, attachment_data=None,
 | 
				
			||||||
@ -19,6 +18,7 @@ def create_mail(from_, to, subject, text=None, attachment_data=None,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    from email.mime.multipart import MIMEMultipart
 | 
					    from email.mime.multipart import MIMEMultipart
 | 
				
			||||||
    from email.utils import formatdate
 | 
					    from email.utils import formatdate
 | 
				
			||||||
 | 
					    from email import encoders
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    outer = MIMEMultipart()
 | 
					    outer = MIMEMultipart()
 | 
				
			||||||
    outer['Subject'] = subject
 | 
					    outer['Subject'] = subject
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user