drewblas / aws-ses

Provides an easy ruby DSL & interface to AWS SES
MIT License
549 stars 108 forks source link

Email with attachments #26

Closed yuvalry closed 12 years ago

yuvalry commented 13 years ago

Hi,

Do you support sending email with attachments?

Do you have a code example?

Thanks, Yuval

mbuckbee commented 13 years ago

Looking at the docs, the most straightfoward way to send attachments would seem to be with aws-ses's send_raw_email.

send_raw_email sends Mail objects which can include attachments, the Mail gem - https://github.com/mikel/mail - has multiple examples on how to attach a file to a Mail object.

Hope that helps,

Mike

drewblas commented 12 years ago

yuvalry hasn't responded, so I'm going to assume this is closed.

ajahongir commented 12 years ago

is pdf attachment works well? i spend a lot of time tyiing send, but lost my time((. onese it sent but next times error response(, every time different errors(