CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Multiple/Group email

Print topic Send  topic

Author Message
Sparky1
Posted: 05/06/2004, 12:51 AM

Trying to send multiple emails using CDONTS - BCC, anyone had any luck with this?

Sparky
peterr


Posts: 5971
Posted: 05/06/2004, 12:57 AM

I've seen this done a lot of times. Where or how are you stuck?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Sparky1
Posted: 05/06/2004, 1:08 AM

I create session variable from the results of a search containing all the names seperated by ";"

This is then placed in the Bcc field on the form and the following code inserted...

.Bcc = NewRecord1.Bcc.text
peterr


Posts: 5971
Posted: 05/06/2004, 1:16 AM

Any problems with this? Errors?
Though I'm actually not sure how is your session variable related to NewRecord1.Bcc.text
Possibly it should be something like:
.Bcc = Session("YourSessionVariable")

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
peterr


Posts: 5971
Posted: 05/06/2004, 1:25 AM

BTW, you can also try checking if your Bcc field on the form contains anything (if this is what you want to use):
response.write NewRecord1.Bcc.text & ":<br>"
response.end

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Sparky1
Posted: 05/06/2004, 2:20 AM

No errors.

The Bcc field does show the list ,which is populated using "before show"

The email actually goes through OK, it just doesn't send the bcc's

Could it be the server?
peterr


Posts: 5971
Posted: 05/06/2004, 2:44 AM

Hmm, so the recipient in the "To" field receives the email?
If so, then the values in BCC field may be wrong. Try to send such mail manually. I'm also not sure if CDONTS is sensitive to such things as a space after or before the semicolon (;) or a semicolon at the end of the list of recipients.
Possibly one badly fomratted email addres could also cause this issue.

If this was a server problem then your email probably would be sitting in SMTP queue and never get sent. Although I don't know if the email server is trying to send each BCC separately. I guess just check if any emails are sitting in your Queue folder, as described at http://www.winnetmag.com/Articles/Print.cfm?ArticleID=24476

Also try manual testing of several scenarios:
.Bcc = ""
.Bcc = "email1"
.Bcc = "email1;email2"
.Bcc = "email1,email2"
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Sparky1
Posted: 05/06/2004, 4:08 AM

I've tried coded BCC, but that doesn't work either.

Code the ISP be blocking BCC, I've also tried CC?

With CreateObject("CDONTS.NewMail")
.From = NewRecord1.From.Text
.To = NewRecord1.recipient.Text
.Bcc = "Sparky@alooseend.co.uk"
.Subject = NewRecord1.Subject.Text
.Body = NewRecord1.Body.Text
.BodyFormat = 0
.MailFormat = 0
.Send
End With
Sparky1
Posted: 05/06/2004, 4:11 AM

Another thing...

When I used CC it showed up in the email header, but didn't send the email?
peterr


Posts: 5971
Posted: 05/06/2004, 3:28 PM

Not sure, but it may be due to some anti-spam features on your email server. The email could be sent but never received.
Unfortunately I won't be able to help you further as it seems that the program executes without errors and there are too many other possible points of failure: email not sent by the program, email not sent by the server (in queue), email not received by the server, email not delivered by the server (in mqueue), email deleted by the server (spam filtering), email not retrieved by the client, email deleted by the client (spam filtering), etc.
You would need to examine each possible point of failure to determine the cause of the problem.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.