🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13752

How to send email with attachment

#13752
From: Pete Fraser
Date: Mon, 22 Sep 2003 16:59
13 lines
1309 bytes
I'm trying to send an email with an attachment and the normal methods don't
seem to work:
i.e.
  AnsiString MailMsg = "mailto: fred@fred.com";
  MailMsg += ("?Subject="My subject"));
  MailMsg += "&attachment=\"c:\\junk.txt\"";
  MailMsg += "&Body=Body text";
  ShellExecute(NULL, "open", MailMsg.c_str(),NULL,NULL,SW_SHOW);

The email client comes up but no attachment is displayed.
What am I missing?

Rgds Pete
Technical Details
Message-ID: <3f6f2a83@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,103a5b9fca46af86,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-22 10:01:14 PST
From: "Pete Fraser" <pete.fraser@at.frasersoft.dot.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How to send email with attachment
Date: Mon, 22 Sep 2003 17:59:39 +0100
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 195.12.18.1
Message-ID: <3f6f2a83@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1064249987 195.12.18.1 (22 Sep 2003 09:59:47 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail