Re: [google-appengine] Re: Sending emails from gae using mailgun

2012-11-12 Thread Emmanuel Mayssat
I would say mailgun can do that!
Since you send the text of the email in the http request.
1 generate the content of that email using a template (jinja2) locally (on
gae) and send it to mailgun (or other) !
Simple!
Have a look at
t = jinja_env.get_template(template)
email_content = t.render()

Now the problem I have is sending emails asynchronously.
Can anyone send me some code to do this?
(I saw some come about RPC and am wondering what to do with the callback,
when I don't really need it , etc..)
REgards,
--
E



On Mon, Nov 12, 2012 at 11:45 AM, David Hardwick <
david.hardw...@bettercloud.com> wrote:

> Do any of these email services offer template based emails, where the
> marketing department can control the copy with some ${thisIsAVariable}
> inserts into the copy, and the development team just needs to send over the
> variables to the email?
>
> ExactTarget has this but I was just curious if others had any other
> Vendors that also provide this feature.  That way the marketing team can
> test different copy in the subject and body to increase conversion rates on
> opening and clicking through without requiring a deployment to update the
> email template buried in the code.
>
> Rock on,
>   -Hardwick
>
>
>
> On Friday, November 9, 2012 4:30:46 PM UTC-5, Emmanuel Mayssat wrote:
>
>> I am writing an app that requires email to be sent (notifications)
>> I am contemplating using mailgun as a service.
>>
>> 1/ I s there a email web service you recommended?
>>
>> I can send emails through mailgun using the 'request' python module
>>
>> def send_simple_message():
>> data = {"from": "Excited User ",
>>   "to": ["t...@gmail.com", "to...@outlook.com"],
>> #
>>   "subject": "[https] Hello Mama (REQUEST)",
>>   "text": "Testing some Mailgun awesomness!"}
>> return requests.post(
>> mailgun_url,
>> auth = HTTPBasicAuth(username, password),
>>   # <-- or simply auth=(username, password)
>> data = data )
>>
>> I can also send emails from the shell using urllib2 (More complex because
>> of https)
>>
>> Cutting and pasting my urllib2 code in my gae app doesn't report any
>> error or anything else
>>
>> 2/ Can email be send when using the local gae server or the app have to
>> be fully deployed?
>>
>> 3/ Is there a way to send emails through google app engine? (including
>> for users that do not have gmail accounts)
>>
>> 4/ I cannot make sense of the gae policy as far as sending emails
>> What are administrator password?
>> Where are the administrator accounts?
>> My domain is not hosted on gae.
>> I am just using gae for test right now.
>>
>> Regards
>>
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/2VU9HsHY4ZwJ.
>
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Sending emails from gae using mailgun

2012-11-12 Thread David Hardwick
Do any of these email services offer template based emails, where the 
marketing department can control the copy with some ${thisIsAVariable} 
inserts into the copy, and the development team just needs to send over the 
variables to the email?

ExactTarget has this but I was just curious if others had any other Vendors 
that also provide this feature.  That way the marketing team can test 
different copy in the subject and body to increase conversion rates on 
opening and clicking through without requiring a deployment to update the 
email template buried in the code.

Rock on,
  -Hardwick



On Friday, November 9, 2012 4:30:46 PM UTC-5, Emmanuel Mayssat wrote:
>
> I am writing an app that requires email to be sent (notifications)
> I am contemplating using mailgun as a service.
>
> 1/ I s there a email web service you recommended?
>
> I can send emails through mailgun using the 'request' python module
>
> def send_simple_message():
> data = {"from": "Excited User 
> >",
>   "to": ["t...@gmail.com ", 
> "to...@outlook.com"], 
> #
>   "subject": "[https] Hello Mama (REQUEST)",
>   "text": "Testing some Mailgun awesomness!"}
> return requests.post(
> mailgun_url,
> auth = HTTPBasicAuth(username, password), 
>   # <-- or simply auth=(username, password)
> data = data )
>
> I can also send emails from the shell using urllib2 (More complex because 
> of https)
>
> Cutting and pasting my urllib2 code in my gae app doesn't report any error 
> or anything else
>
> 2/ Can email be send when using the local gae server or the app have to be 
> fully deployed?
>
> 3/ Is there a way to send emails through google app engine? (including for 
> users that do not have gmail accounts)
>
> 4/ I cannot make sense of the gae policy as far as sending emails
> What are administrator password?
> Where are the administrator accounts?
> My domain is not hosted on gae.
> I am just using gae for test right now.
>
> Regards
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/2VU9HsHY4ZwJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Sending emails from gae using mailgun

2012-11-10 Thread Bryce Cutt
I have heard good things about Mailgun but have not used it myself. I have 
used sendgrid.com and mandrill.com and both work well. I like the 
flexibility of Mandrill being able to send from multiple domains with DKIM 
and SPF but the whitelabelling in Sendgrid is more complete. 12,000 free 
emails a month from Mandrill is nice. For me the important part of these 
services is having a better view into deliverability. GAE email gives you 
no deliverability info at all which is insanely frustrating when sending 
transactional email.

As you mentioned if you send through GAE's mail library you can only send 
email as an account that is an administrator of the app. That includes 
users who only have "viewer" permissions. When I was using GAE's mail I had 
a no-re...@domain.com email address as a viewer of the app and used it to 
send most email. If I needed to send email "as a user" who is not an admin 
I would just send the email using my no-reply address and use the 
"reply-to" email header so that if someone replies to the email it goes to 
the expected user. With an external mailing service you do not have to do 
that (as you should be able to send as anyone) however you do not get DKIM 
and SPF if you are sending as a user who is not on a domain you control so 
their are benefits to using the "reply-to" trick even in this case.

- Bryce


On Friday, November 9, 2012 1:30:46 PM UTC-8, Emmanuel Mayssat wrote:
>
> I am writing an app that requires email to be sent (notifications)
> I am contemplating using mailgun as a service.
>
> 1/ I s there a email web service you recommended?
>
> I can send emails through mailgun using the 'request' python module
>
> def send_simple_message():
> data = {"from": "Excited User 
> >",
>   "to": ["t...@gmail.com ", 
> "to...@outlook.com"], 
> #
>   "subject": "[https] Hello Mama (REQUEST)",
>   "text": "Testing some Mailgun awesomness!"}
> return requests.post(
> mailgun_url,
> auth = HTTPBasicAuth(username, password), 
>   # <-- or simply auth=(username, password)
> data = data )
>
> I can also send emails from the shell using urllib2 (More complex because 
> of https)
>
> Cutting and pasting my urllib2 code in my gae app doesn't report any error 
> or anything else
>
> 2/ Can email be send when using the local gae server or the app have to be 
> fully deployed?
>
> 3/ Is there a way to send emails through google app engine? (including for 
> users that do not have gmail accounts)
>
> 4/ I cannot make sense of the gae policy as far as sending emails
> What are administrator password?
> Where are the administrator accounts?
> My domain is not hosted on gae.
> I am just using gae for test right now.
>
> Regards
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/8P3jYqVs57MJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Sending emails from gae using mailgun

2012-11-10 Thread Doug Anderson
I use mailgun with GAE... it works with local development environment and 
deployed production environment.  Their support is awesome and the web 
service is lightning fast.  I moved to mailgun because my app requires more 
flexibility than what the native GAE email capabilities provide 
(specifically I needed additional sender capability).  The other mail 
service I'd consider is http://postmarkapp.com/ which now also offers an 
inbound email web service (they can invoke your HTTP handler) similar to 
mailgun.  I still prefer mailgun though.  Many other email services are 
purely geared towards outbound mail and limit inbound to mail protocols 
such as pop, imap, etc... vs calling an http handler asynchronously.


On Friday, November 9, 2012 4:30:46 PM UTC-5, Emmanuel Mayssat wrote:
>
> I am writing an app that requires email to be sent (notifications)
> I am contemplating using mailgun as a service.
>
> 1/ I s there a email web service you recommended?
>
> I can send emails through mailgun using the 'request' python module
>
> def send_simple_message():
> data = {"from": "Excited User 
> >",
>   "to": ["t...@gmail.com ", 
> "to...@outlook.com"], 
> #
>   "subject": "[https] Hello Mama (REQUEST)",
>   "text": "Testing some Mailgun awesomness!"}
> return requests.post(
> mailgun_url,
> auth = HTTPBasicAuth(username, password), 
>   # <-- or simply auth=(username, password)
> data = data )
>
> I can also send emails from the shell using urllib2 (More complex because 
> of https)
>
> Cutting and pasting my urllib2 code in my gae app doesn't report any error 
> or anything else
>
> 2/ Can email be send when using the local gae server or the app have to be 
> fully deployed?
>
> 3/ Is there a way to send emails through google app engine? (including for 
> users that do not have gmail accounts)
>
> 4/ I cannot make sense of the gae policy as far as sending emails
> What are administrator password?
> Where are the administrator accounts?
> My domain is not hosted on gae.
> I am just using gae for test right now.
>
> Regards
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/uQorsITU44gJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.