I've used SMTP with a mail server (Exim) installed on the same server for a small registration site. Haven't needed attachments. We did have one or two mails that weren't sent (don't know the exact cause, hard to reproduce).
on the one hand, the SMTP is pretty low level, on the other hand, there is no magic, no external service to subscribe to or custom protocols.
Attachment would involve creating a MIME-encoded piece of text, couldn't find one quickly by search engine.
sample code, taken from app:
sendText: text
"Only works with locally installed SMTP server"
|smtp|
[ smtp initiateSession.
Subject: your subject
', text.
smtp quit.
] ensure: [smtp close]
Note that you have to close the SMTP connection (it opens a socket to your mailserver that needs to be closed).
Hope this helps,
Willem
On 15 September 2012 19:54, Stephan Eggermont
<stephan@stack.nl> wrote:
Hi Hilaire,
There was a post from Scott Sproule on using Amazon SES with zinc and stunnel.
Sven, you remember? From the response it was not clear to me if he managed
to get everything working, and the need for stunnel might not be there with the
current SSL support. SES is about 10% of the cost of postmaster.
Attaching to mail is a well-known process. There are no problems there.
Stephan