would like to send messages from my vb application with the user default mail software. That's to say preparing content, attachement and let user selecting the "to" option with it's own friends list. I had a close look to this community and web pages but I'm not really sure to find what I wanted
I do not want to use outlook, as perhaps it's not the user mail software, I want to use default user software, not knowing it
I do not want to use system.web.mail as I do not want to send directly the mail and don't know the smtp server. I want the user to select the destination like with a normal mail
MAPI does want I want but when I install the soft on another pc, I get a "no license for this class" message which seems to be a known problem and has no real good solution (but this would be the solution closest to my needs !)
I didn't spent time to cdo as I spent already much time and would prefer to know before if it the good way to look at
and finally, I'm wondering also about sendto objec
So... what will be your ideas for something which seemed to me simple at the beginning... 5 1172
Hi,
Take a look at indy. http://www.indyproject.org/Indy.html
Here a vb.net version of the send mail demo. http://www.onteorasoftware.com/downl...dysendmail.zip
Ken
------------------
"Olivier/Noetika" <an*******@disc ussions.microso ft.com> wrote in message
news:A2******** *************** ***********@mic rosoft.com... would like to send messages from my vb application with the user default mail software. That's to say preparing content, attachement and let user selecting the "to" option with it's own friends list. I had a close look to this community and web pages but I'm not really sure to find what I wanted. I do not want to use outlook, as perhaps it's not the user mail software, I want to use default user software, not knowing it. I do not want to use system.web.mail as I do not want to send directly the mail and don't know the smtp server. I want the user to select the destination like with a normal mail. MAPI does want I want but when I install the soft on another pc, I get a "no license for this class" message which seems to be a known problem and has no real good solution (but this would be the solution closest to my needs !). I didn't spent time to cdo as I spent already much time and would prefer to know before if it the good way to look at ! and finally, I'm wondering also about sendto object So... what will be your ideas for something which seemed to me simple at the beginning...
Thanks for the rply. I just wanted to include a few lines to send an email, like it was possible with VB6& Mapi and the 3,5 Meg of indysocket.dll seems a bit heavy for that. Furthermore, what seems to me the more interesting is to use the default mail client of the user, in order to let him select the mail adress by in its own list
I would prefer to find how application like Word does with it's file/"send to" as attachment command to open a mail with a joined file.
You can try this, this is the easiest method to use the standare email
client, however attachments should be attached by the client by hand because
for that is not method to do it programly.
I hope this helps?
Cor
\\\Question is of sSubject and sMessage has to be with UrlEncode, at me it
goes wrong with and for Herfried it goes wrong without so that should me
tried.
'A reference to System.Web may be necessary
'in the Project for this Import to work.
Imports System.Web.Http Utility
Public Sub StartDefaultMai l (sTo As String, _
Optional sSubject As String = "", _
Optional sMessage As String = "")
Try
sTo = UrlEncode (sTo)
sSubject = sSubject
sMessage = sMessage
Process.Start ("mailto:" & sTo & "?subject=" _
& sSubject & "&body=" & sMessage)
Catch e As Exception
MsgBox ("Couldn't start default email application" _
& vbCrLf & e.Message)
'or
Throw New Exception ("Couldn't start default email app", e)
End Try
End Sub
///
* "Cor Ligthert" <no**********@p lanet.nl> scripsit: Public Sub StartDefaultMai l (sTo As String, _ Optional sSubject As String = "", _ Optional sMessage As String = "") Try sTo = UrlEncode (sTo) sSubject = sSubject sMessage = sMessage Process.Start ("mailto:" & sTo & "?subject=" _ & sSubject & "&body=" & sMessage)
I still think that 'sSubject' and 'sMessage' should be encoded too.
;-)
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Yes, thanks, it's an easy method but as you pointed at, it's not possible to attach a file. And the line.length seems to be limited to about 2000 chars. I still wonder how soft like word does (send as attachment is exactly what I would like to reproduce). This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Paul Lamonby |
last post by:
Hi,
I am sending a file from the server as an email attachment. The file
is being attached no problem and sending the email, but I get an error
when I try to open it saying it is corrupt. Obviuosly, the file is
fine on the server, so the attachment code I am using must be
corrupting it, but I dont know what it is:
// send email with attachment
function emailAttachment($to, $subject, $message, $name, $email,
|
by: coder_1024 |
last post by:
I'm trying to send a packet of binary data to a UDP server. If I send
a text string, it works fine. If I attempt to send binary data, it
sends a UDP packet with 0 bytes of data (just the headers). I can see
this because I'm running Ethereal and watching the packets.
I'm defining the packets as shown below:
$text_msg = "Hello, world\r\n";
$binary_msg = chr(0x01).chr(0x02).chr(0x03).chr(0x00).chr(0xA0);
$binary_msg_size = 5;
|
by: Tim Black |
last post by:
My application requires sending a large piece (~2MB) of data to
several devices on a network via TCP sockets. I have experimented with
different methods for doing this and this has raised some questions
about the implementation of Python sockets.
(both methods use blocking sockets)
Method 1: Calls socket.sendall(data) for each device in sequence, all
in a single thread.
|
by: Joe |
last post by:
Hi,
I am sending an email from an asp page. Besides sending an email to sender,
I am sending myself a BCC also. Out of 100 emails sent, about 5 recipients
received a blank email (no text in subject and body). The BCC of all these
emails that I sent to myself were fine. When I send email manually to these
5 recipients they receive it well.
I have pasted my code below. Can someone give me a clue as why this could be
happening? Is...
|
by: Robert A. van Ginkel |
last post by:
Hello Fellow Developer,
I use the System.Net.Sockets to send/receive data (no
tcpclient/tcplistener), I made a receivethread in my wrapper, the
receivethread loops/sleeps while waiting for data and then fires a
datareceived event.
Within the waitingloop there is a timeout function, but I want the the
'last-time-socket-used' variable set when the socket is finished sending.
When I send by System.Net.Sockets.Socket.Send(buffer()) (<--this...
| |
by: anonymous |
last post by:
Hi,
I'am sending an xml string to a web service(which is written in c#)
using the microsoft web services behavior.
When I check this string from the web service I observed that some of
the charaters have been replaced.
e.g "<" is replaced with "%3C", ">" is replaced with "%3E"
|
by: Sydney |
last post by:
Hi,
I am trying to construct a WSE 2.0 security SOAP request in VBScript on an
HTML page to send off to a webservice. I think I've almost got it but I'm
having an issue generating the nonce value for the UserName token. Is it
possilbe at all to do this from VBScript (or jscript?)? I know I will be
limited with what I can do with the SOAP message. Eg/ can't sign/encrypt it
etc.
Thanks,
|
by: Sells, Fred |
last post by:
I'm using MSW XP Pro with Python 2.4 to develop but production will be Linux
with Python 2.3. (could upgrade to 2.4 if absolutely necessary) I can also
switch to Linux for development if necessary.
I am writing some python to replace proprietary software that talks to a
timeclock via UDP.
The timeclock extracts the sending port from the UDP header and uses that
for all response messages.
|
by: remya1000 |
last post by:
by using FTP i can send files to server using vb.net.
if the file is big, then it will take some time to complete the sending process to server.or if we were sending 3-4 files to the server one by one,then whethere we can show the progress of each file sending to server in progress bar. so that the FTP clients can see the progress of file sending to the server.
any idea how we can do this to show the progress of each file sending. if we...
|
by: Markgoldin |
last post by:
I am sending an XML data from not dontnet process to a .Net via socket
listener.
Here is a data sample:
<VFPData>
<serverdata>
<coderun>updateFloor</coderun>
<area>MD2</area>
<zone>BOXING</zone>
<status>Running</status>
<job>1000139233</job>
|
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: 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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: 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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |