473,386 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Default email client with attachment

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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #1
7 10639
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
Nov 21 '05 #2
So my only choice would be my current solution (forcing Outlook), or use
the SMTP mail examples that I have seen - right?

Darin

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #3
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
Nov 21 '05 #4
* Darin <darin_nospam@nospamever> scripsit:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #5
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

"Cor Ligthert" wrote:
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

Nov 21 '05 #6
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

gabe wrote:
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

"Cor Ligthert" wrote:

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

Nov 21 '05 #7
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"

"Marc Cramer" wrote:
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


Nov 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Martin Körner | last post by:
Hi NG, I am using email module for creating mails with attachment (and then sending via smtplib). If the name of the attachment file is longer than about 60 characters the filename is wrapped...
2
by: Robbie De Sutter | last post by:
Hello, How do I open a new, empty e-mail message from the default e-mail client whereby the sender is given and a file is attached? Currently I use the command (vb.net): ---...
6
by: Kurt | last post by:
Hello, How do I launch default e-mail client (Otulook, Eudora...) with attachment? mailto: does not support attachments and SMTP does not open the default e-mail client. Kurt
2
by: Landley | last post by:
Hello, Is there a way of creating an email, attaching a file and sending using the client's default mail client? I am looking for a none email client specific solution that does not involve...
11
by: Dustin Davis | last post by:
(using VB.NET 2005) I'm writing a desktop application that I would like to have the ability to email files. I've set up the SMTP portion, now I would like to have a MAPI option. I found a...
13
by: Hemant Sipahimalani | last post by:
The following piece of code is being used to export HTML to excel. HttpContext.Current.Response.ContentType = "application/vnd.ms-excel"...
2
by: Hanika | last post by:
Going on 3 days and I am wodnering if I am just not looking in the right place. If anyone nows how to do this please please help me. I am developing a Windows form application using VB.NET 2005....
7
by: erikcw | last post by:
Hi all, I'm trying to extract zip file (containing an xml file) from an email so I can process it. But I'm running up against some brick walls. I've been googling and reading all afternoon, and...
5
by: Ben K | last post by:
I saw some posting some time ago regarding a "trick" to automatically pop up an email editor with attachment using the default mail client. It is basically using automation to do the following...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.