473,382 Members | 1,332 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 11030
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
40
by: ian | last post by:
Hi, I'm a newbie (oh no I can here you say.... another one...) How can I get Python to send emails using the default windows email client (eg outlook express)? I thought I could just do the...
3
by: Lenard Lindstrom | last post by:
Posted in a previous thread was some Python code for accessing Window's Simple MAPI api using the ctypes module. http://groups-beta.google.com/group/comp.lang.python/msg/56fa74cdba9b7be9 This...
2
by: jason | last post by:
Database: Access 2000 Host: Maximum ASP I am trying to work out the best way to send bulk email below the 1000 mark (about 800). I understand that I could either use ASPEmail or CDO although...
1
by: Cameron | last post by:
Hi, I've attempted to make use of the Microsoft Knowledge Base Article "ACC97: How to Use a Recordset to Send Outlook E-Mail to Multiple Recipients - 318881" but I can't get it to completely...
14
by: Mattia | last post by:
I have a very big problem. I must send a single mail to multiple receivers. The number of receivers are very big: approximately 6000 users, but this number increase each year. I find a lot of...
16
by: Kosmos | last post by:
Good afternoon everyone, just wondering if anyone knew if it's possible to send meetings or appointments through email when you run VBA or SQL code in Access 2003? The following is the code I've been...
1
by: jacegar | last post by:
Hello, I try to send a html file using FAXCOMEXLib. The process go succesfull, but show the printer sellection windows. How can i do to not show this window? The source code is this: ...
2
by: kennykenn | last post by:
Hi, Ive producd code to send an email after capturing info off a form,it works fine locally but when i put it live it doesnt work! the code is stopin at 'msg.send' any ideas, here the code! ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.