Archived

This topic is now archived and is closed to further replies.

Email from MFC

This topic is 6349 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a way to send an email containing an attachment over the Internet or an Intranet from a standard MFC app? Is there a library i can download? Or do i have to code it from scratch using TCP/IP etc..? Basically I need to know how to send an email from my exe via Outlook, instead of typing out the email in Outlook itself... Edited by - SikCiv on 7/18/00 12:53:58 AM

Share this post


Link to post
Share on other sites
Guest Anonymous Poster

I don''t believe there is any MFC "email" class or the like (there are internet related classes tho).

Your in luck however. MS Outlook is an automation server (just like all other Office products) and as such is programmable. Search microsofts site for "Outlook Object Model" and I am sure you will turn up some good documentation and samples.

Share this post


Link to post
Share on other sites
It''s not supported directly with MFC, but there are plenty of ''em out there. If you can find a copy of Developing for the Internet with Winsock, it included C++ classes for several protocols, including SMTP. It worked quite well, as I worked SMTP support into a project without having to modify it as all.

Do a search for C++ SMTP classes that use Winsock on the net. You''ll find quite a few candidates. There''s a commercial one here. Developer.com has a lot of candidates, including one here.

Share this post


Link to post
Share on other sites
I dont actually need to email over the internet from my app, all im trying to do is send an email to outlook by just adding a new message. I know it can be done with Outlook2000 using the Outlook object module, but im using Outlook98, as do many other users, so id like to stick with Outlook 98 for now.
Im sure there is an easy way to do it? Is there a public library available, or can I do it without the use of extra libs, suing the standard set of libs available in MSVC?

My program is in C++, not VB, so obviously i need a c++ compatible lib.

If u guys dont know, is there another forum like this one but focuses on business/MFC apps?

Share this post


Link to post
Share on other sites