473,756 Members | 6,106 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open user email program from database on server

Hello,

Thank you so much in advance to those who will take the time to read
and answer. This group is a wonderful site.

I have inherited a contacts database that sits on a server. Users
logon to the server and have access to the front-end of this split
database (backend is used by one admin person - good set-up).

One of the wishlist features that I am wanting to implement is for a
user to find a contact and then through a hyperlink, click on the
contact's email address and be able to send an email.

Now I have it set up to work right now, but it uses the default email
program on the server. That won't work as it would send from the
server email, not the user's email account. And then if someone were
to respond, it would go back to the server... yada yada. It's not the
full solution.

What I need is a way to have the link stepout of the server and
reference the email program (Outlook) on the user's computer and then
the code will take over from there.

I am an intermediate user. I don't write VB code.

Can someone give me a point in the right direction? First, is it
possible given my limitation writing code? What functions, event
procedures would be able to set this up?

I imagine I will be dealing with the server path....

Thank you very much,

Clare

Mar 29 '06 #1
3 1879
The following should call outlook on the user's pc. It is worth a
try.....

in the onclick event of a button to send email

Here is an example:
Set o = CreateObject("O utlook.Applicat ion")

Set m = o.CreateItem(0)
m.To = "Paul Tucker" ' The distribution list name goes here
m.Subject = "SUPP Analysis Spreadsheet "
m.body = Chr(13) & Chr(13) & _
" Date: " & date & Chr(13) & _
Chr(13)
m.attachments.A dd ReportDir & exportName ' point to the full address of
attachment here
' There can be multiple of the above

' m.display ' display shows email and the user has to press send button

m.send ' Send does it automatically with security from Outlook

' You want to use m.display to open the email and have the user send
it.
' you want to use me.send to start the send process - however MS
Outlook security
' will ask for the user's OK to actually send the email.

' I believe that the next two instructions should be

set m to nothing
and possibly
set o to nothing

'not sure on the above.
=============== ===========

The trick will be accessing the email address. I am not sure what you
mean by hyperlink to the email address in your description. But if the
address is a field in the file or at least on the form the above will
work

Ron

Mar 29 '06 #2
Ron,

Thank you for your answer. I have read through it and I don't see
where the code is going to back reference or figure out:
-not to use the email program on the server
- and to use the email program on the user's computer.

The database sits on a server. Each user has a link on their desktop
that enables them to access the server. After a password prompt, the
database appears on their screen.

I have the following code on the click event of a label that sits right
beside the email text field. The code is as follows:

Private Sub lblHyperLink_Cl ick()
Dim strMail As String
strMail = "#MailTo:" & Me.EMAIL & "#"
Application.Fol lowHyperlink HyperlinkPart(s trMail, acAddress)
End Sub

It works well - except - it pulls up an email and puts in the email
address on the server email program. It is not accurate to have this
situation. I want the code to decipher that it is not to use the email
program on the server, but to access or decipher or reference the email
program on the user's computer. In that way, when the user sends the
email, it comes from the user, not the server's email. Basically, I
want the Focus to move from the server environment back to the user's
environment and to use the user's email address.

I am guessing I need to find the server path, and then from there find
the path to the user's computer through the network. I am imagining
there is code that can determine what user/what computer is
current/asking and then use the answer to that query to fill in the
path that will put the point of reference back to the user's computer
instead of being on the server.... all this while holding the email
address and plunking that into the email message when done.

When the user hits SEND, they will have left the database on the
server, so that's another story. For now, I just need to get the
SetFocus (for lack of better wording), to back out of the server and
focus on the user's computer.

Any comments and insights are very appreciated.

Clare Allan

Mar 30 '06 #3
I have never attempted to call the email program using a hyperlink.

I gues I am suggesting that since you have the email address then try
the code I posted. It will call outlook specifically, so then it is a
question of where the individual PC will resolve that call.

I will think about it for a while to see if anything comes to mind.

Ron

Mar 31 '06 #4

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

Similar topics

5
2252
by: Dave | last post by:
I reinstalled SQL 2000 server after reformatting my drive. Now I cannot open a database in my C## program as before. If I use "Provider=SQLOLEDB;Data Source=localhost; Initial Catalog=master;Integrated Security=SSPI"; I get an Invalid login error. If I use "Provider=SQLOLEDB; Data Source=localhost; Initial Catalog=master;User ID=Dave;Password=midn1te"; I get the following error, "User no associated with a trusted SQL server...
0
2132
by: Mr.KisS | last post by:
Hello. I'm under Windows XP PRO SP1, IIS 5.1 ans SQL SERVER 2005 Express. When i try to open a connexion with : <connectionStrings> <add name="AppCnxStr" connectionString="Server=KLEO\SQLEXPRESS;Integrated Security=True;Database=C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\wizou.mdf" providerName="System.Data.SqlClient" />
2
10649
by: Mr.KisS | last post by:
Hello. I'm under Windows XP PRO SP1, IIS 5.1 ans SQL SERVER 2005 Express. When i try to open a connexion with : <connectionStrings> <add name="AppCnxStr" connectionString="Server=KLEO\SQLEXPRESS;Integrated Security=True;Database=C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\wizou.mdf" providerName="System.Data.SqlClient" />
7
10066
by: Steve_Black | last post by:
Hello, I'm toying with the idea of loading a MenuStrip (VB.Net 2005) dynamically based on who is logged into my system. Every user has different security settings and I want to customize the main menu instead of showing all possible options and only enabling/disabling certain ones. I have a table that stores the menu item name, parent item (if applicable), display order, etc. so that I can dynamically load my
0
9271
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,...
0
10028
Oralloy
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...
0
9868
jinu1996
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...
1
9836
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
8709
agi2029
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...
1
7242
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...
1
3804
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
3352
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2664
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.