Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Here is my code:
lsEmailCC = """"&lsEmailCC&""""
'Response.Write lsEmailCC
'Response.End
Set MyMail = Server.CreateObject("CDONTS.Newmail")
MyMail.From = Session("Email")
Mail.To = "contact@prernaclasses.com"
MyMail.CC =  lsEmailCC
MyMail.Subject = "Updating Task Time"
MyMail.Body =   "EmpCode : " & Session("UserID") & "," &  vbCrLf &  " Name : "& Session("EmpName") & "," & vbCrLf & " Year : " & lsYear & "," & vbCrLf & " Month : " & lsMonth &"," & vbCrLf & " Week : " & lsWeek & "," & vbCrLf  & vbCrLf  & " Remarks : " & lsRemarks
                MyMail.Send
                Set MyMail = Nothing
                Response.Redirect("EditReport.asp")
                Response.End    

when I print,
C#
lsEmailCC = "someone@gmail.com,someone@yahoo.com"

but the above code is not working and my asp page is getting blank...
How to Solve???
Posted
Updated 26-Aug-13 22:47pm
v3

1 solution

Hai just try it

in asp.net or ext:
ASP.NET
<ext:textarea  runat="server" id="text1" text="someone@gmail.com" xmlns:ext="#unknown" />
<ext:textarea  runat="server" id="text2" text="someone@yahoo.com" xmlns:ext="#unknown" />

in code behind(.cs page):
CSS
MyMail.CC =  lsEmailCC;
lsEmailCC = text1.Text + text2.Text;
 
Share this answer
 
v2

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