469,290 Members | 1,882 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,290 developers. It's quick & easy.

ASPEmail to send to multiple recipients?

HI,

ASPEmail to send to multiple recipients?
I tried to use comma and semicolon but all the time give this message
error:
Error: 6 - 501 Bad address syntax

nor : email@dom,email@dom,email@dom
or: email@dom;email@dom;email@dom

what is the sintaxe for it?
can I only send for one recipient by time?

thanks,

VILMAR
Jul 19 '05 #1
15 10676
Did you try using .addAddress multiple times?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:u1**************@TK2MSFTNGP11.phx.gbl...
HI,

ASPEmail to send to multiple recipients?
I tried to use comma and semicolon but all the time give this message
error:
Error: 6 - 501 Bad address syntax

nor : email@dom,email@dom,email@dom
or: email@dom;email@dom;email@dom

what is the sintaxe for it?
can I only send for one recipient by time?

thanks,

VILMAR

Jul 19 '05 #2
no, i am not!
I only want to use once and separate a lot of mail with comma(,) or
semicolon(;) !
How is the sintax in aspemail component?
thanks,

VILMAR
******************

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> escreveu na mensagem
news:em**************@TK2MSFTNGP09.phx.gbl...
Did you try using .addAddress multiple times?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:u1**************@TK2MSFTNGP11.phx.gbl...
HI,

ASPEmail to send to multiple recipients?
I tried to use comma and semicolon but all the time give this message
error:
Error: 6 - 501 Bad address syntax

nor : email@dom,email@dom,email@dom
or: email@dom;email@dom;email@dom

what is the sintaxe for it?
can I only send for one recipient by time?

thanks,

VILMAR


Jul 19 '05 #3
> no, i am not!
I only want to use once and separate a lot of mail with comma(,) or
semicolon(;) !
That is how it will end up, but many components require that addresses are
added individually, regardless of what you "want to use."
How is the sintax in aspemail component?


Well, once again, did you try:

mailObject.AddAddress "em***@one.com"
mailObject.AddAddress "em***@two.com"

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #4
I thought "sintax" was an additional fee on a pack of cigarettes.

Bob Lehmann

"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
no, i am not!
I only want to use once and separate a lot of mail with comma(,) or
semicolon(;) !
How is the sintax in aspemail component?
thanks,

VILMAR
******************

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> escreveu na mensagem
news:em**************@TK2MSFTNGP09.phx.gbl...
Did you try using .addAddress multiple times?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:u1**************@TK2MSFTNGP11.phx.gbl...
HI,

ASPEmail to send to multiple recipients?
I tried to use comma and semicolon but all the time give this message
error:
Error: 6 - 501 Bad address syntax

nor : email@dom,email@dom,email@dom
or: email@dom;email@dom;email@dom

what is the sintaxe for it?
can I only send for one recipient by time?

thanks,

VILMAR



Jul 19 '05 #5
I guess "sintaxe" must be the UK equivalent of "sintax"?

Bob Lehmann

"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:u1****************@TK2MSFTNGP11.phx.gbl...
HI,

ASPEmail to send to multiple recipients?
I tried to use comma and semicolon but all the time give this message
error:
Error: 6 - 501 Bad address syntax

nor : email@dom,email@dom,email@dom
or: email@dom;email@dom;email@dom

what is the sintaxe for it?
can I only send for one recipient by time?

thanks,

VILMAR

Jul 19 '05 #6
> I thought "sintax" was an additional fee on a pack of cigarettes.

Hmmm, I thought it was tax on prostitution. :-)

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #7
Aaron Bertrand - MVP,

I tried something as you suggested, but is giving the same error:
Erro: 6 - 501 Bad address syntax

mailObject.AddAddress "em***@one.com"
mailObject.AddAddress "em***@two.com"

I believe that only way to make it is something as:
while not CONDITION
mailObject.AddAddress RS("email")
wend

What do you think about?

Regards and thank you until here

obs.:
I am sorry also by sintax instead syntax in english language.
I made a confusion because my native languague is portuguese and in
portuguese we have to write SINTAXE.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> escreveu na mensagem
news:u2**************@TK2MSFTNGP09.phx.gbl...
no, i am not!
I only want to use once and separate a lot of mail with comma(,) or
semicolon(;) !


That is how it will end up, but many components require that addresses are
added individually, regardless of what you "want to use."
How is the sintax in aspemail component?


