in reply to email attachments using multipart MIME format
Please reduce your code sample to the smallest possible chunk that still demonstrates your problem.