X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-main.c;h=5d048dc43cbc8a6796301e5509ed979eef8bc930;hb=90b7d85fe6a7f3a46b14810fb9476982d021716d;hp=324465caa692c1c3d6868936cca116c7da1ffd63;hpb=99b831c709432c1dbf5331b9ab18690426244bb8;p=modest diff --git a/src/modest-main.c b/src/modest-main.c index 324465c..5d048dc 100644 --- a/src/modest-main.c +++ b/src/modest-main.c @@ -283,11 +283,13 @@ send_mail (const gchar* account_name, from_string = modest_account_mgr_get_from_string (modest_runtime_get_account_mgr(), account_name); - mail_operation = modest_mail_operation_new (); + mail_operation = modest_mail_operation_new (MODEST_MAIL_OPERATION_TYPE_SEND, NULL); + modest_mail_operation_send_new_mail (mail_operation, account, + NULL, from_string, mailto, - cc, bcc, subject, body, NULL, - NULL, 0); + cc, bcc, subject, body, NULL /* html_body */, + NULL /* attachments */, 0 /* priority */); if (modest_mail_operation_get_status (mail_operation) == MODEST_MAIL_OPERATION_STATUS_FAILED) { retval = MODEST_ERR_SEND;