Well, once again, did you try:

mailObject.AddAddress "em***@one.com"
mailObject.AddAddress "em***@two.com"

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/

Jul 19 '05 #8
try:
mailObject.AddRecipient "Name1, name1@address"
mailObject.AddRecipient "Name2, name2@address"

--
David D Cowell
Wildcat Computers, Inc.
http://www.wildcatcomputers.net
800-686-4685
"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Aaron Bertrand - MVP,

I tried something as you suggested, but is giving the same error:
Erro: 6 - 501 Bad address syntax

mailObject.AddAddress "em***@one.com"
mailObject.AddAddress "em***@two.com"

I believe that only way to make it is something as:
while not CONDITION
mailObject.AddAddress RS("email")
wend

What do you think about?

Regards and thank you until here

obs.:
I am sorry also by sintax instead syntax in english language.
I made a confusion because my native languague is portuguese and in
portuguese we have to write SINTAXE.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> escreveu na mensagem
news:u2**************@TK2MSFTNGP09.phx.gbl...
no, i am not!
I only want to use once and separate a lot of mail with comma(,) or
semicolon(;) !


That is how it will end up, but many components require that addresses are added individually, regardless of what you "want to use."
How is the sintax in aspemail component?


Well, once again, did you try:

mailObject.AddAddress "em***@one.com"
mailObject.AddAddress "em***@two.com"

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


Jul 19 '05 #9
Sorry wrong reference, try
Sub AddAddress(Address As String, Optional Name = "")

To add message recipients, CCs, BCCs, and Reply-To's, use the AddAddress,
AddCC, AddBcc and AddReplyTo methods, respectively. These methods accept two
parameters: the email address and, optionally, name. Notice that you must
not use an '=' sign to pass values to the methods. For example,

Mail.AddAddress "js****@company1.com", "John Smith"
Mail.AddCC "bj******@company2.com" ' Name is optional
--
David D Cowell
Wildcat Computers, Inc.
http://www.wildcatcomputers.net
800-686-4685
"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Aaron Bertrand - MVP,

I tried something as you suggested, but is giving the same error:
Erro: 6 - 501 Bad address syntax

mailObject.AddAddress "em***@one.com"
mailObject.AddAddress "em***@two.com"

I believe that only way to make it is something as:
while not CONDITION
mailObject.AddAddress RS("email")
wend

What do you think about?

Regards and thank you until here

obs.:
I am sorry also by sintax instead syntax in english language.
I made a confusion because my native languague is portuguese and in
portuguese we have to write SINTAXE.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> escreveu na mensagem
news:u2**************@TK2MSFTNGP09.phx.gbl...
no, i am not!
I only want to use once and separate a lot of mail with comma(,) or
semicolon(;) !


That is how it will end up, but many components require that addresses are added individually, regardless of what you "want to use."
How is the sintax in aspemail component?


Well, once again, did you try:

mailObject.AddAddress "em***@one.com"
mailObject.AddAddress "em***@two.com"

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


Jul 19 '05 #10
Sorry David D Cowell,

Still is not running !!
just the same error I wrote before.

thanks,

VILMAR
BRAZIL

"David D Cowell" <dc*****@wildcatcomputers.net> escreveu na mensagem
news:OU**************@TK2MSFTNGP11.phx.gbl...
Sorry wrong reference, try
Sub AddAddress(Address As String, Optional Name = "")

To add message recipients, CCs, BCCs, and Reply-To's, use the AddAddress,
AddCC, AddBcc and AddReplyTo methods, respectively. These methods accept two parameters: the email address and, optionally, name. Notice that you must
not use an '=' sign to pass values to the methods. For example,

Mail.AddAddress "js****@company1.com", "John Smith"
Mail.AddCC "bj******@company2.com" ' Name is optional
--
David D Cowell
Wildcat Computers, Inc.
http://www.wildcatcomputers.net
800-686-4685
"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Aaron Bertrand - MVP,

I tried something as you suggested, but is giving the same error:
Erro: 6 - 501 Bad address syntax

mailObject.AddAddress "em***@one.com"
mailObject.AddAddress "em***@two.com"

I believe that only way to make it is something as:
while not CONDITION
mailObject.AddAddress RS("email")
wend

What do you think about?

Regards and thank you until here

