How to send a email with Visual C++?

Help, I need to send and email from a Visual C++ program.

I use the Mapi function MAPISendMail, but the linker return the following message:


LNK2001: Unresolved external symbol _MAPISendMail


Thanks


Comments

  • The docs say that you should do a LoadLibrary on mapi32.dll and then do a GetProcAddress on MAPISendMail. You could also find the library where this is exported (surprisingly Mapi32.lib does not export this function).


    Good luck!

    --John


    : Help, I need to send and email from a Visual C++ program.

    : I use the Mapi function MAPISendMail, but the linker return the following message:


    : LNK2001: Unresolved external symbol _MAPISendMail


    : Thanks





Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories