Solved

Visual C++ Attach File to Email

Posted on 2009-05-13
1
317 Views
Last Modified: 2013-12-14
I need to automate reporting with C++ programs I built in Visual Studios. In the past, I have used the CFastSmtp class to send out emails. However, I now need to attach text files to the outgoing emails, but CFastSmtp does not seem to have this capability.

Does CFastSmtp have the capability to attach files to emails? If not, how can I achieve this task?
0
Comment
Question by:nicoleheritage
1 Comment
 
LVL 49

Accepted Solution

by:
DanRollins earned 500 total points
ID: 24381423
According to the doc, CFasSmpt does not support attachments.
I recommend:

    MFC class to support the SMTP protocol
    http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=148&lngWId=3
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question