Click here to Skip to main content
15,887,440 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Upload file without file uploade control Pin
Abhijit Jana21-Nov-09 19:58
professionalAbhijit Jana21-Nov-09 19:58 
AnswerRe: Upload file without file uploade control Pin
April Fans24-Nov-09 0:48
April Fans24-Nov-09 0:48 
Questionsending mails through webservices Pin
shankbond20-Nov-09 22:54
shankbond20-Nov-09 22:54 
AnswerRe: sending mails through webservices Pin
sashidhar20-Nov-09 23:04
sashidhar20-Nov-09 23:04 
GeneralRe: sending mails through webservices Pin
shankbond21-Nov-09 0:40
shankbond21-Nov-09 0:40 
GeneralRe: sending mails through webservices Pin
sashidhar21-Nov-09 0:59
sashidhar21-Nov-09 0:59 
GeneralRe: sending mails through webservices Pin
shankbond21-Nov-09 1:09
shankbond21-Nov-09 1:09 
GeneralRe: sending mails through webservices Pin
sashidhar21-Nov-09 1:20
sashidhar21-Nov-09 1:20 
shankbond wrote:
AsyncCallback callback = new AsyncCallback(hello);

I dont Understand why you need asychronous?

here is sample code i developed now
Modify your code depending on your requirement...!

//For WebService
[WebMethod]
    public string SendMail()
    {
        try
        {
        MailMessage msg=new MailMessage ("From@xxx.com","To@xxx.com","Sub","body");
        SmtpClient client = new SmtpClient("YourDomain", 25);
       client .Send (msg);        
        return "hai";
        }
        catch (Exception ie)
        {
            return ie.Message ;
        }
    }


For Calling Webservice..!

localhost.WebService rss = new localhost.WebService();
        string msg=rss.SendMail();
        Response.Write(msg);

I am Going Bye May the group will help if you need further assistance..!Thumbs Up | :thumbsup:


LatestArticle :Log4Net

Why Do Some People Forget To Mark as Answer .If It Helps.

GeneralRe: sending mails through webservices Pin
sashidhar21-Nov-09 1:23
sashidhar21-Nov-09 1:23 
GeneralRe: sending mails through webservices Pin
shankbond21-Nov-09 2:27
shankbond21-Nov-09 2:27 
GeneralRe: sending mails through webservices Pin
shankbond24-Nov-09 20:58
shankbond24-Nov-09 20:58 
GeneralRe: sending mails through webservices Pin
sashidhar24-Nov-09 21:23
sashidhar24-Nov-09 21:23 
GeneralRe: sending mails through webservices Pin
sashidhar25-Nov-09 1:13
sashidhar25-Nov-09 1:13 
QuestionProblem in maintaining same size of page Pin
rhtbhegade20-Nov-09 22:10
rhtbhegade20-Nov-09 22:10 
AnswerRe: Problem in maintaining same size of page Pin
ais0720-Nov-09 22:29
ais0720-Nov-09 22:29 
AnswerRe: Problem in maintaining same size of page Pin
John Bracey21-Nov-09 1:41
John Bracey21-Nov-09 1:41 
QuestionProblem with FireFox!! Pin
Sr...Frank20-Nov-09 22:09
Sr...Frank20-Nov-09 22:09 
AnswerRe: Problem with FireFox!!..Modified..! Pin
sashidhar20-Nov-09 22:22
sashidhar20-Nov-09 22:22 
GeneralRe: Problem with FireFox!!..Modified..! Pin
Sr...Frank20-Nov-09 23:25
Sr...Frank20-Nov-09 23:25 
GeneralRe: Problem with FireFox!!..Modified..! Pin
sashidhar20-Nov-09 23:26
sashidhar20-Nov-09 23:26 
QuestionHow i write Java script Function for validaing inner Gridview Checkbox Pin
Rameez Raja20-Nov-09 20:17
Rameez Raja20-Nov-09 20:17 
AnswerRe: How i write Java script Function for validaing inner Gridview Checkbox Pin
sashidhar20-Nov-09 20:30
sashidhar20-Nov-09 20:30 
GeneralRe: How i write Java script Function for validaing inner Gridview Checkbox Pin
Rameez Raja20-Nov-09 20:45
Rameez Raja20-Nov-09 20:45 
GeneralRe: How i write Java script Function for validaing inner Gridview Checkbox Pin
Locke Duan22-Nov-09 2:55
Locke Duan22-Nov-09 2:55 
GeneralRe: How i write Java script Function for validaing inner Gridview Checkbox Pin
Rameez Raja22-Nov-09 5:21
Rameez Raja22-Nov-09 5:21 

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.