[web2py] Re: New plugin to integrate with SparkPost

2017-06-26 Thread Leonel Câmara
Hey,

no-re...@example.com should be replaced by an email in your sparkpost 
sending domain, the email that you wish to use to send emails from. Later 
if you want to send emails with another from address you can use the sender 
keyword argument in the send method to use another one.  
  

> Anyway you know how to populate custom email address based on username? 
> e.g.,  us...@sparkmail.com, us...@sparkmail.com, ...so that each user has 
> his own inbox?


Maybe I'm misunderstanding you, but note that this plugin does not deal 
with inboxes, sparkpost is used to send email not to receive it. 
  
Using this plugin you are able to send emails in exactly the same way 
described in the web2py book in the sending section:
http://www.web2py.com/books/default/chapter/29/08/emails-and-sms#Sending-emails

The objective was to make it as easy as possible for web2py users to use 
the sparkpost REST API without having to change any kind of code in their 
project.  

I'm open to adding missing features if people need them as I will also be 
using it.




-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: New plugin to integrate with SparkPost

2017-06-26 Thread anitadesmukh101
Greetings Mr. Camara,

In your github post, no-re...@example.com I am assuming the sparkmail email 
address of the sender, should be no-reply-exam...@sparkmail.com?

Anyway you know how to populate custom email address based on username? 
e.g.,  us...@sparkmail.com, us...@sparkmail.com, ...so that each user has 
his own inbox?

mail = SparkMail(api_key='YOUR_API_KEY_HERE', sender='no-re...@example.com')



On Saturday, June 24, 2017 at 2:52:00 PM UTC-4, Leonel Câmara wrote:
>
> I've seen a lot of people having trouble integrating with sparkpost, I 
> actually want to start using it too, so I made a plugin:
> https://github.com/leonelcamara/web2py_sparkpost
>
> Enjoy!
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.