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

CDO Email Help

I have a windows 2000 sv, with exchange 2000 running with IIS as well. I am
tring to send an email with an attachment with CDO.

Set cdoConfig = CreateObject("CDO.Configuration")

with cdoConfig.Fields
.Item(sch & "sendusing") = 2 ' cdoSendUsingPort
.Item(sch & "smtpserver") = "spiternet.com"
.update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "an*****@spiternet.com"
.To = "no**********@yahoo.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message" .AddAttachment
"D:\SpiterNetSolutions\pams\Key_Exchange\_8368 8k"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing

and I get the error: "8004020f"
/pams/Email_File.asp, line 103

I don't know if I need to use a USER NAME and PASSWORD to use my exchange
server, or what the problem is.
can anybody help.

P.S. this is going sound funny.. any way I have some JS script that I am
running, I have have an if statment that I need help with..

when I run the if statment I need help with the "and" part. I need two
thing to run true before the statment witll run.
IF 1 = true and 3 = true Then

I don't know what to use for the "and" part. If any body can help?

Jul 22 '05 #1
2 1946

"Andrew" <An****@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
[snip]
and I get the error: "8004020f" http://aspfaq.com/show.asp?id=2305

when I run the if statment I need help with the "and" part. I need
two
thing to run true before the statment witll run.
IF 1 = true and 3 = true Then

I don't know what to use for the "and" part. If any body can help?

http://msdn.microsoft.com/library/en...56jsoprand.asp

Jul 22 '05 #2
http://www.powerasp.com/content/new/...ail_cdosys.asp

"Andrew" <An****@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
I have a windows 2000 sv, with exchange 2000 running with IIS as well. I am
tring to send an email with an attachment with CDO.

Set cdoConfig = CreateObject("CDO.Configuration")

with cdoConfig.Fields
.Item(sch & "sendusing") = 2 ' cdoSendUsingPort
.Item(sch & "smtpserver") = "spiternet.com"
.update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "an*****@spiternet.com"
.To = "no**********@yahoo.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message" .AddAttachment
"D:\SpiterNetSolutions\pams\Key_Exchange\_8368 8k"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing

and I get the error: "8004020f"
/pams/Email_File.asp, line 103

I don't know if I need to use a USER NAME and PASSWORD to use my exchange
server, or what the problem is.
can anybody help.

P.S. this is going sound funny.. any way I have some JS script that I am
running, I have have an if statment that I need help with..

when I run the if statment I need help with the "and" part. I need
two
thing to run true before the statment witll run.
IF 1 = true and 3 = true Then

I don't know what to use for the "and" part. If any body can help?

Jul 22 '05 #3

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

Similar topics

13
by: ~ Le Naja ~ | last post by:
Hello evrybody, First, I hope you will understand my English because I come from Belgium ! :-) Here is what I want to know if you have the kindess to help me ! :-) I use the code above to mail...
5
by: jason | last post by:
I could sure use some conceptualization and query help with a Page Watch System I am building in Access 2000 and Asp. I need to cycle through databae and generate a compiliation query email that...
9
by: NickH | last post by:
Hi, Thanks in advance for any help you can provide. I have a frameset and one of the frames contains a page that is created on the fly, an actual word document. I want to have a button in one of...
5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
9
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5,...
58
by: PC Datasheet | last post by:
ENOUGH IS ENOUGH!!!!!!!! Today I received over 1000 bounced emails. Arno R and his goons are sending mass emails with my email address to fictitious addresses and they are bouncing back to my...
36
by: Liam.M | last post by:
hey guys, I have one last problem to fix, and then my database is essentially done...I would therefore very much appreciate any assistance anyone would be able to provide me with. Currently I...
8
by: needhelp | last post by:
Hi there, I really need some help, everything I've tried, all I've found, doesn't seem to work. I have lost an email address which is very important to me. I really need to contact that person...
3
by: jambonjamasb | last post by:
Hi I have two tables: email_tbl Data_table Data table is is used to create a Form Data_form
0
by: Ahmed, Shakir | last post by:
Thanks everyone who tried to help me to parse incoming email from an exchange server: Now, I am getting following error; I am not sure where I am doing wrong. I appreciate any help how to resolve...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.