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 ProcessStartInfo
psi.UseShellExecute = True
psi.FileName = "mailto:" & HttpUtility.UrlEncode([To]) &
"?subject=" & Subject & "&body=" & Message
Process.Start(psi)
What do I use for the variable (like &body is used for the text body)?
--
Dennis in Houston 11 1813
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****@discussions.microsoft.com> schreef in bericht
news:DF**********************************@microsof t.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 ProcessStartInfo psi.UseShellExecute = True psi.FileName = "mailto:" & HttpUtility.UrlEncode([To]) & "?subject=" & Subject & "&body=" & Message Process.Start(psi)
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****@discussions.microsoft.com> schreef in bericht news:DF**********************************@microsof t.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 ProcessStartInfo psi.UseShellExecute = True psi.FileName = "mailto:" & HttpUtility.UrlEncode([To]) & "?subject=" & Subject & "&body=" & Message Process.Start(psi)
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***************@tk2msftngp13.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****@discussions.microsoft.com> schreef in bericht news:DF**********************************@microsof t.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 ProcessStartInfo psi.UseShellExecute = True psi.FileName = "mailto:" & HttpUtility.UrlEncode([To]) & "?subject=" & Subject & "&body=" & Message Process.Start(psi)
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...Am 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***************@tk2msftngp13.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****@discussions.microsoft.com> schreef in bericht news:DF**********************************@microsof t.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 ProcessStartInfo psi.UseShellExecute = True psi.FileName = "mailto:" & HttpUtility.UrlEncode([To]) & "?subject=" & Subject & "&body=" & Message Process.Start(psi)
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.DownLoadMail = False
MAPISession1.SignOn
MAPISession1.NewSession = True
MAPIMessages1.SessionID = MAPISession1.SessionID
MAPIMessages1.Compose
MAPIMessages1.RecipAddress = "so*****@somewhere.com"
MAPIMessages1.msgSubject = "My subject"
MAPIMessages1.msgNoteText = "bla bla bla"
MAPIMessages1.Send
MAPISession1.SignOff
MAPISession1.NewSession = False
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:uk**************@TK2MSFTNGP15.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
CMM,
Thanks, I will try it soon,
Cor
"CMM" <cm*@nospam.com> schreef in bericht
news:Om****************@TK2MSFTNGP10.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.DownLoadMail = False MAPISession1.SignOn MAPISession1.NewSession = True
MAPIMessages1.SessionID = MAPISession1.SessionID
MAPIMessages1.Compose MAPIMessages1.RecipAddress = "so*****@somewhere.com" MAPIMessages1.msgSubject = "My subject" MAPIMessages1.msgNoteText = "bla bla bla"
MAPIMessages1.Send
MAPISession1.SignOff MAPISession1.NewSession = False
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message news:uk**************@TK2MSFTNGP15.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**************@TK2MSFTNGP15.phx.gbl... CMM,
Thanks, I will try it soon,
Cor
"CMM" <cm*@nospam.com> schreef in bericht news:Om****************@TK2MSFTNGP10.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.DownLoadMail = False MAPISession1.SignOn MAPISession1.NewSession = True
MAPIMessages1.SessionID = MAPISession1.SessionID
MAPIMessages1.Compose MAPIMessages1.RecipAddress = "so*****@somewhere.com" MAPIMessages1.msgSubject = "My subject" MAPIMessages1.msgNoteText = "bla bla bla"
MAPIMessages1.Send
MAPISession1.SignOff MAPISession1.NewSession = False
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message news:uk**************@TK2MSFTNGP15.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
--------------------------------------------------------------------------------
...
|
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...
|
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...
|
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...
|
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...
|
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)
...
|
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.
...
|
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...
|
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,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
| |