Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Attachments problem



  • Code is given below:
    @bool error=image.save("/home/user/MyDocs/.images/viral.png");
    qDebug()<<error;

     QMessage msg;
     msg.setType(QMessage::Email);
    
     // Set recipient for our email message
    
    
    
     // Define message subject, body and append attachment
     msg.setSubject("How are you ");
     msg.setBody("Hiiiiiiiiiii");
    

    // QStringList attachments;
    // attachments<<"";

     msg.appendAttachments(QStringList("/home/user/MyDocs/.images/viral.png"));
     QMessageService service;
     service.compose(msg);@
    
    1. I am saving image ..its working
    2. I have to attach that image ,for that code is written,email is also opening in my phone default mailbox but with no attachments??????

    Any Suggestions??



  • Do you get any output on the debug/console ?

    what do you mean by phone default mailbox ? which phone ?



  • [quote author="digitalsurgeon" date="1294214498"]Do you get any output on the debug/console ?

    what do you mean by phone default mailbox ? which phone ?[/quote]

    i have nokia N900 ....default means the default email accout created on my mobile phone to reterive mails on phone...


Log in to reply