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 11 1826
Dennis,
You cannot using this method.
You are absolute not the first one who ask this.
This is code to call the default mail client, whatever this is even if it
has no mailattachment as Outlook Express and Office Outlook have.
Your solution for this is using the webmail, however than your user does not
see the mail. Or Office Outlook interop. And than only users who have Office
Outlook can use that
I know it helps nothing however,
Cor
"Dennis" <De****@discuss ions.microsoft. com> schreef in bericht
news:DF******** *************** ***********@mic rosoft.com... 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
Thanks Cor for you answer. I've been searching Google and did find out
where this is not possible. Just one more question, If I read Google right,
I have to have IIs installed on my computer to use the System.web.mail class
for sending e-mail...is this correct?
--
Dennis in Houston
"Cor Ligthert [MVP]" wrote: Dennis,
You cannot using this method.
You are absolute not the first one who ask this.
This is code to call the default mail client, whatever this is even if it has no mailattachment as Outlook Express and Office Outlook have.
Your solution for this is using the webmail, however than your user does not see the mail. Or Office Outlook interop. And than only users who have Office Outlook can use that
I know it helps nothing however,
Cor
"Dennis" <De****@discuss ions.microsoft. com> schreef in bericht news:DF******** *************** ***********@mic rosoft.com...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
I think you can accomplish this via MAPI (MSMAPI32 ActiveX controls). MAPI
will use your default e-mail editor (Outlook, Outlook Express.... even Yahoo
web mail if you install the Yahoo experience tools).
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. . Dennis,
You cannot using this method.
You are absolute not the first one who ask this.
This is code to call the default mail client, whatever this is even if it has no mailattachment as Outlook Express and Office Outlook have.
Your solution for this is using the webmail, however than your user does not see the mail. Or Office Outlook interop. And than only users who have Office Outlook can use that
I know it helps nothing however,
Cor
"Dennis" <De****@discuss ions.microsoft. com> schreef in bericht news:DF******** *************** ***********@mic rosoft.com...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
Cor, I had read that link and from the following extract, I concluded that I
needed IIs. I currently have e-mail thru my service provider (roadrunner)..
Apparently, I need also either IIs or Microsoft Exchange, IMail or someother
relay in beween the roadrunner service and my vb.net application...A m I
reading this correctly?
"A relay is a service that allows you to send email. It is usually a full
fledged mail server, or can be a specialized SMTP Service. Some examples of a
mail server include Microsoft Exchange, IMail by IPSwitch, or Mail Enable by
Mail Enable. An example of a SMTP service is the SMTP Service installed that
can be installed with IIS. SWM sends email to a relay server, and the relay
server is responsible for delivering the email to the final destination"
--
Dennis in Houston
"Cor Ligthert [MVP]" wrote: Dennis,
This famous pages for that.
http://www.systemwebmail.net/
I hope this helps,
Cor
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
"CMM" wrote: I think you can accomplish this via MAPI (MSMAPI32 ActiveX controls). MAPI will use your default e-mail editor (Outlook, Outlook Express.... even Yahoo web mail if you install the Yahoo experience tools).
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message news:%2******** *******@tk2msft ngp13.phx.gbl.. . Dennis,
You cannot using this method.
You are absolute not the first one who ask this.
This is code to call the default mail client, whatever this is even if it has no mailattachment as Outlook Express and Office Outlook have.
Your solution for this is using the webmail, however than your user does not see the mail. Or Office Outlook interop. And than only users who have Office Outlook can use that
I know it helps nothing however,
Cor
"Dennis" <De****@discuss ions.microsoft. com> schreef in bericht news:DF******** *************** ***********@mic rosoft.com...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
Dennis,
You need one of those providers as you mention not all. I name it forever
the ultimate spam engine.
You can use one IIS SMTP Mail servers which you can create on one of your
servers (or desktop that functions as this) and take its IP addres. You
create it using in the configuration at that special Microsoft Windows tab
at installed software and in that the IIS part. (very simple to do just
checking the checkbox for that).
Most IP providers don't like it if you take their SMTP server. You don't
need Exchange for this. Morevover if you have Exchange it is more work to
use.
You should create your own loging because without Exchange there is nothing
logged to who you have sent a mail.
I hope this helps,
Cor
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
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...
|
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...
|
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. ...
|
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...
|
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: 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...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
| |