PyDocs

Nav

Internet Data Handling

EmailMessage.set_boundary

  • EmailMessage.set_boundary(boundary)
Set the boundary parameter in Content-Type to 'boundary'.

This is subtly different than deleting the Content-Type header and
adding a new one with a new boundary parameter via add_header().  The
main difference is that using the set_boundary() method preserves the
order of the Content-Type header in the original message.

HeaderParseError is raised if the message has no Content-Type header.
0 Examples
No examples for email.message/EmailMessage.set_boundary.
See Also
No see-alsos for email.message/EmailMessage.set_boundary
0 Notes
No notes for EmailMessage.set_boundary