473,418 Members | 2,340 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,418 software developers and data experts.

E-mail Forms using CDOSYS

Hi

My e-mail will not send multiple BCC e-mails from my e-mail form and I can't work out why. Any help would be greatly appreciated. Even though (I think) ASP is not case sensitive I have changed the BCC to bcc and Bcc. If I include only 1 BCC, it works fine. When I include both BCC fields, it will send only to one.
Expand|Select|Wrap|Line Numbers
  1. <%
  2.  
  3. Set MyMail = Server.CreateObject("CDO.Message")
  4.  
  5. MyMail.To=Request.Form("txtEmail")
  6. MyMail.BCC="name@domain.com"
  7. MyMail.BCC="name2@domain2.com"
  8. MyMail.From="name@domain.co.uk"
  9. MyMail.Subject="Sample Request"
  10. MyMail.HTMLBody="information goes here" 
  11.  
  12. MyMail.Send
  13.  
  14. Set MyMail=Nothing
  15.  
  16. %>
Thanks

Dave
Sep 6 '07 #1
2 1373
markrawlingson
346 Expert 100+
I may be wrong about this, but I believe to set multiple BCCs you have to seperate them on one line

Expand|Select|Wrap|Line Numbers
  1. oMailer.BCC "myemail1@somedomain.com" , "myemail2@somedomain.com"
  2.  
Give it a shot, let us know if that works.

Sincerely,
Mark
Sep 6 '07 #2
jhardman
3,406 Expert 2GB
Mark is right. Putting them on two lines as you have done is effectively changing the BCC from one value to the other, not appending both.

I would try:
Expand|Select|Wrap|Line Numbers
  1. oMailer.BCC="myemail1@somedomain.com, myemail2@somedomain.com" 
If this doesn't work, you could try using a semicolon to separate them rather than a comma.

Jared
Sep 7 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Rashid Khan | last post by:
Honoured Sir! I want to provide email facility using asp 3.0, IIS 5.0 in windows xp plateform. When I use CDONTS, I get an error message...invalid string or something like this..Is there any way...
1
by: Lauren Wilson | last post by:
Hi folks, Just curious if anyone out there has experience using CDOSYS to implement customized, app integrated SMTP functions. I want to use it to do just that for an existing and widely...
0
by: Luqman | last post by:
Is it possible to MailMerge using CDOSYS in ASP.Net ? Best Regards, Luqman
2
by: juventusaurabh | last post by:
Hello, Can anyone please give me any referencese or links related to database handling in windows forms using C#.Net.
0
by: Atenza | last post by:
Hi all, I develop an VB6 program to send email by using CDOSYS.DLL. It works fine as follow: Dim iMsg As New CDO.Message Dim iDsrc As CDO.IDataSource Set iDsrc = iMsg ' (QueryInterface)...
2
by: nandapoy | last post by:
Hi if i use me.findcontrols in vb.net 2005, it shows error. Help me to clear textboxes in all forms using function
6
by: =?Utf-8?B?Unlhbg==?= | last post by:
I am trying to pass a value from a texbox in Form1 to a textbox in Form2 using properties in VS2005 but it doesn't work; please help (project is attached). Code for Game Class: using System;...
1
by: mukesh1989 | last post by:
using CDOSYS i am able to send mails only to Gmail but not to the other mails why? and also in Gmail mail it will be in Spam folder if i say it is not spam also! please help me. sometimes it takes...
0
by: btreddy | last post by:
Hiii.., I want to implement a concept in Windows Forms using C# which is very similar to Master Pages in ASP.NET . Like you know i've a Master Form which is having a toolbar knd of control...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.