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

CDOSYS With Variable Not Working

Hi,
I'm sending an email with CDOSYS. In myMail.To = emailSubmitter <-When I
use a variable here it doesn't send. When I use a specific address like
an*****@anywhere.com it works.

Here's how I set up emailSubmitter
emailSubmitter = rs("emailAddr")

Any ideas?
Dec 13 '05 #1
3 1279
My first though would be to see what contains rs("emailAddr")

--

"Jess" <Je**@discussions.microsoft.com> a écrit dans le message de
news:0F**********************************@microsof t.com...
Hi,
I'm sending an email with CDOSYS. In myMail.To = emailSubmitter <-When I
use a variable here it doesn't send. When I use a specific address like
an*****@anywhere.com it works.

Here's how I set up emailSubmitter
emailSubmitter = rs("emailAddr")

Any ideas?

Dec 13 '05 #2
for troubleshooting sake response write the variable and make sure your get
the email address you expect

"Jess" <Je**@discussions.microsoft.com> wrote in message
news:0F**********************************@microsof t.com...
Hi,
I'm sending an email with CDOSYS. In myMail.To = emailSubmitter <-When I
use a variable here it doesn't send. When I use a specific address like
an*****@anywhere.com it works.

Here's how I set up emailSubmitter
emailSubmitter = rs("emailAddr")

Any ideas?

Dec 13 '05 #3
I've done the response.write and an email address comes out.

"Jess" wrote:
Hi,
I'm sending an email with CDOSYS. In myMail.To = emailSubmitter <-When I
use a variable here it doesn't send. When I use a specific address like
an*****@anywhere.com it works.

Here's how I set up emailSubmitter
emailSubmitter = rs("emailAddr")

Any ideas?

Dec 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: tp | last post by:
HI..... I have made simpale web site inside that i am generating email page which send form as email. i have setup small business server with Exchange server 2003 and i have hosted my website...
14
by: Neil Ginsberg | last post by:
I am using VBA/Access to send SMTP mail using CDO. I set a reference to "Microsoft CDO for Windows 2000 Library" (cdosys.dll). Everything works fine, both on my PC and on another PC. However, on...
0
by: martin | last post by:
Hi, I have been using the system.web.mail namespace to send mail in my application and every thing has been working fine. however to today I an unable to send mail from my machine using the...
4
by: Jess | last post by:
Has anyone been able to use a variable for the To: line with CDOSYS? When I put in a specific address like: myMail.To = "webster@thisplace.org" it works fine. When I put in a variable like:...
1
by: worldofrugs | last post by:
I'm hosted on a shared server with Godaddy.com... I have several forms on my website that all use the same ASP file to send out my forms.. It worked fine for a long time, but now the forms send to...
9
by: paulmitchell507 | last post by:
I have a file called email2.asp which I am using to mail data obtained from a SQL query. I would like to pass the holiday_ID value in the querystring attached to the end of the URL. It all works...
4
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I am working on a program that gets mail messages from the default SMTP server with iis 6.0 on windows server 2003. I am using the cdosys.dll in the system32 directory. The reference Name is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.