Connecting Tech Pros Worldwide Help | Site Map

Access - Email

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 02:57 PM
florys@ptd.net
Guest
 
Posts: n/a
Default Access - Email

Hi,
First I would like to say thanks in advance for any help offered.

i am creating a customer database, when needed i have to have the
ability to click on a client and maybe hit a send email button/link
that will send that client a generic email.

I know this is possible, I just can't figure out how, my hosting does
not support cdonts so i have to use cdo


Again, thanks

Lizz


  #2  
Old November 13th, 2005, 02:57 PM
lylefair
Guest
 
Posts: n/a
Default Re: Access - Email


florys@ptd.net wrote:[color=blue]
> Hi,
> First I would like to say thanks in advance for any help offered.
>
> i am creating a customer database, when needed i have to have the
> ability to click on a client and maybe hit a send email button/link
> that will send that client a generic email.
>
> I know this is possible, I just can't figure out how, my hosting does
> not support cdonts so i have to use cdo
>
>
> Again, thanks
>
> Lizz[/color]

Hmmm ... I hope this isn't for spam!

Option Explicit

Public Sub VerySimpleSendMailWithCDOSample()
' requires reference to cdosys.dll

Dim iCfg As CDO.Configuration
Dim iMsg As CDO.Message

Set iCfg = New CDO.Configuration
Set iMsg = New CDO.Message

With iCfg.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServerPort) = 25
.Item(cdoSMTPServer) = "smtp.mail.yahoo.ca"
.Item(cdoSMTPAuthenticate) = cdoBasic
.Item(cdoSendUserName) = "lylefair"
.Item(cdoSendPassword) = "ThePassWord"
.Item(cdoSendEmailAddress) = "Lyle Fairfield
<lylefair@yahoo.ca>"
.Update
End With

With iMsg
.Configuration = iCfg
.Subject = "Test"
.To = "lylefairfield@aim.com"
.TextBody = "Test"
.Send
End With
End Sub

  #3  
Old November 13th, 2005, 02:57 PM
florys@ptd.net
Guest
 
Posts: n/a
Default Re: Access - Email

No it is not for spam, I am a site designer starting to dabble in
database devolpment. This is for a customers site, he wants to be able
to log into members area of his site and from there search client
database and then send client generic email stating their order is in
to pick it up ...... easier i guess then placing a phone call
....................... thank you I will try that code.

  #4  
Old November 13th, 2005, 02:57 PM
Douglas J. Steele
Guest
 
Posts: n/a
Default Re: Access - Email

See whether there's anything of use to you in the Access EMail FAQ Tony
Toews has at http://www.granite.ab.ca/access/email.htm

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



<florys@ptd.net> wrote in message
news:1130288302.715710.125760@g14g2000cwa.googlegr oups.com...[color=blue]
> Hi,
> First I would like to say thanks in advance for any help offered.
>
> i am creating a customer database, when needed i have to have the
> ability to click on a client and maybe hit a send email button/link
> that will send that client a generic email.
>
> I know this is possible, I just can't figure out how, my hosting does
> not support cdonts so i have to use cdo
>
>
> Again, thanks
>
> Lizz
>[/color]


  #5  
Old November 13th, 2005, 02:58 PM
John Sheppard
Guest
 
Posts: n/a
Default Re: Access - Email

Are you wanting to send from a website?

Access is a desktop application, you cannot run any code from it on your
browser.

You will have to find out what email software is installed on your host, 99%
of hosting companies have some form of email component you can use.

John

<florys@ptd.net> wrote in message
news:1130315149.957875.285430@g43g2000cwa.googlegr oups.com...[color=blue]
> No it is not for spam, I am a site designer starting to dabble in
> database devolpment. This is for a customers site, he wants to be able
> to log into members area of his site and from there search client
> database and then send client generic email stating their order is in
> to pick it up ...... easier i guess then placing a phone call
> ...................... thank you I will try that code.
>[/color]


  #6  
Old November 13th, 2005, 02:58 PM
lylefair
Guest
 
Posts: n/a
Default Re: Access - Email

THe code I posted works perfectly well from a (MS owered) website, and
simply has to be ported to VB Script or JScript within ASP. In fact,
that's where it originated. Of course, objects may have to be created
rather than referenced.

  #7  
Old November 13th, 2005, 03:03 PM
florys@ptd.net
Guest
 
Posts: n/a
Default Re: Access - Email

ok dumb question i'm sure, but where does that code go that lylefair
gave me.

Again thanks for helping
Lizz

  #8  
Old November 13th, 2005, 03:03 PM
lylefair
Guest
 
Posts: n/a
Default Re: Access - Email

hmmm
have you previously used VBA code?

If so, just put the code in a standard module if you want to be able to
call it from wherever.
If you want it private to your form, put it in the form's module.

if you haven't previously used VBA code, you may need to post back and
get bit more help.

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.