Show HN: Email Templating API
sendwithus.com
sendwithus.com
Here's how I use it right now:
string templateFile = HttpContext.Current.Server
.MapPath("~/App_Data/InviteUser.cshtml");
string template = System.IO.File.ReadAllText(templateFile);
var model = new
{
inviterName = "A user",
inviterEmail = inviterEmail,
manufacturerName = inviterMfr,
UserId = person.PrimaryEmail,
UserPassword = person.GeneratedPassword,
};
var bodyHtml = RazorEngine.Razor.Parse(template, model);
And the template: <html>
<body>
<p>
@Model.inviterName (@Model.inviterEmail)
@if (Model.manufacturerName != null)
{
<span>on behalf of <b>@Model.manufacturerName</b></span>
}
is inviting you to explore Mercury Catalog by AmpTab - the best furniture catalog app for the iPad:
</p>
[SNIP-SNIP]In our experience email templates are a little different from regular HTML templates; things like built-in css inlining, A/B testing, and giving access to non-technical folks.
1. The "with" in your logo is the same color as your links. Since your links aren't underlined, it makes the "with" look like a link. You should change the color of one of them.
2. The error message when I click 'execute command' without changing my email isn't obvious enough.
3. I want to see the editor. What is the interface the marketing team will see? Maybe put the template you are going to send next to that curl box.
4. Do you have decent html and responsive templates? If so, this is a selling point on its own.
Our developers page is really new, so there's definite room for improvement. 1+2 definitely need a look tonight.
3. The UI here could use work; the template is actually in the horizontal section ABOVE the curl box ...
You can signup (no cc required) and check the editor out, or just watch our getting started video (which we need to make more public): http://www.youtube.com/watch?v=kQhLeBU9wrs
4. Yup, responsive emails included out of the box. We'll be adding more templates shortly (a lot of requests for this lately!)
Here's all the code required to send an email with our Python client:
api.send(email_id='YOUR-EMAIL-ID',
recipient={'address': 'us@sendwithus.com'})
There are more complex examples covering unique senders, cc/bcc, dynamic data, and attachments, but it's good to get a sense of how much complexity this can remove from your codebase.Is the idea that you can have nontechnical people write the templates, and your app... gets a list of the templates they've made and sends them out?
What's the benefit of using this over just, you know, writing an erb template? Or is the value for environment that don't have ActiveMail?
We encourage our customers to use a static "mapping", with constants set to each template id. IE WELCOME_EMAIL = '12345'
I signed up for SendWithUs and had a problem integrating it with my email sender. They helped me fix the issue and were really fast to respond. I'd recommend every startup try out SendWithUs.
I haven't used it for that long yet, so I can't really review the product itself, but so far it's great.
That being said, huge fan of open source and there's plenty of room for products and tools in this space :)
Any suggestions on how to better describe that?
Why would I leave Aweber/Mailchimp?