473,898 Members | 3,407 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Send email while knowing nothing

I want to send a bug report automatically from my VB.NET program. I won't
know the end user's smtp server or what email client they are using.

The Process.Start with mailto is almost what I need, but the amount of
information that will fit in the body is too small for a stack dump and other
information.

I like the way that it would go into the outbox, but oh well, have to move on.

My next choice is Indy or System.Web.Mail , but I don't know their SMTP server.

Can I get it from the registry or some other method? How do programs that
allow me to register for support from email do it? Do they access their own
SMTP servers?
Nov 21 '05 #1
10 1612
John,

If this is about a user using your program on his computer than this is in
my opinion a kind of hacking if the user is not attended first and has the
right to deny that message.

If it is about a webapplication working on your server, than you can sent it
from that server.

I hope this helps,

Cor
Nov 21 '05 #2
Hello John
I was in a simular situation as you are right now ( only with a VB6
project ) i wanted to send some reports to our product manageres when the
items in our catalogue were wrong.

first i shelled out to the local installed e-mail client , then i used the
freevbcode`s vbsendmail.dll they worked both but as always both with there
flaws
( not working with outloook , Domino , sealed networks etc etc etc )

then i found the perfect solution : :-)

i wrote a webservice ( and webpage as a wrapper for my vb6 prog ) that
performs the sending of the e-mail , so i post ther required values to my
webservice the webservice creates a nice HTML formatted e-mail and sends it
from the webserver to the endpoint .

with this method the end user does not even need to have an e-mail account
to send mails to our product management
if you want more info feel free to ask
regards

Michel Posseth
"John Davies" <Jo********@dis cussions.micros oft.com> schreef in bericht
news:1C******** *************** ***********@mic rosoft.com...
I want to send a bug report automatically from my VB.NET program. I won't
know the end user's smtp server or what email client they are using.

The Process.Start with mailto is almost what I need, but the amount of
information that will fit in the body is too small for a stack dump and
other
information.

I like the way that it would go into the outbox, but oh well, have to move
on.

My next choice is Indy or System.Web.Mail , but I don't know their SMTP
server.

Can I get it from the registry or some other method? How do programs that
allow me to register for support from email do it? Do they access their
own
SMTP servers?

Nov 21 '05 #3
Michael,

With one disadvantage, the user should not be behind a firewall and be on
line.

In my opinion is needed a privaty statement as well, I am not sure if this
what you do is allowed by all laws (if it is not explicitly known by the
user).

What is in your case of course not the situation because it is a kind of
internal application.

Cor
Nov 21 '05 #4
> My next choice is Indy or System.Web.Mail , but I don't know their SMTP
server.

I have had success with this:

System.Web.Mail .SmtpMail.Send( _
Nothing, "to address goes here", "subject", "multiline body")

From address is Nothing.
System.Web.Mail .SmtpMail.SmtpS erver is blank (untouched by my code).

On Windows XP systems, it seems to figure everything out, and the email
arrives from the default email account of the machine running the program.
No guarantees for other environments, but it sounds like an easy experiment
to try in your environment.

Nov 21 '05 #5
That's why I liked the mailto option so much. They could see exactly what was
being sent.

Since I couldn't do that, I was going to put up a dialog box for them to see
what was being sent and allow them to add a note. I was also planning on
having a Send and Cancel button.

I wouldn't like a program sending email behind my back either. But I like
the idea that bugs are easily reported.
Nov 21 '05 #6
That sounds really good. I like the idea of XP figuring it out for me.
Nov 21 '05 #7
John,
That's why I liked the mailto option so much. They could see exactly what
was
being sent.

Since I couldn't do that, I was going to put up a dialog box for them to
see
what was being sent and allow them to add a note. I was also planning on
having a Send and Cancel button.

I wouldn't like a program sending email behind my back either. But I like
the idea that bugs are easily reported.


I think that a combination of this with a webservice as Michael suggest is
one of the best things you can do. You can than let them type in their
emailaddress or references you have already in your program and let them
self push a sent and make the connection if needed.

Creating a webservice for this is in my opinion a piece of cake with VBNet.

Just store the message in a file or better in a Database on your server.

I hope this helps,

Cor
Nov 21 '05 #8
John,
That sounds really good. I like the idea of XP figuring it out for me.


Be aware that this only works on workstations with NT5 or newer NT.

If you have an open mailserver of your own, you can use that, if you use
withouth permission one of somebody else than it is AFAIK really a kind of
hard way hacking.

Just my thought,

Cor
Nov 21 '05 #9

Hello Cor ,
With one disadvantage, the user should not be behind a firewall and be on
line.
Well if they are not online and have RAS configured i connect for them

A firewall is no problem as i do a posting with my VB6 program to a aspx
page with the webbrowser control ( port 80 is always open on a firewall
-) ) then the server takes care of the rest
only the local software firewall on the users computer might complain that a
program wants to access the internet however in my situation this is already
allowed because of the auto update feature

In my opinion is needed a privaty statement as well, I am not sure if this
what you do is allowed by all laws (if it is not explicitly known by the
user).
It is known by the user as he is the one pressing the button to send the
complaint or question to product management

regards

Michel
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:%2******** *******@TK2MSFT NGP15.phx.gbl.. . Michael,

With one disadvantage, the user should not be behind a firewall and be on
line.

In my opinion is needed a privaty statement as well, I am not sure if this
what you do is allowed by all laws (if it is not explicitly known by the
user).

What is in your case of course not the situation because it is a kind of
internal application.

Cor

Nov 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
9537
by: Salim Afþar | last post by:
Hi, I'm using CDO object to send email but it doesn't send any email and it does not give an error. My code look like this: Dim iMsg2 Dim iConf2 Dim Flds2 Const cdoSendUsingPort = 2 set iMsg2 = CreateObject("CDO.Message")
7
2553
by: Mario Leduc | last post by:
Hi, I have a page that sends user comments with CDONTS, works fine. Until I put a URL (http://192.168.0.1). If I use http://domain.com it works fine. Why with the numeric URL, CDONTS does not send the mail?? Thanks
2
8757
by: pilar | last post by:
Hi All, I'm using a code somebody posted here. I extract the records from a query which gave me just the entries for the current date, there will be maximum 5-6 entries per days and I need to send them as the body of an email. The code partially works and what happens is that it will send an email per every record when what I need is to send just an email, at the end of the day, including all the entries made(Rack, CompanyName and...
11
7745
by: hazz | last post by:
smtpClient.Send(message) is causing me problems as per specifics in the trace below. Email is sent but not without this error typically upon sending the second email, but sometimes when running the app, even the first time. The application will be required to be sending out repeated emails, about one every second or two. Must this be done asynchronously? Thank you. -Greg I get the generic error messages;
10
24414
by: Mike Charney | last post by:
Is there a simple way to send SMTP email from Access VBA? Mike m charney at dunlap hospital dot org
6
2042
by: Adam Honek | last post by:
Okay. This is a little strange but here goes. I wanted to send emails and hence wrote the first sub below. It worked however it would NOT send the email UNLESS I closed the application (hence terminated the main thread). Wanting to fix this I thought it would work if I do it the asyncrhonous way so the calling thread isn't blocked. This is when I added the 2nd sub below
2
2502
by: kennykenn | last post by:
Hi, Ive producd code to send an email after capturing info off a form,it works fine locally but when i put it live it doesnt work! the code is stopin at 'msg.send' any ideas, here the code! <%
1
6583
by: sxwend | last post by:
I am trying to use the following post results (http://www.thescripts.com/forum/thread189759.html) and add another requirement. I need to send the results to just the email addresses that the query specifies for each record... Essentially this is a make shift Ordering Tool and I want to be able to notify the receiver of the order and its specifics. q_Order_Detail_4email consists of ,,, and Example: Hello@mail.com,956,Modem,1000,xyz123...
16
1682
by: Ed Bitzer | last post by:
Trying to send groups of email with program using System.Net.Mail. I do not clear MailMessage but repeatedly loop changing only the Bcc entries. Works fine if all addresses are valid. As a simple test I have attempted to send a valid address, then an invalid address which my ISP (Comcast) will reject immediately as "Not our customer". I catch the exception, display and then continue looping to send several additional valid. The balance...
0
9993
marktang
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...
1
10952
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
10487
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...
1
8036
isladogs
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...
0
7189
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
5882
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...
1
4708
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
4297
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3308
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.