obs.:
I am sorry also by sintax instead syntax in english language.
I made a confusion because my native languague is portuguese and in
portuguese we have to write SINTAXE.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> escreveu na mensagem
news:u2**************@TK2MSFTNGP09.phx.gbl...
> no, i am not!
> I only want to use once and separate a lot of mail with comma(,) or
> semicolon(;) !

That is how it will end up, but many components require that addresses are added individually, regardless of what you "want to use."

> How is the sintax in aspemail component?

Well, once again, did you try:

mailObject.AddAddress "em***@one.com"
mailObject.AddAddress "em***@two.com"

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/



Jul 19 '05 #11
try this:
http://support.persits.com/show.asp?code=PS02010983
are you hosting the site in house?

--
David D Cowell
Wildcat Computers, Inc.
http://www.wildcatcomputers.net
800-686-4685
"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:uq***************@TK2MSFTNGP09.phx.gbl...
Sorry David D Cowell,

Still is not running !!
just the same error I wrote before.

thanks,

VILMAR
BRAZIL

"David D Cowell" <dc*****@wildcatcomputers.net> escreveu na mensagem
news:OU**************@TK2MSFTNGP11.phx.gbl...
Sorry wrong reference, try
Sub AddAddress(Address As String, Optional Name = "")

To add message recipients, CCs, BCCs, and Reply-To's, use the AddAddress, AddCC, AddBcc and AddReplyTo methods, respectively. These methods accept

two
parameters: the email address and, optionally, name. Notice that you must not use an '=' sign to pass values to the methods. For example,

Mail.AddAddress "js****@company1.com", "John Smith"
Mail.AddCC "bj******@company2.com" ' Name is optional
--
David D Cowell
Wildcat Computers, Inc.
http://www.wildcatcomputers.net
800-686-4685
"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Aaron Bertrand - MVP,

I tried something as you suggested, but is giving the same error:
Erro: 6 - 501 Bad address syntax

mailObject.AddAddress "em***@one.com"
mailObject.AddAddress "em***@two.com"

I believe that only way to make it is something as:
while not CONDITION
mailObject.AddAddress RS("email")
wend

What do you think about?

Regards and thank you until here

obs.:
I am sorry also by sintax instead syntax in english language.
I made a confusion because my native languague is portuguese and in
portuguese we have to write SINTAXE.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> escreveu na mensagem
news:u2**************@TK2MSFTNGP09.phx.gbl...
> > no, i am not!
> > I only want to use once and separate a lot of mail with comma(,) or > > semicolon(;) !
>
> That is how it will end up, but many components require that
addresses are
> added individually, regardless of what you "want to use."
>
> > How is the sintax in aspemail component?
>
> Well, once again, did you try:
>
> mailObject.AddAddress "em***@one.com"
> mailObject.AddAddress "em***@two.com"
>
> --
> Aaron Bertrand
> SQL Server MVP
> http://www.aspfaq.com/
>
>



Jul 19 '05 #12
Look at this also:
http://support.persits.com/show.asp?code=PS01122780

--
David D Cowell
Wildcat Computers, Inc.
http://www.wildcatcomputers.net
800-686-4685
"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:uq***************@TK2MSFTNGP09.phx.gbl...
Sorry David D Cowell,

Still is not running !!
just the same error I wrote before.

thanks,

VILMAR
BRAZIL

"David D Cowell" <dc*****@wildcatcomputers.net> escreveu na mensagem
news:OU**************@TK2MSFTNGP11.phx.gbl...
Sorry wrong reference, try
Sub AddAddress(Address As String, Optional Name = "")

To add message recipients, CCs, BCCs, and Reply-To's, use the AddAddress, AddCC, AddBcc and AddReplyTo methods, respectively. These methods accept

two
parameters: the email address and, optionally, name. Notice that you must not use an '=' sign to pass values to the methods. For example,

Mail.AddAddress "js****@company1.com", "John Smith"
Mail.AddCC "bj******@company2.com" ' Name is optional
--
David D Cowell
Wildcat Computers, Inc.
http://www.wildcatcomputers.net
800-686-4685
"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Aaron Bertrand - MVP,

I tried something as you suggested, but is giving the same error:
Erro: 6 - 501 Bad address syntax

mailObject.AddAddress "em***@one.com"
mailObject.AddAddress "em***@two.com"

I believe that only way to make it is something as:
while not CONDITION
mailObject.AddAddress RS("email")
wend

What do you think about?

Regards and thank you until here

