473,594 Members | 2,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending Mail

Shouldn't this code do it on a Win2k3 box.

Set oMsg = Server.CreateOb ject("CDO.Messa ge")
oMsg.From = "ad*****@domain .com"
oMsg.To = "ad*****@domain .com"
oMsg.Subject = "Subject"
oMsg.Body = "Body"

oMsg.BodyFormat = 1 '1=Text, 0=HTML
oMsg.MailFormat = 1 '1=Text, 0=MIME

oMsg.Send
Jul 19 '05 #1
5 11024
Well, the fact that you're asking implies you're getting an error. But to
answer your question, no. You're using CDONTS properties on CDO. Instead
of .Body use .HTMLBody or .TextBody, IIRC.

Ray at work

"- Steve -" <se****@foundat ion.sdsu.edu> wrote in message
news:uj******** ******@TK2MSFTN GP12.phx.gbl...
Shouldn't this code do it on a Win2k3 box.

Set oMsg = Server.CreateOb ject("CDO.Messa ge")
oMsg.From = "ad*****@domain .com"
oMsg.To = "ad*****@domain .com"
oMsg.Subject = "Subject"
oMsg.Body = "Body"

oMsg.BodyFormat = 1 '1=Text, 0=HTML
oMsg.MailFormat = 1 '1=Text, 0=MIME

oMsg.Send

Jul 19 '05 #2
Okay how about this?

Set objMessage = Server.CreateOb ject("CDO.Messa ge")
objMessage.Subj ect = "Test Subject"
objMessage.Send er = "us**@domain.co m"
objMessage.To = "us**@domain.co m"
objMessage.Text Body = "Test Body"
objMessage.Send

When I try to run that it tells me:
CDO.Message.1 error '80070005'

Access is denied.

/mail.asp, line 24

This is running on the same box as an Exchange server. Now I'm pretty sure
I need to change the permissions, but I'm not sure where.


"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:eu******** ********@TK2MSF TNGP12.phx.gbl. ..
Well, the fact that you're asking implies you're getting an error. But to
answer your question, no. You're using CDONTS properties on CDO. Instead
of .Body use .HTMLBody or .TextBody, IIRC.

Ray at work

"- Steve -" <se****@foundat ion.sdsu.edu> wrote in message
news:uj******** ******@TK2MSFTN GP12.phx.gbl...
Shouldn't this code do it on a Win2k3 box.

Set oMsg = Server.CreateOb ject("CDO.Messa ge")
oMsg.From = "ad*****@domain .com"
oMsg.To = "ad*****@domain .com"
oMsg.Subject = "Subject"
oMsg.Body = "Body"

oMsg.BodyFormat = 1 '1=Text, 0=HTML
oMsg.MailFormat = 1 '1=Text, 0=MIME

oMsg.Send


Jul 19 '05 #3
IUSR needs write permissions to \inetpub\mailro ot\pickup.

See www.aspfaq.com for common errors like this.

Ray at work

"- Steve -" <se****@foundat ion.sdsu.edu> wrote in message
news:eP******** ******@tk2msftn gp13.phx.gbl...
Okay how about this?

Set objMessage = Server.CreateOb ject("CDO.Messa ge")
objMessage.Subj ect = "Test Subject"
objMessage.Send er = "us**@domain.co m"
objMessage.To = "us**@domain.co m"
objMessage.Text Body = "Test Body"
objMessage.Send

When I try to run that it tells me:
CDO.Message.1 error '80070005'

Access is denied.

/mail.asp, line 24

This is running on the same box as an Exchange server. Now I'm pretty sure I need to change the permissions, but I'm not sure where.

Jul 19 '05 #4
"Ray at <%=sLocation% >" wrote:

...You're using CDONTS properties on CDO. Instead
of .Body use .HTMLBody or .TextBody, IIRC.


Strangely enough, those properties work just fine, despite total lack of
documentation to support the notion that they would.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #5
It's either being a DC or an Exchange server that's mucking it up becuase on
a plain Windows 2003 install it works fine.

