Solved

Visual C++ Attach File to Email

Posted on 2009-05-13
1
320 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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. …
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
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 NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

820 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