obs.:
I am sorry also by sintax instead syntax in english language.
I made a confusion because my native languague is portuguese and in
portuguese we have to write SINTAXE.
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> escreveu na mensagem
news:u2**************@TK2MSFTNGP09.phx.gbl...
> > no, i am not!
> > I only want to use once and separate a lot of mail with comma(,) or > > semicolon(;) !
>
> That is how it will end up, but many components require that
addresses are
> added individually, regardless of what you "want to use."
>
> > How is the sintax in aspemail component?
>
> Well, once again, did you try:
>
> mailObject.AddAddress "em***@one.com"
> mailObject.AddAddress "em***@two.com"
>
> --
> Aaron Bertrand
> SQL Server MVP
> http://www.aspfaq.com/
>
>



Jul 19 '05 #13
Different strokes - so to speak - for different folks. :>)

Bob Lehmann

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:ub**************@tk2msftngp13.phx.gbl...
I thought "sintax" was an additional fee on a pack of cigarettes.


Hmmm, I thought it was tax on prostitution. :-)

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/

Jul 19 '05 #14
hi david cowell,
I am hosting site where I work.
thanks,
vilmar
"David D Cowell" <dc*****@wildcatcomputers.net> escreveu na mensagem
news:um**************@TK2MSFTNGP11.phx.gbl...
try this:
http://support.persits.com/show.asp?code=PS02010983
are you hosting the site in house?

--
David D Cowell
Wildcat Computers, Inc.
http://www.wildcatcomputers.net
800-686-4685
"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:uq***************@TK2MSFTNGP09.phx.gbl...
Sorry David D Cowell,

Still is not running !!
just the same error I wrote before.

thanks,

VILMAR
BRAZIL

"David D Cowell" <dc*****@wildcatcomputers.net> escreveu na mensagem
news:OU**************@TK2MSFTNGP11.phx.gbl...
Sorry wrong reference, try
Sub AddAddress(Address As String, Optional Name = "")

To add message recipients, CCs, BCCs, and Reply-To's, use the AddAddress, AddCC, AddBcc and AddReplyTo methods, respectively. These methods
accept
two
parameters: the email address and, optionally, name. Notice that you

must not use an '=' sign to pass values to the methods. For example,

Mail.AddAddress "js****@company1.com", "John Smith"
Mail.AddCC "bj******@company2.com" ' Name is optional
--
David D Cowell
Wildcat Computers, Inc.
http://www.wildcatcomputers.net
800-686-4685
"news.microsoft.com" <su*****@hitecnet.com.br> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
> Aaron Bertrand - MVP,
>
> I tried something as you suggested, but is giving the same error:
> Erro: 6 - 501 Bad address syntax
>
> mailObject.AddAddress "em***@one.com"
> mailObject.AddAddress "em***@two.com"
>
> I believe that only way to make it is something as:
> while not CONDITION
> mailObject.AddAddress RS("email")
> wend
>
> What do you think about?
>
> Regards and thank you until here
>
> obs.:
> I am sorry also by sintax instead syntax in english language.
> I made a confusion because my native languague is portuguese and in
> portuguese we have to write SINTAXE.
>
>
> "Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> escreveu na mensagem
> news:u2**************@TK2MSFTNGP09.phx.gbl...
> > > no, i am not!
> > > I only want to use once and separate a lot of mail with comma(,) or > > > semicolon(;) !
> >
> > That is how it will end up, but many components require that addresses are
> > added individually, regardless of what you "want to use."
> >
> > > How is the sintax in aspemail component?
> >
> > Well, once again, did you try:
> >
> > mailObject.AddAddress "em***@one.com"
> > mailObject.AddAddress "em***@two.com"
> >
> > --
> > Aaron Bertrand
> > SQL Server MVP
> > http://www.aspfaq.com/
> >
> >
>
>



Jul 19 '05 #15
Sintax = begin taxing
Sintaxe = end taxing
Sintaxe is unreachable
The same applies to tolltaxe

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.

"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:eK**************@TK2MSFTNGP10.phx.gbl...
Different strokes - so to speak - for different folks. :>)

Bob Lehmann

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:ub**************@tk2msftngp13.phx.gbl...
I thought "sintax" was an additional fee on a pack of cigarettes.


Hmmm, I thought it was tax on prostitution. :-)

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


Jul 19 '05 #16

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by James Hong | last post: by
40 posts views Thread by ian | last post: by
14 posts views Thread by Mattia | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.