CDONTS

S

SS

I'm using CDonts to send a form to a database and my email address and it
all works fine but what I would like is when it arrives in my mailbox is to
say the person it is from from a field that is filled in on the form.

Is this possible?

Cheers
Shona
 
S

Steve Easton

You can't get it to say who it is from when you receive it, because it is "from" the server.
However if you have a field in the form for them to enter their email address, and then in form
properties set the "Reply to" to the email form field, when you click Reply in Outlook Express it
will place the senders email address in the To address.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
K

Kevin Spencer

Actually, you can set who it is from.Here's an example from the MSDN
Library:

Set objMail = CreateObject("CDONTS.Newmail")
objMail.From = "(e-mail address removed)"
objMail.To = "(e-mail address removed)"
objMail.Subject = "Bad News"
objMail.Body = "I owe you £50"
objMail.Send
Set objMail = Nothing

Note, however, that if you set the "From" email address to an address that
is not on the domain of the mail server, you may have relay permission
issues.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
M

Mike Mueller

This is correct, however I do it differently. I use a
permanent address for the FROM value and then I set the
REPLY-TO as the value from the form. Then my email client
has a message rule to look for that specific address which
tells me it is from the form and puts it into a specific
folder for form results.

My edited example:

Set objMail = CreateObject("CDONTS.Newmail")
objMail.From = "(e-mail address removed)"
objMail.To = (e-mail address removed)
objMail.Value("Reply-To")= strFromFieldName
objMail.Subject = "Bad News"
objMail.Body = "I owe you £50"
objMail.Send
Set objMail = Nothing

Mike



Kevin Spencer wrote:
: Actually, you can set who it is from.Here's an example
: from the MSDN Library:
:
: Set objMail = CreateObject("CDONTS.Newmail")
: objMail.From = "(e-mail address removed)"
: objMail.To = "(e-mail address removed)"
: objMail.Subject = "Bad News"
: objMail.Body = "I owe you £50"
: objMail.Send
: Set objMail = Nothing
:
: Note, however, that if you set the "From" email address
: to an address that is not on the domain of the mail
: server, you may have relay permission issues.
:
:
: :: You can't get it to say who it is from when you receive
:: it, because it is "from" the server. However if you have
:: a field in the form for them to enter their email
:: address, and then in form properties set the "Reply to"
:: to the email form field, when you click Reply in Outlook
:: Express it will place the senders email address in the
:: To address.
::
:: --
:: Steve Easton
:: Microsoft MVP FrontPage
:: 95isalive
:: This site is best viewed............
:: .......................with a computer
::
: ::: I'm using CDonts to send a form to a database and my
::: email address and it all works fine but what I would
::: like is when it arrives in my mailbox is to say the
::: person it is from from a field that is filled in on the
::: form.
:::
::: Is this possible?
:::
::: Cheers
::: Shona
 
K

Kevin Spencer

Excellent!

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
G

Guest

Excuse my ignorance, but how the hell do you get cdonts to work in the first
place. I've read plenty but can't get my head around it (using dreamweaver
MX)
 
S

Stefan B Rusynko

1) You need to be hosted on a server that supports ASP and is running CDONTS
2) use the sample scripts posted above in a .asp page
--




| Excuse my ignorance, but how the hell do you get cdonts to work in the first
| place. I've read plenty but can't get my head around it (using dreamweaver
| MX)
|
| "Kevin Spencer" wrote:
|
| > Excellent!
| >
| > --
| > HTH,
| > Kevin Spencer
| > ..Net Developer
| > Microsoft MVP
| > Neither a follower
| > nor a lender be.
| >
| > | > > This is correct, however I do it differently. I use a
| > > permanent address for the FROM value and then I set the
| > > REPLY-TO as the value from the form. Then my email client
| > > has a message rule to look for that specific address which
| > > tells me it is from the form and puts it into a specific
| > > folder for form results.
| > >
| > > My edited example:
| > >
| > > Set objMail = CreateObject("CDONTS.Newmail")
| > > objMail.From = "(e-mail address removed)"
| > > objMail.To = (e-mail address removed)
| > > objMail.Value("Reply-To")= strFromFieldName
| > > objMail.Subject = "Bad News"
| > > objMail.Body = "I owe you £50"
| > > objMail.Send
| > > Set objMail = Nothing
| > >
| > > Mike
| > >
| > >
| > >
| > > Kevin Spencer wrote:
| > > : Actually, you can set who it is from.Here's an example
| > > : from the MSDN Library:
| > > :
| > > : Set objMail = CreateObject("CDONTS.Newmail")
| > > : objMail.From = "(e-mail address removed)"
| > > : objMail.To = "(e-mail address removed)"
| > > : objMail.Subject = "Bad News"
| > > : objMail.Body = "I owe you £50"
| > > : objMail.Send
| > > : Set objMail = Nothing
| > > :
| > > : Note, however, that if you set the "From" email address
| > > : to an address that is not on the domain of the mail
| > > : server, you may have relay permission issues.
| > > :
| > > :
| > > : | > > :: You can't get it to say who it is from when you receive
| > > :: it, because it is "from" the server. However if you have
| > > :: a field in the form for them to enter their email
| > > :: address, and then in form properties set the "Reply to"
| > > :: to the email form field, when you click Reply in Outlook
| > > :: Express it will place the senders email address in the
| > > :: To address.
| > > ::
| > > :: --
| > > :: Steve Easton
| > > :: Microsoft MVP FrontPage
| > > :: 95isalive
| > > :: This site is best viewed............
| > > :: .......................with a computer
| > > ::
| > > : | > > ::: I'm using CDonts to send a form to a database and my
| > > ::: email address and it all works fine but what I would
| > > ::: like is when it arrives in my mailbox is to say the
| > > ::: person it is from from a field that is filled in on the
| > > ::: form.
| > > :::
| > > ::: Is this possible?
| > > :::
| > > ::: Cheers
| > > ::: Shona
| > >
| > >
| >
| >
| >
 
S

SS

OK thanks

I've found away around this that the From field says the form name and the
Subject field picks up who it is requested by from a field within the form.

Thanks for your help

Shona
 

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

Similar Threads

cdo script 7
Form Field Validation 1
cdonts to send to form email address? 12
CDONTS Question 3
CDONTS to send e-mail results from FP form 1
CDONTS Formatting Question 2
OT: CDONTS help 9
Forms stopped sending 1

Top