473,520 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wats the error in this code

Hello,

dim receiptto
receiptto="a2*@yahoo.com"
set cdoconfig=CreateObject("CDO.configuration")
set cdomsg=CreateObject("CDO.Message")

with cdoconfig.Fields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2

..Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="mail8.webmail.com"

'this is the SMTP server setting in my outlook.

.Update
end with
with cdomsg
set .Configuration=cdoconfig

..Fields("urn:schemas:mailheader:disposition-notification-to")=receiptto
.Fields("urn:schemas:mailheader:return-receipt-to") =receiptto
.From="a2***@yahoo.com"
.To="my****@yahoo.com"
.Subject="Sample mail"
.HTMLBody="<b><font color=#ff0000 size=3
face='arial'>Hello</font></b>"
.DSNOptions=4
.Fields.update
.Send
end with
set cdoconfig=nothing
set cdomsg=nothing
Response.Write "Mail sent"
I am getting the error ar .Send (Internal Server error 500
If i didnt use configuration, sending mail correctly. (Simple from, to,
subject, htmlbody, send).
Thanx in advance
Jul 22 '05 #1
7 2121
Turn off friendly error messages in your browser

http://support.microsoft.com/default...;en-us;Q294807
--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.
"Rajani" <Ra****@discussions.microsoft.com> wrote in message
news:B1**********************************@microsof t.com...
Hello,

dim receiptto
receiptto="a2*@yahoo.com"
set cdoconfig=CreateObject("CDO.configuration")
set cdomsg=CreateObject("CDO.Message")

with cdoconfig.Fields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2

.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="mail8.webmail.com"

'this is the SMTP server setting in my outlook.

.Update
end with
with cdomsg
set .Configuration=cdoconfig

.Fields("urn:schemas:mailheader:disposition-notification-to")=receiptto
.Fields("urn:schemas:mailheader:return-receipt-to") =receiptto
.From="a2***@yahoo.com"
.To="my****@yahoo.com"
.Subject="Sample mail"
.HTMLBody="<b><font color=#ff0000 size=3
face='arial'>Hello</font></b>"
.DSNOptions=4
.Fields.update
.Send
end with
set cdoconfig=nothing
set cdomsg=nothing
Response.Write "Mail sent"
I am getting the error ar .Send (Internal Server error 500
If i didnt use configuration, sending mail correctly. (Simple from, to,
subject, htmlbody, send).
Thanx in advance

Jul 22 '05 #2
Is that Atrax?


"Jason Brown [MSFT]" <i-******@online.microsoft.com> wrote in message
news:ei**************@TK2MSFTNGP14.phx.gbl...
Turn off friendly error messages in your browser

http://support.microsoft.com/default...;en-us;Q294807

Jul 22 '05 #3
Might try this code:
http://www.aspfaq.com/2252

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Rajani" <Ra****@discussions.microsoft.com> wrote in message
news:B1**********************************@microsof t.com...
Hello,

dim receiptto
receiptto="a2*@yahoo.com"
set cdoconfig=CreateObject("CDO.configuration")
set cdomsg=CreateObject("CDO.Message")

with cdoconfig.Fields
..Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
..Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="mail8.we
bmail.com"
'this is the SMTP server setting in my outlook.

.Update
end with
with cdomsg
set .Configuration=cdoconfig

.Fields("urn:schemas:mailheader:disposition-notification-to")=receiptto
.Fields("urn:schemas:mailheader:return-receipt-to") =receiptto
.From="a2***@yahoo.com"
.To="my****@yahoo.com"
.Subject="Sample mail"
.HTMLBody="<b><font color=#ff0000 size=3
face='arial'>Hello</font></b>"
.DSNOptions=4
.Fields.update
.Send
end with
set cdoconfig=nothing
set cdomsg=nothing
Response.Write "Mail sent"
I am getting the error ar .Send (Internal Server error 500
If i didnt use configuration, sending mail correctly. (Simple from, to,
subject, htmlbody, send).
Thanx in advance

Jul 22 '05 #4
Hello,

I off friendly error messages in the browser. Still the same
error(screen). I copied from that article only and changed values to suit my
requirements. If i didnt use configuration, its sending mail w/o error. When
i use config only its displaying error.

"Aaron [SQL Server MVP]" wrote:
Might try this code:
http://www.aspfaq.com/2252

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Rajani" <Ra****@discussions.microsoft.com> wrote in message
news:B1**********************************@microsof t.com...
Hello,

dim receiptto
receiptto="a2*@yahoo.com"
set cdoconfig=CreateObject("CDO.configuration")
set cdomsg=CreateObject("CDO.Message")

with cdoconfig.Fields

..Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2

..Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="mail8.we
bmail.com"

'this is the SMTP server setting in my outlook.

.Update
end with
with cdomsg
set .Configuration=cdoconfig

.Fields("urn:schemas:mailheader:disposition-notification-to")=receiptto
.Fields("urn:schemas:mailheader:return-receipt-to") =receiptto
.From="a2***@yahoo.com"
.To="my****@yahoo.com"
.Subject="Sample mail"
.HTMLBody="<b><font color=#ff0000 size=3
face='arial'>Hello</font></b>"
.DSNOptions=4
.Fields.update
.Send
end with
set cdoconfig=nothing
set cdomsg=nothing
Response.Write "Mail sent"
I am getting the error ar .Send (Internal Server error 500
If i didnt use configuration, sending mail correctly. (Simple from, to,
subject, htmlbody, send).
Thanx in advance


Jul 22 '05 #5
yeah mate.
--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Is that Atrax?


"Jason Brown [MSFT]" <i-******@online.microsoft.com> wrote in message
news:ei**************@TK2MSFTNGP14.phx.gbl...
Turn off friendly error messages in your browser

http://support.microsoft.com/default...;en-us;Q294807


Jul 22 '05 #6
On Mon, 22 Nov 2004 22:37:15 -0800, Rajani
<Ra****@discussions.microsoft.com> wrote:
I off friendly error messages in the browser. Still the same
error(screen). I copied from that article only and changed values to suit my
requirements. If i didnt use configuration, its sending mail w/o error. When
i use config only its displaying error.
Post the full error message as you see it. If it works without the
config, then you have something wrong in your config settings. You
did edit the code to match your SMTP server, correct?

Jeff

"Aaron [SQL Server MVP]" wrote:
Might try this code:
http://www.aspfaq.com/2252

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Rajani" <Ra****@discussions.microsoft.com> wrote in message
news:B1**********************************@microsof t.com...
> Hello,
>
> dim receiptto
> receiptto="a2*@yahoo.com"
> set cdoconfig=CreateObject("CDO.configuration")
> set cdomsg=CreateObject("CDO.Message")
>
> with cdoconfig.Fields
>

..Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
>
>

..Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="mail8.we
bmail.com"
>
> 'this is the SMTP server setting in my outlook.
>
> .Update
> end with
> with cdomsg
> set .Configuration=cdoconfig
>
> .Fields("urn:schemas:mailheader:disposition-notification-to")=receiptto
> .Fields("urn:schemas:mailheader:return-receipt-to") =receiptto
> .From="a2***@yahoo.com"
> .To="my****@yahoo.com"
> .Subject="Sample mail"
> .HTMLBody="<b><font color=#ff0000 size=3
> face='arial'>Hello</font></b>"
> .DSNOptions=4
> .Fields.update
> .Send
> end with
> set cdoconfig=nothing
> set cdomsg=nothing
>
>
> Response.Write "Mail sent"
>
>
> I am getting the error ar .Send (Internal Server error 500
> If i didnt use configuration, sending mail correctly. (Simple from, to,
> subject, htmlbody, send).
>
>
> Thanx in advance



Jul 22 '05 #7
This is the code i used
dim receiptto
receiptto="ra****@tom.com.bn"
set cdoconfig=CreateObject("CDO.configuration")
set cdomsg=CreateObject("CDO.Message")

with cdoconfig.Fields
' .Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
' .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="mail4.webindia.com"
' .Update
end with
with cdomsg
' set .Configuration=cdoconfig
.Fields("urn:schemas:mailheader:disposition-notification-to")=receiptto
.Fields("urn:schemas:mailheader:return-receipt-to") =receiptto
.From="a2***@yahoo.com"
.To="ra****@tom.com.bn"
.Subject="Sample mail"
.HTMLBody="<b><font color=#ff0000 size=3 face='arial'>Hello</font></b>"
.DSNOptions=4
.Fields.update
.Send
end with
set cdoconfig=nothing
set cdomsg=nothing


"Jeff Cochran" wrote:
On Mon, 22 Nov 2004 22:37:15 -0800, Rajani
<Ra****@discussions.microsoft.com> wrote:
I off friendly error messages in the browser. Still the same
error(screen). I copied from that article only and changed values to suit my
requirements. If i didnt use configuration, its sending mail w/o error. When
i use config only its displaying error.


Post the full error message as you see it. If it works without the
config, then you have something wrong in your config settings. You
did edit the code to match your SMTP server, correct?

Jeff

"Aaron [SQL Server MVP]" wrote:
Might try this code:
http://www.aspfaq.com/2252

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Rajani" <Ra****@discussions.microsoft.com> wrote in message
news:B1**********************************@microsof t.com...
> Hello,
>
> dim receiptto
> receiptto="a2*@yahoo.com"
> set cdoconfig=CreateObject("CDO.configuration")
> set cdomsg=CreateObject("CDO.Message")
>
> with cdoconfig.Fields
>
..Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
>
>
..Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="mail8.we
bmail.com"
>
> 'this is the SMTP server setting in my outlook.
>
> .Update
> end with
> with cdomsg
> set .Configuration=cdoconfig
>
> .Fields("urn:schemas:mailheader:disposition-notification-to")=receiptto
> .Fields("urn:schemas:mailheader:return-receipt-to") =receiptto
> .From="a2***@yahoo.com"
> .To="my****@yahoo.com"
> .Subject="Sample mail"
> .HTMLBody="<b><font color=#ff0000 size=3
> face='arial'>Hello</font></b>"
> .DSNOptions=4
> .Fields.update
> .Send
> end with
> set cdoconfig=nothing
> set cdomsg=nothing
>
>
> Response.Write "Mail sent"
>
>
> I am getting the error ar .Send (Internal Server error 500
> If i didnt use configuration, sending mail correctly. (Simple from, to,
> subject, htmlbody, send).
>
>
> Thanx in advance


Jul 22 '05 #8

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

Similar topics

1
2660
by: hitendra | last post by:
wats eauivalent of IIF in C#?
2
1077
by: babykennedy | last post by:
im using Windows XP and it was working great... but i was cleaning out old programs off of the actual hard drive, and now my computer will not play sound. it says that there is a problem with the soud set-up or whatever, but i can't find a problem. I know i am probably the dumbest person in the world for not being able to fix this, but i...
2
916
seshu
by: seshu | last post by:
Hi everybody today i have developed an application which uses the concepts of classes and the code is like this to explain you simply i have two forms form1,form2,and a class class1 in class i wrote this Public Class Class1 Public str As String = "" End Class in form1 class one i wrote this code dim cls as new class1 in button click...
0
892
by: Nishit | last post by:
wats the difference between debuggin and compiling?
2
1465
by: flavourofbru | last post by:
Hi, I am reading a text file which has 4 columns into a 3D array. My code is compiling........but cant see the output. Shows .exe file stopped working. My code is as follows: //#include "stdafx.h" #include<iostream>
1
992
by: rhepsi | last post by:
Hii all, im worried with a project where... im trying to delete a row from the datagrid.... delete_button_click:...
8
2109
by: sriya | last post by:
hi, this is vidya, i have a doubt regarding the output of this program main() { int c; c=300*300/300; printf("%d",c); } the output is?
11
1942
by: jemar19 | last post by:
import java.util.*; public class trixie { static Scanner console = new Scanner (System.in); public static void main(String args ) { double numDollar,numSwissfrancs,currency; double numEurodollars,numMexicanpesos,dollars; double SwissFrancs,Eurodollars,Mexicanpesos;
2
4639
by: shashankbs | last post by:
Given a topology and a certain node X, find the shortest path tree with X as the root. * Input: a topology file similar to the following (which is a three-node ring) -------------------------------------------- Nodes: (3) // there are three nodes (node 0, 1 and 2) Edges: (3)
0
7299
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7602
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...
1
7163
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...
0
7559
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5740
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3282
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...
0
3279
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1646
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
0
506
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.