karastojko/mailio

Unknown Signal Exception After Sending Email

AdamGoris opened this issue · 4 comments

I installed mailio using vcpkg and have version 0.21.0

After sending an email, I am getting an Unknown signal exception at:
mailio/mailboxes.hpp mailio.mail_address (line 33):
image

I also notice that my from and to variables which are mailio_addresses have the following errors:
image

The full error message for the from variable address is:
<error reading variable: Cannot create a lazy string with address 0x0, and a non-zero length.><error reading variable: Cannot create a lazy string with address 0x0, and a non-zero length.>

Also something that may be related is if I set message from and recipient as is done in the examples:

msg.from(mail_address(sender_name, sender_email));
msg.add_recipient(mail_address(receiver_name, receiver_email));

I get the same error as above. But if I do:

mail_address from = mail_address(sender_name, sender_email);
msg.from(from);
mail_address to = mail_address(receiver_name, receiver_email);
msg.add_recipient(to);

The message can be constructed and sent, but then exits due to the Unknown signal exception.

Thanks for reporting this. The environment is Windows/Visual Studio?

I am using a Windows/MinGW environment

I was able to make it work with windows/mingw but had to add these to the linker settings link libraries:

libcrypto.a
libssl.a
ws2_32

Thanks for the clarification.