Comments (10)
I did manage to hit that bug too. Seems to only happen when you link statically with the library. That is a weird one! Also the bug seems to be absent with older versions of the library, so whatever is causing it was introduced in the more recent commits(my guess is 1f07964).
from mailio.
I got it too. Seems like a consequence of the static initialization order fiasco. I will fix it soon. Thanks for your effort.
from mailio.
@triccyx @RosenGeorgiev Please check the latest commit, it works for me in both static and dynamic linking.
from mailio.
We can close this issue.
from mailio.
It works fine in my case, also Ubuntu and Gmail. Is there a chance to test it with another mail server?
from mailio.
Hmm, all tests passed otherwise I would not commit. Probably a corner case which is not covered, I will double check. Is there a chance to give me the complete example except the credentials?
from mailio.
Yes, very strange but I can confirm. With .so lib all works.
from mailio.
It's the smtps_simple_msg.cpp
, but I pass -DMAILIO_BUILD_SHARED_LIBRARY=OFF
to cmake (actually I set in in ccmake, but it's the same). That breaks it. If you set it to ON, then it works. The example code is exactly the same (except the creds). I guess @triccyx will confirm that he compiles it the same way, that's why he hits the error too. I've got no idea why the way I link to the library triggers the bug. Again - this is a very weird one.
from mailio.
I use a different approach but the result should be the same:
#MAIL
FetchContent_Declare(
mailio
GIT_REPOSITORY https://github.com/karastojko/mailio.git
GIT_TAG origin/master
)
FetchContent_GetProperties(mailio)
if(NOT mailio)
FetchContent_Populate(mailio)
add_subdirectory(${mailio_SOURCE_DIR} ${mailio_BINARY_DIR})
endif()
This download and compile static.
But if I use the advanced trigger with ccmake:
All works.
from mailio.
I have tested and it works for me.
from mailio.
Related Issues (20)
- Problems compiling the example code with CMake HOT 1
- IMAP(Switching to SSL failed.) HOT 2
- IMAP list folder, encoding error ? HOT 12
- Switching to SSL failed HOT 8
- send imap quoted string HOT 9
- imap fetch command response parsing HOT 2
- parsing imap quoted string HOT 2
- segmentation fault in imap fetch function
- parsing imap resp-text
- [Question] Image in the body of the message HOT 10
- Please, could anyone provide me an example of how to get the mail content as a unencoded string? HOT 2
- Linking errors HOT 11
- Is it ok to use `-std=c++17` instead of `-std=gnu++1z` HOT 1
- smtps::connection::submit response HOT 2
- add_bcc_recipient HOT 8
- Switching to SSL failed HOT 6
- Parsing failure. HOT 8
- Allow formatting of BCC addresses HOT 2
- when parsing the header of this mime crashed! HOT 14
- mailio stop working with vcpkg? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailio.