Comments (11)
Here is an example which is similar to yours:
mailio::message msg;
msg.from(mailio::mail_address("mailio", "[email protected]"));
msg.add_recipient(mailio::mail_address("mailio", "[email protected]"));
msg.add_cc_recipient(mailio::mail_address("mailio", "[email protected]"));
msg.add_bcc_recipient(mailio::mail_address("mailio", "[email protected]"));
msg.subject("issue120");
msg.content_transfer_encoding(mailio::mime::content_transfer_encoding_t::QUOTED_PRINTABLE);
msg.content_type(mailio::mime::media_type_t::TEXT, "plain", "gb2312");
msg.content("issue120");
smtps conn("smtp.mailio.dev", 465);
conn.authenticate("[email protected]", "***", smtps::auth_method_t::LOGIN);
conn.submit(msg);
I do not have any segmentation faults on Ubuntu/Gcc. Can you confirm that this simplified example works in your case? Also take care that you are using the correct port number which requires SSL immediately, not the START TLS port.
from mailio.
Here is an example which is similar to yours:
mailio::message msg; msg.from(mailio::mail_address("mailio", "[email protected]")); msg.add_recipient(mailio::mail_address("mailio", "[email protected]")); msg.add_cc_recipient(mailio::mail_address("mailio", "[email protected]")); msg.add_bcc_recipient(mailio::mail_address("mailio", "[email protected]")); msg.subject("issue120"); msg.content_transfer_encoding(mailio::mime::content_transfer_encoding_t::QUOTED_PRINTABLE); msg.content_type(mailio::mime::media_type_t::TEXT, "plain", "gb2312"); msg.content("issue120"); smtps conn("smtp.mailio.dev", 465); conn.authenticate("[email protected]", "***", smtps::auth_method_t::LOGIN); conn.submit(msg);
I do not have any segmentation faults on Ubuntu/Gcc. Can you confirm that this simplified example works in your case? Also take care that you are using the correct port number which requires SSL immediately, not the START TLS port.
This example runs fine.
I'm using a 163.com mailbox and the same 465 port, it works fine on windows.
from mailio.
Did you try the port 587 with the start tls option?
from mailio.
Did you try the port 587 with the start tls option?
It doesn't work.
I have re-tested the example, it still crashs.
from mailio.
Here is an example which is similar to yours:
mailio::message msg; msg.from(mailio::mail_address("mailio", "[email protected]")); msg.add_recipient(mailio::mail_address("mailio", "[email protected]")); msg.add_cc_recipient(mailio::mail_address("mailio", "[email protected]")); msg.add_bcc_recipient(mailio::mail_address("mailio", "[email protected]")); msg.subject("issue120"); msg.content_transfer_encoding(mailio::mime::content_transfer_encoding_t::QUOTED_PRINTABLE); msg.content_type(mailio::mime::media_type_t::TEXT, "plain", "gb2312"); msg.content("issue120"); smtps conn("smtp.mailio.dev", 465); conn.authenticate("[email protected]", "***", smtps::auth_method_t::LOGIN); conn.submit(msg);
I do not have any segmentation faults on Ubuntu/Gcc. Can you confirm that this simplified example works in your case? Also take care that you are using the correct port number which requires SSL immediately, not the START TLS port.
This example runs fine. I'm using a 163.com mailbox and the same 465 port, it works fine on windows.
This test result is invalidate. I have tested the wrong program by mistake, sorry.
from mailio.
So, my simplified example crashes too?
from mailio.
So, my simplified.example crashes too?
The example reports this error:
terminate called after throwing an instance of 'mailio::dialog_error'
what(): Server connecting failed.
Aborted
I changed it to my server setup, it crashed with the same Segmentation fault
error.
from mailio.
Another whield thing is when I created a new program like this
#include <iostream>
#include <mailio/smtp.hpp>
#include <mailio/message.hpp>
int main()
{
mailio::message msg;
msg.from(mailio::mail_address("mailio", "[email protected]"));
msg.add_recipient(mailio::mail_address("mailio", "[email protected]"));
msg.add_cc_recipient(mailio::mail_address("mailio", "[email protected]"));
msg.add_bcc_recipient(mailio::mail_address("mailio", "[email protected]"));
msg.subject("issue120");
msg.content_transfer_encoding(mailio::mime::content_transfer_encoding_t::QUOTED_PRINTABLE);
msg.content_type(mailio::mime::media_type_t::TEXT, "plain", "gb2312");
msg.content("issue120");
mailio::smtps conn("smtp.163.com", 465);
conn.authenticate("[email protected]", "xxxxxx", mailio::smtps::auth_method_t::LOGIN);
conn.submit(msg);
return 0;
}
it doesn't crash.
from mailio.
So, when you use the example with your credentials it works, but after your code changes it does not work?
from mailio.
So, when you use the example with your credentials it works, but after your code changes it does not work?
Yes.
from mailio.
But then it's a problem with your changes, right?
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.