Actually use html function

Signed-off-by: tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
tyrolyean 2020-05-01 11:28:35 +02:00
parent 48d3990043
commit 764ff918bd
No known key found for this signature in database
GPG key ID: EDD105663B707C62
2 changed files with 2 additions and 1 deletions

View file

@ -72,6 +72,7 @@ struct email_t{
int append_header(struct email_t* mail, const char* key, const char* value);
int append_to_header(struct email_t* mail, const char* pair);
int append_to_body(struct email_t* mail, const char* text);
int append_to_html_body(struct email_t* mail, const char* text);
int remove_mail(struct email_t* mail);
struct email_t* get_root_mail(struct email_t* mail);

View file

@ -475,7 +475,7 @@ int replace_files(struct email_t* mail, const char* dirname, bool* created){
append_to_body(txt_app, text_buffer);
}
if(html_app != NULL){
append_to_body(html_app, html_buffer);
append_to_html_body(html_app, html_buffer);
}