Click here to Skip to main content
15,888,320 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello all,

I want to send a mail through my website using asp code and i am getting the following exception....
The remote server returned an error: (500) Internal Server Error.

the following is my asp code ....
VB
<%
Function emailsub (objFrom,objMessageTextbody, objsubject, recepients)
            Dim objMessage
            Dim objMessageFrom
            Dim objMessageSubject


                Set objMessage = CreateObject("CDO.Message")
                myMail.Subject=objsubject
                myMail.From= objFrom
                myMail.To=recepients
                myMail.TextBody=objMessageTextbody
                myMail.Send
                set myMail=nothing
%>
Posted
Updated 5-Jan-12 20:18pm
v2

 
Share this answer
 
Comments
Sridhar Patnayak 6-Jan-12 2:40am    
Good 5+
Monjurul Habib 7-Jan-12 5:52am    
thanks
You are missing SMTP server connection .
Please check the link
http://forums.asp.net/t/971802.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900