Default email client with attachment

D

Darin

Currently, our software is creating an email message using the Outlook
DLL to send emails out that have PDF attachments. I want to stop forcing
the customer to use outlook to send email.
So, I know I can use "mailto" to send email, but what methodology should
I use to send email using the default mail client WITH an attachment.

Thanks

Darin
 
C

Cor Ligthert

Darin,
So, I know I can use "mailto" to send email, but what methodology should
I use to send email using the default mail client WITH an attachment.

You cannot

Cor
 
D

Darin

So my only choice would be my current solution (forcing Outlook), or use
the SMTP mail examples that I have seen - right?

Darin
 
C

Cor Ligthert

Exactly
So my only choice would be my current solution (forcing Outlook), or use
the SMTP mail examples that I have seen - right?
Exchange/Office Outlook of course and not Outlook Expres and than SMTP mail
only on NT5 and newer.

Cor
 
H

Herfried K. Wagner [MVP]

* Darin said:
Currently, our software is creating an email message using the Outlook
DLL to send emails out that have PDF attachments. I want to stop forcing
the customer to use outlook to send email.
So, I know I can use "mailto" to send email, but what methodology should
I use to send email using the default mail client WITH an attachment.

There is no standardized way to do that. Some mail clients will
interpret 'attach' or 'attachment', but AFAIK the most common mail
client, Outlook Express, doesn't understand these commands.
 
G

Guest

but you could use MAPI. I have a vb.net project that is rather successful
using simple mapi. it supports attachments and seems to work with eudora
outlook and outllok express. i'm thinking it would work with other mapi
compatible email clients

gabe
 
M

Marc Cramer

Hello...

I saw the following message (below) on the newsgroup and was wondering
if you could share the vb.net project with me.

I would really like to see how you are accomplishing this.

Thanks,

Marc Cramer
cramer236 @ comcast . net
 
G

Guest

marc,
the code in the sub looks alot like this:

Dim Session As New MSMAPI.MAPISession
Session.LogonUI = True
Session.DownLoadMail = False
Session.SignOn()
Dim Messages As New MSMAPI.MAPIMessagesClass
Messages.SessionID = Session.SessionID
Messages.Compose()
Messages.RecipDisplayName = txtMessageTo.Text
Messages.MsgNoteText = txtMessageBody.Text
Messages.MsgSubject = txtMessageSubject.Text
Messages.ResolveName()
Messages.Send(False)
Session.SignOff()

this was done with a reference to msmapi32.ocx
(Microsoft MAPI Controls 6.0)
and if memory serves it was *heavily* influenced by one of the most useful
books
that i have ever read,
"Microsoft Visual Basic .NET Programmer's Cookbook"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top