Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

need sample code for attachment #22

Closed
raviraj555 opened this Issue · 1 comment

3 participants

@raviraj555

Hi,
we are using erlang to send mail found this gen_smtp very usefully can anyone give me code snippet for sending attachment.

thanks in anticipation

@Vagabond
Owner

You can see a simple example for multipart/alternative in the tests, for example here:

https://github.com/Vagabond/gen_smtp/blob/master/src/mimemail.erl#L1738

You can just use binary data for the attachment body and gen_smtp will encode it and add the right headers for you.

@mworrell mworrell closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.