I am using the following code that I got from this newsgroup to start a
user's default e-mail editor and it works ok. However, I would like to
attach a file to the editor (like using word as editor)
Dim psi As New ProcessStartInf o
psi.UseShellExe cute = True
psi.FileName = "mailto:" & HttpUtility.Url Encode([To]) &
"?subject=" & Subject & "&body=" & Message
Process.Start(p si)
What do I use for the variable (like &body is used for the text body)?
--
Dennis in Houston
Jan 28 '06
11 1840
CMM,
Thanks, I will try it soon,
Cor
"CMM" <cm*@nospam.com > schreef in bericht
news:Om******** ********@TK2MSF TNGP10.phx.gbl. .. I have confirmed personally that the mapi activex controls (msmapi32.ocx) do indeed work with OE... in fact they work better with OE than with Outlook because of Outlook's Object Model Guard.
MAPI (Mail API) was intended to be a "generic" interface into any "default" e-mail program on the computer... not just MSMail or Exchange based ones.
(VB6 code using the two controls necessary)
MAPISession1.Do wnLoadMail = False MAPISession1.Si gnOn MAPISession1.Ne wSession = True
MAPIMessages1.S essionID = MAPISession1.Se ssionID
MAPIMessages1.C ompose MAPIMessages1.R ecipAddress = "so*****@somewh ere.com" MAPIMessages1.m sgSubject = "My subject" MAPIMessages1.m sgNoteText = "bla bla bla"
MAPIMessages1.S end
MAPISession1.Si gnOff MAPISession1.Ne wSession = False
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message news:uk******** ******@TK2MSFTN GP15.phx.gbl... Dennis,
I looked up MAPI and it infers that I have to have an exchange server...I 'm not sure what this is. I use Outlook to send e-mail thru my internet provider "Time Warner RoadRunner" and Word as my default e-mail editor. What else do I need to use MAPI? -- Dennis in Houston I thought that as well that the MAPI was used in combination with Exchange server. So I have checked this at Internet. I saw some things about Outlook Express, however I doubt it of the writters of that are not confused with Office Outlook, what started with that name from MS Mail 4.0 what had got than got the name MS Exchange and than the client who had forever had in all versions until 3.5 had the name Exchange became Outlook. It was a while very confusing to explain that.
However as CMM has a good solutiong that real works on Outlook Express and by instance all Apple email clients, than we are probably all very interested.
Cor
Just to point it (what might be obvious...) you need to have an e-mail
account set up in OE and it needs to be your "default" e-mail program as per
Internet Explorer's -> Properties (Options) -> Programs.
If instead Outlook 2003 is the default, it triggers the Outlook Guard (not
sure about Outlook 2000 or 2002). I dunno off the top of my head how to get
around that... something having to do with adding a certificate or
whatever.... I'm sure there's info on how to do it on the web.
But it works for OE splendidly (WinXP SP2)
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:ug******** ******@TK2MSFTN GP15.phx.gbl... CMM,
Thanks, I will try it soon,
Cor
"CMM" <cm*@nospam.com > schreef in bericht news:Om******** ********@TK2MSF TNGP10.phx.gbl. ..I have confirmed personally that the mapi activex controls (msmapi32.ocx) do indeed work with OE... in fact they work better with OE than with Outlook because of Outlook's Object Model Guard.
MAPI (Mail API) was intended to be a "generic" interface into any "default" e-mail program on the computer... not just MSMail or Exchange based ones.
(VB6 code using the two controls necessary)
MAPISession1.Do wnLoadMail = False MAPISession1.Si gnOn MAPISession1.Ne wSession = True
MAPIMessages1.S essionID = MAPISession1.Se ssionID
MAPIMessages1.C ompose MAPIMessages1.R ecipAddress = "so*****@somewh ere.com" MAPIMessages1.m sgSubject = "My subject" MAPIMessages1.m sgNoteText = "bla bla bla"
MAPIMessages1.S end
MAPISession1.Si gnOff MAPISession1.Ne wSession = False
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message news:uk******** ******@TK2MSFTN GP15.phx.gbl... Dennis,
I looked up MAPI and it infers that I have to have an exchange server...I' m not sure what this is. I use Outlook to send e-mail thru my internet provider "Time Warner RoadRunner" and Word as my default e-mail editor. What else do I need to use MAPI? -- Dennis in Houston
I thought that as well that the MAPI was used in combination with Exchange server. So I have checked this at Internet. I saw some things about Outlook Express, however I doubt it of the writters of that are not confused with Office Outlook, what started with that name from MS Mail 4.0 what had got than got the name MS Exchange and than the client who had forever had in all versions until 3.5 had the name Exchange became Outlook. It was a while very confusing to explain that.
However as CMM has a good solutiong that real works on Outlook Express and by instance all Apple email clients, than we are probably all very interested.
Cor
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tim J. |
last post by:
When I send a message using the mail command in PHP some e-mail
addresses somehow put two returns in place of one return, so this:
$message = "Test
Test2"
becomes
Test
|
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
Hello,
I have a very simple problem but cannot seem to figure it out. I have a
very simple php script that sends a test email to myself. When I debug
it in PHP designer, it works with no problems, I get the test email. If
|
by: Kris van der Mast |
last post by:
Hi,
been a while since I posted a question myself instead of trying to help
others out.
I'm refactoring an existing web app that uses dynamic loading of user
controls and a lot of response.redirects to the same page. Because I hate
the overhead by doing this I'm searching for a cleaner option.
But I'm having troubles (off course or I wouldn't be posting this).
|
by: jonelling |
last post by:
I am having a problem where the page load event is not being fired
for certain user controls that I load dynamically in placeholders.
Here is what I'm doing in brief, with full test code supplied at the
bottom.
In my controlling .aspx page, in the page_init() sub, if not postback,
I load two user controls and place them in placeholders. This works
and a trace statement in each user control's page load handler is
executed on initial...
|
by: Michael |
last post by:
Dear all ..
If I want to use develop a user control and declare a public property which
the type is System.Windows.Forms.GridTableStylesCollection
For example :
Public Class LookAndView
Inherits System.Windows.Forms.UserControl
Private _Collection As GridTableStylesCollection
| |
by: Ryan |
last post by:
Hi,
I receive an access denied error (see below) when attempting to send an
email with BodyFormat=MailFormat.Html from an asp.net page. Exactly the same
code works fine in a console application, and also succeeds from the asp.net
page with BodyFormat=MailFormat.Text.
I've recently upgraded from W2K SP4 to WinXP SP2 and am using .Net Framework
v1.1 SP1. The code worked fine under W2K SP4.
|
by: ckirby |
last post by:
I've inherited an application for creating mail merges from an Access
2003 ADP that needs an overhaul.
To generate the mail merge , the app uses a shell command:
result = Shell(str, vbHide)
where str = "C:\Program Files\Microsoft Office\Office\Winword.exe " &
letter & " /mmergeletter"
|
by: Chr1s |
last post by:
How do I execute a crontab command using php (not CLI) as user Joe?
I don't have any problem getting output from commands such as 'ls'
using passthru and exec but I am stumped with crontab.
Many thanks!
Chris
|
by: vinodkus |
last post by:
Problem 1I m writing a mail program in asp
my first page is mail.asp where I subitting address, subject, body and
second page is send_mail.asp
Contents of Page mail.asp
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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,...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |