Solved

Visual C++ Attach File to Email

Posted on 2009-05-13
1
325 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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 NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

623 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