New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GSoC 2019 - Send email template #5
Comments
Can I work on this issue? |
go for it! |
Also just so you know this would be used by the scheduler system, it is being worked on as part of pr #32 so its probably easiest to pull down the code in his pr and then just expand the def send_email(scheduler):
return True with the new code, you would return a true on a success, false on failure, along with the error message. |
I am creating a page in which one can select one email template and write the email address to which it is supposed to be delivered and then he can type the name and the mail will be sent to that person? I am creating this template through jinja templating. |
It shouldn't be a page, this would be for an automatic sending of an email, basically you would be passed something like {
"to_email": "test@email.com",
"template": "testemail.template",
"from_email": "test@python-gsoc.org",
"Subject": "test email!",
"data": {
"username": "test",
"message": "this is a test message"
}
} to the send_email function that you are working on, then it would take that json and parse it to do the template filling in etc |
Okay, I got it, I am taking it in a template way, sorry for that, I will try to complete this. |
Just fyi pr #32 has been merged so you can just pull the latest code from the repo and go about editing the send_email function. |
@botanicvelious I'd like to work on this since there is no update for a month |
@ntkomata go for it |
@botanicvelious So the above json will be in scheduler.data field ? |
@Saurabh-Singh-00 The message should be a django template string. |
@Saurabh-Singh-00 Uhh actually no. The message should just be a string since it's the template data. Sorry, I wasn't looking :) |
@ntkomata why wouldn't it be that? the data is how you would choose the template etc |
@botanicvelious umm I'm saying the "data" in the data field :) it should be a json array with raw strings inside right? |
the data field could be data for the irc bot, or otherwise, it is the "data" for the "command" |
This task is to add the ability to send an email based on templates.
You will need to create at least 2 basic templates and have the system able to be told which template to use and send an email to the specified address using that template.
Bonus points: Be able to specify data to replace in the templates for example "Name"
The text was updated successfully, but these errors were encountered: