Click here to Skip to main content
15,885,366 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Hi i am using Asp.Net with C# , I am new to this Pin
Sathesh Sakthivel27-Mar-09 22:56
Sathesh Sakthivel27-Mar-09 22:56 
GeneralRe: Hi i am using Asp.Net with C# , I am new to this Pin
svijayanmca28-Mar-09 0:09
svijayanmca28-Mar-09 0:09 
GeneralRe: Hi i am using Asp.Net with C# , I am new to this Pin
Sathesh Sakthivel28-Mar-09 0:16
Sathesh Sakthivel28-Mar-09 0:16 
QuestionFourcefully Logout Pin
sanjeev_150127-Mar-09 21:09
sanjeev_150127-Mar-09 21:09 
AnswerRe: Fourcefully Logout Pin
Colin Angus Mackay28-Mar-09 9:47
Colin Angus Mackay28-Mar-09 9:47 
QuestionCan i put semicomma seperated emailid in To using System.Net.Mail namespace Pin
Krishnraj27-Mar-09 20:26
Krishnraj27-Mar-09 20:26 
AnswerRe: Can i put semicomma seperated emailid in To using System.Net.Mail namespace Pin
Christian Graus27-Mar-09 20:33
protectorChristian Graus27-Mar-09 20:33 
GeneralRe: Can i put semicomma seperated emailid in To using System.Net.Mail namespace Pin
Krishnraj27-Mar-09 21:10
Krishnraj27-Mar-09 21:10 
Hi Christian,

First-of-all thanks for replying...

there is no issue to put the code and here is my code...

Dim Strsmtp As New System.Net.Mail.MailMessage
' MailFrom and MailTo come from the database
Dim from As New System.Net.Mail.MailAddress(objReader("MailFrom").ToString())

' Here i Put hard code emailids
Dim toList As New System.Net.Mail.MailAddress("abc1@abc.com;abc2@abc.com")
Strsmtp.From = from
Strsmtp.To.Add(toList)

Strsmtp.Subject = "Hi"
Strsmtp.IsBodyHtml = True
Strsmtp.Headers.Add("Content-Type", objReader("MailContentType"))
Strsmtp.Headers.Add("Reply-To", objReader("MailReplyTo"))
Strsmtp.Body = "Test"
Dim sp As New System.Net.Mail.SmtpClient()
sp.Send(Strsmtp)


and when i put the single emailid, then it gives different error that - Host Name is not specified.

But i already specified host name in my web.config file. Here is the code..
<system.net>
    <mailSettings>
      <smtp>
        <network host="localhost" />
      </smtp>
    </mailSettings>
  </system.net>


as i work in my local pc, so i write "localhost"...
Now i don't understand what i have to do???Confused | :confused:

Krishnraj

GeneralRe: Can i put semicomma seperated emailid in To using System.Net.Mail namespace Pin
Colin Angus Mackay28-Mar-09 9:49
Colin Angus Mackay28-Mar-09 9:49 
QuestionError while executing .aspx in web browser [modified] Pin
a.hamidy27-Mar-09 20:14
a.hamidy27-Mar-09 20:14 
AnswerRe: Error while executing .aspx in web browser Pin
Ravi Mori27-Mar-09 20:24
Ravi Mori27-Mar-09 20:24 
QuestionConnect to database between postback [modified] Pin
Civic0627-Mar-09 14:12
Civic0627-Mar-09 14:12 
AnswerRe: Connect to database between postback Pin
tech60327-Mar-09 19:10
tech60327-Mar-09 19:10 
GeneralRe: Connect to database between postback Pin
Civic0628-Mar-09 3:37
Civic0628-Mar-09 3:37 
Questionwhats do i need to do and how do i do it?? Pin
learningman27-Mar-09 10:51
learningman27-Mar-09 10:51 
AnswerRe: whats do i need to do and how do i do it?? Pin
Yusuf27-Mar-09 13:22
Yusuf27-Mar-09 13:22 
AnswerRe: whats do i need to do and how do i do it?? Pin
Colin Angus Mackay27-Mar-09 13:43
Colin Angus Mackay27-Mar-09 13:43 
QuestionThe source ListBox lost its item selections when a target ListBox item selection is cleared Pin
Tomz_KV27-Mar-09 10:49
Tomz_KV27-Mar-09 10:49 
AnswerRe: The source ListBox lost its item selections when a target ListBox item selection is cleared Pin
Ravi Mori27-Mar-09 19:54
Ravi Mori27-Mar-09 19:54 
GeneralRe: The source ListBox lost its item selections when a target ListBox item selection is cleared Pin
Tomz_KV28-Mar-09 3:23
Tomz_KV28-Mar-09 3:23 
AnswerRe: The source ListBox lost its item selections when a target ListBox item selection is cleared Pin
Tomz_KV30-Mar-09 4:14
Tomz_KV30-Mar-09 4:14 
QuestionVisual Studio 2008 with crystal reports 11.5 Pin
Battlehammer27-Mar-09 9:10
Battlehammer27-Mar-09 9:10 
AnswerRe: Visual Studio 2008 with crystal reports 11.5 Pin
Battlehammer7-Apr-09 5:09
Battlehammer7-Apr-09 5:09 
QuestionManiupulating information from a dataset to save it into an array ???? [modified] Pin
lued27-Mar-09 8:28
lued27-Mar-09 8:28 
AnswerRe: Maniupulating information from a dataset to save it into an array ???? Pin
Jörgen Andersson27-Mar-09 11:39
professionalJörgen Andersson27-Mar-09 11:39 

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.