Giter Site home page Giter Site logo

Invalid Mail Header about nixnote2 HOT 4 CLOSED

the02 avatar the02 commented on July 20, 2024
Invalid Mail Header

from nixnote2.

Comments (4)

robert7 avatar robert7 commented on July 20, 2024

Hi
I don't currently use email in Nixnote - I plan do to some improvements in email: see #23 because I think current impl has few drawbacks - although I checked and it worked e.g. with gmail account and gmail SMTP.

I can later recheck, if I can reproduce your issue. It could be something related to your SMTP or it could be, that there is really an error in the email sending - but which seems to work with most providers.

from nixnote2.

the02 avatar the02 commented on July 20, 2024

this is a quickfix

diff --git a/src/email/mimemessage.cpp b/src/email/mimemessage.cpp
index 0c4ebc2d..d4629206 100644
--- a/src/email/mimemessage.cpp
+++ b/src/email/mimemessage.cpp
@@ -250,6 +250,10 @@ QString MimeMessage::toString()
     mime += "\r\n";
     mime += "MIME-Version: 1.0\r\n";
 
+    mime += "Date: ";
+    mime += QDateTime::currentDateTime().toString(Qt::RFC2822Date);
+    mime += "\r\n";
+
     mime += content->toString();
     return mime;
 }

from nixnote2.

robert7 avatar robert7 commented on July 20, 2024

thanks, I'll check your fix and will integrate it

from nixnote2.

robert7 avatar robert7 commented on July 20, 2024

I added your fix in 2.1.0-beta5b. Thank you very much.

You can check using develop build - https://github.com/robert7/nixnote2/wiki/HowTo---Test-latest-application-changes-using-development-version

from nixnote2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.