Emailing from form using Lotus Notes 4.6

N

Neil Greenough

I've posted this a few times, but still haven't had a reply that helps, so
thought I'd try again.

Basically, I have put a button on a form. In this form, I have a field
called "EMAIL". This field contains the relevant email address for the
record currently being viewed. It's a basic contact list table / form.

Now, I want to put a code behind this button so that when clicked, it will
capture the email address from the record being viewed from the field
"EMAIL" and automatically open Lotus Notes (v4.6) and automatically create
and address a new email using the address from the form?

Any ideas on the complete code please? There is a lot out there for MS
Outlook, but nothing really for Lotus Notes. Have tried
http://www.granite.ab.ca/access/email/lotusnotes.htm, however doesn't tell
you how to autoaddress the email.

Many thanks
 
K

Kevin K. Sullivan

The reply from from Pringle9984 had the answer. The code on Tony's site
is set up to send the email to the address held in a variable called
strSupportEmail. So, you can either insert the line of code Pringle9984
suggested:

strSupportEMail = [Me].

before the line that contains the word "SendTo"

or

you can replace:

Call notesdoc.replaceitemvalue("Sendto", strSupportEMail)
with
Call notesdoc.replaceitemvalue("Sendto", Me.Email)

HTH,

Kevin
 
N

Neil Greenough

Cheers Kevin :)

Kevin K. Sullivan said:
The reply from from Pringle9984 had the answer. The code on Tony's site
is set up to send the email to the address held in a variable called
strSupportEmail. So, you can either insert the line of code Pringle9984
suggested:

strSupportEMail = [Me].

before the line that contains the word "SendTo"

or

you can replace:

Call notesdoc.replaceitemvalue("Sendto", strSupportEMail)
with
Call notesdoc.replaceitemvalue("Sendto", Me.Email)

HTH,

Kevin

[QUOTE="Neil"]
I've posted this a few times, but still haven't had a reply that helps,
so thought I'd try again.

Basically, I have put a button on a form. In this form, I have a field
called "EMAIL". This field contains the relevant email address for the
record currently being viewed. It's a basic contact list table / form.

Now, I want to put a code behind this button so that when clicked, it
will capture the email address from the record being viewed from the
field "EMAIL" and automatically open Lotus Notes (v4.6) and automatically
create and address a new email using the address from the form?

Any ideas on the complete code please? There is a lot out there for MS
Outlook, but nothing really for Lotus Notes. Have tried
http://www.granite.ab.ca/access/email/lotusnotes.htm, however doesn't
tell you how to autoaddress the email.

Many thanks[/QUOTE][/QUOTE]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top