This topic is locked

Send Email after record added

7/8/2009 7:56:31 PM
ASPRunnerPro General questions
A
Aussie Mick author

G'day again everyone.
This may be a simple one but what I would like to do is send an email to multipe users containing the data of the record I have added.
The standard code is
'** Send email with new data ****

' do not forget to setup email parameters like From, SMTP server etc

' on 'Security->User login settings' dialog
Dim dkeys

message =""
dkeys = dict.keys

For n = 0 To dict.Count-1

message = message & dkeys(n) & " : " & dict(dkeys(n)) & vbcrlf

Next
email="name@domain.com"

subject="Email Subject"
sendmail email, subject, message
Now, here's the thing. If I want to send the email to two or three people how do I do this. I have tried entering the code twice with a different email address but it just produces an ASP error. Do i divide the addresses using " or , etc? I am lost.
Please can someone help me out.
Thanks
Mick

J
JimSmiley 7/8/2009

G'day again everyone.

This may be a simple one but what I would like to do is send an email to multipe users containing the data of the record I have added.
The standard code is
'** Send email with new data ****

' do not forget to setup email parameters like From, SMTP server etc

' on 'Security->User login settings' dialog
Dim dkeys

message =""
dkeys = dict.keys

For n = 0 To dict.Count-1

message = message & dkeys(n) & " : " & dict(dkeys(n)) & vbcrlf

Next
email="name@domain.com"

subject="Email Subject"
sendmail email, subject, message
Now, here's the thing. If I want to send the email to two or three people how do I do this. I have tried entering the code twice with a different email address but it just produces an ASP error. Do i divide the addresses using " or , etc? I am lost.
Please can someone help me out.
Thanks
Mick


This works for me:
email="name@domain.com;name2@domain.com;name3@domain.com"

A
Aussie Mick author 7/8/2009

It worked a treat, thank you very much...