Click here to Skip to main content
15,912,897 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Gridview row selection Pin
raju melveetilpurayil4-Sep-10 7:54
professionalraju melveetilpurayil4-Sep-10 7:54 
Questiongetting html code in ascs.cs page Pin
Dhyanga3-Sep-10 7:18
Dhyanga3-Sep-10 7:18 
AnswerRe: getting html code in ascs.cs page Pin
Not Active3-Sep-10 8:17
mentorNot Active3-Sep-10 8:17 
GeneralRe: getting html code in ascs.cs page [modified] Pin
Dhyanga3-Sep-10 8:20
Dhyanga3-Sep-10 8:20 
GeneralRe: getting html code in ascs.cs page Pin
Expert Coming4-Sep-10 22:18
Expert Coming4-Sep-10 22:18 
GeneralRe: getting html code in ascs.cs page Pin
Dhyanga5-Sep-10 0:49
Dhyanga5-Sep-10 0:49 
QuestionProblem with Running Classic ASP page in VS2005 Pin
jintalPatel3-Sep-10 0:25
jintalPatel3-Sep-10 0:25 
AnswerRe: Problem with Running Classic ASP page in VS2005 Pin
Prosanta Kundu online3-Sep-10 2:26
Prosanta Kundu online3-Sep-10 2:26 
Questionopenfiledialog with filter property Pin
yogesh_kumar_agarwal2-Sep-10 19:56
yogesh_kumar_agarwal2-Sep-10 19:56 
AnswerRe: openfiledialog with filter property Pin
Anurag Gandhi2-Sep-10 23:28
professionalAnurag Gandhi2-Sep-10 23:28 
NewsRe: openfiledialog with filter property Pin
Abhijit Jana3-Sep-10 0:23
professionalAbhijit Jana3-Sep-10 0:23 
GeneralRe: openfiledialog with filter property Pin
Anurag Gandhi3-Sep-10 1:47
professionalAnurag Gandhi3-Sep-10 1:47 
Questionasp send mail Pin
swornavidhya_m2-Sep-10 2:47
swornavidhya_m2-Sep-10 2:47 
I want to send mail from an asp page. The asp page is called from a html page. The sending mail using CDOSYS and CDO is not working properly. When i call the asp page from html page, the script for sending mail in the asp page is getting displayed while running rather than working of the process which i had mentioned in the script to work.

The runtime problem is that, when the asp file is being called from html file the script is getting displayed rather than the process to get worked.


HTML Code
HTML and CSS Syntax (Toggle Plain Text)
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
 
</head>
 
<body>
 
<form action=sendmail.asp method="POST">
  <p><input type="text" name="T1" size="20"></p>
  <p><input type="submit" value="Submit" name="B1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <input type="reset" value="Reset" name="B2"></p>
</form>
 
</body>
 
</html>

ASP File "sendmail.asp" code
*****************************

HTML and CSS Syntax (Toggle Plain Text)
<html>
 
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
 
<%
 
function sendmail()
{
 
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="rksvidhya@yahoo.com"
myMail.To="swornavidhya.mahadevan@gmail.com"
myMail.TextBody="This is a message."
 
        myMail.Configuration.Fields.Item _
		("http://schemas.microsoft.com/cdo/configuration/smtsperver") = "smtp.gmail.com";
       myMail.Configuration.Fields.Item _
       ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465;
       myMail.Configuration.Fields.Item _
       ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2;
       myMail.Configuration.Fields.Item _
       ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate")= 1;
       myMail.Configuration.Fields.Item _
       ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = "true";  
       myMail.Configuration.Fields.Item _
       ("http://schemas.microsoft.com/cdo/configuration/sendusername") = "swornavidhya.mahadevan@gmail.com";
       myMail.Configuration.Fields.Item _
       ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "************"; // My gmail password.
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
 
response.write("<script> alert('Process Successful.')</script> ");
 
}
%>
</head> 
 
<body> 
 
</body> 
 
</html> 

Kindly help me at the earliest.
M.Sworna Vidhya

AnswerRe: asp send mail Pin
Stryder_12-Sep-10 3:20
Stryder_12-Sep-10 3:20 
Questionvalidate dropdownlist into DetailsView Pin
Sandraa2-Sep-10 1:56
Sandraa2-Sep-10 1:56 
QuestionClose iframe Div in javascript Pin
SatyaKeerthi152-Sep-10 0:42
SatyaKeerthi152-Sep-10 0:42 
AnswerRe: Close iframe Div in javascript Pin
Not Active2-Sep-10 1:53
mentorNot Active2-Sep-10 1:53 
GeneralRe: Close iframe Div in javascript Pin
SatyaKeerthi152-Sep-10 2:04
SatyaKeerthi152-Sep-10 2:04 
GeneralRe: Close iframe Div in javascript Pin
Not Active2-Sep-10 4:18
mentorNot Active2-Sep-10 4:18 
Questioncalling a client method from master page Pin
amit_831-Sep-10 20:56
professionalamit_831-Sep-10 20:56 
AnswerRe: calling a client method from master page Pin
Anurag Gandhi1-Sep-10 23:20
professionalAnurag Gandhi1-Sep-10 23:20 
QuestionDropdown List Template field Pin
vishnukamath1-Sep-10 20:24
vishnukamath1-Sep-10 20:24 
Questionconvert html to csvexport to CSV Pin
Member 38798811-Sep-10 19:55
Member 38798811-Sep-10 19:55 
AnswerRe: convert html to csvexport to CSV Pin
T M Gray2-Sep-10 4:21
T M Gray2-Sep-10 4:21 
QuestionAccessing Parent Page Method from User Control doesnot refresh Pin
Satish_S1-Sep-10 19:29
Satish_S1-Sep-10 19:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.