I added the approriate user permissions to the pickup directory with no
luck.

Since in production I'll be using it on a non-DC non-Exchange server I'll
finish my search here. Thanks for the help.
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:u5******** *****@tk2msftng p13.phx.gbl...
IUSR needs write permissions to \inetpub\mailro ot\pickup.

See www.aspfaq.com for common errors like this.

Ray at work

"- Steve -" <se****@foundat ion.sdsu.edu> wrote in message
news:eP******** ******@tk2msftn gp13.phx.gbl...
Okay how about this?

Set objMessage = Server.CreateOb ject("CDO.Messa ge")
objMessage.Subj ect = "Test Subject"
objMessage.Send er = "us**@domain.co m"
objMessage.To = "us**@domain.co m"
objMessage.Text Body = "Test Body"
objMessage.Send

When I try to run that it tells me:
CDO.Message.1 error '80070005'

Access is denied.

/mail.asp, line 24

This is running on the same box as an Exchange server. Now I'm pretty

sure
I need to change the permissions, but I'm not sure where.


Jul 19 '05 #6

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

Similar topics

0
522
by: praba kar | last post by:
Dear All, I have doubt regarding mail sending smtplib module. The below code is I used to send a mail. ########################################## import email.Message import email.Utils import mimetypes import os,string
10
4957
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are working with we put these mailshots in the bcc field of the mails. This can sometimes cause a problem as we are getting alot of mails bounced back. I would like to write a script to have these emails sent out individually using the to: field of the...
2
9215
by: Mr. x | last post by:
Hello, I am sending emails with Hebrew contents. When receiving emails - I cannot see the Hebrew characters (it is not outlook express configuration, because when receiving emails from friends - I see hebrew, it is just sending by myself using *.aspx scripts). In web.config I have the following : <configuration> <system.web>
3
6814
by: VB Programmer | last post by:
I have an ASPX page where I send out emails through my mail server mail.MyDomain.com. When I send emails to MyName@MyDomain.com it sends PERFECTLY. When I try sending an email to any other address (non-MyDomain.com address) I get the following error: The server rejected one or more recipient addresses. The server response was: 550 You must check your mail from this IP or SMTP Auth before sending to BSmith@Juno.com Here's the FULL...
3
57615
by: HoustonComputerGuy | last post by:
I am working on getting my web applications moved to .Net 2.0 and am having some problems with System.Net.Mail. I get the following error when sending the mail: System.Net.Mail.SmtpException was unhandled by user code Message="Failure sending mail." Source="System" StackTrace: at System.Net.Mail.SmtpClient.Send(MailMessage message) at System.Net.Mail.SmtpClient.Send(String from, String
1
8168
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to the members of my organization. I think my problem is incorrectly setting the settings on my server or an authentication problem. Here is the code I have written to send a test message: -----Code Begins: Sensitive Information Replaced by -----...
2
10132
by: HK | last post by:
In VB.NET, I'm getting the exception "failure sending mail". I'm running VS 2005 on XP Home. This is a new install on a new PC. I've never had email problems with VS 2003, and there I could modify the SMTP settings in IIS. But with this install, there is no IIS (at least I can't find an IIS with MMC browsing the snap-ins). I suspect that is part of the problem but I don't know the solution and I have to be able to test sending email...
3
1971
by: mfleet1973 | last post by:
Hello Again. I have a program that sends e-mails as follows: Try Dim mail As New MailMessage mail.To = "me@comp.com" mail.From = "me@comp.com mail.Subject = "Test" mail.Body = "Testing123"
9
3448
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient oSMTP.Send(oMailMessage) (in this line I am getting the above err)
4
2390
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I use: Dim message As New MailMessage(txtTo.Text, txtFrom.Text, txtSubject.Text, txtBody.Text) Dim emailClient As New SmtpClient(txtSMTPServer.Text) emailClient.Send(message) And its working fine. However I was wondering if there is a way to confirm that the email was sent. The send method does not return anything....
0
7877
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8252
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8372
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8003
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5739
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5410
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3862
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3901
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2387
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.