473,767 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10667
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@n ospamever> 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.MAPISess ion
Session.LogonUI = True
Session.DownLoa dMail = False
Session.SignOn( )
Dim Messages As New MSMAPI.MAPIMess agesClass
Messages.Sessio nID = Session.Session ID
Messages.Compos e()
Messages.RecipD isplayName = txtMessageTo.Te xt
Messages.MsgNot eText = txtMessageBody. Text
Messages.MsgSub ject = txtMessageSubje ct.Text
Messages.Resolv eName()
Messages.Send(F alse)
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
4661
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 in the Content-Disposition header: Content-Disposition: attachment; filename="This is a sample file with a very long filename
2
12186
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): --- System.Diagnostics.Process.Start("mailto:someone@somewhere&subject=the% 20subject") ---
6
2706
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
10696
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 specifying parameters such as mail servers etc. Cheers,
11
2095
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 MAPI tutorial, but it does a bit more than I want it to. What I would like to do is this: 1. Open the default mail client's compose window.
13
13241
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" HttpContext.Current.Response.AddHeader("content-disposition", "attachment;filename=ABC.xls") HttpContext.Current.Response.Write(strHTML) HttpContext.Current.Response.End() However when the user tries to save it the Default File Type is Web Page(*.htm; *.html)
2
31998
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. I have a PDF file that I want to attach to the local default email client and display it so that the user can enter the rest of the information. Like one would see using the right-click Send To Mail Recipient. I tried using MailTo. But the...
7
7645
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 can't seem to figure it out. Here is what I have so far. p = POP3("mail.server.com")
5
13312
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 steps 1. Using Explorer and copy a file, "C:\temp\attachment.txt" 2. Locate the item of type "MAPIMAIL File" in "SendTo" in Explorer (i.e. the default mail client program) 3. Paste the file to the "MAPIMAIL File" item in "SendTo". This will cause...
0
10014
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9960
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9841
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6656
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5280
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3931
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3534
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2808
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.