Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have created webservice for sending email in .Net, I have checked also its working fine. The WebServices has three paramters Lsm_To, Lsm_body, Lsm_Message.

how to apply javascript.

below is the link http://localhost:52024/WebService1.asmx?op=EmailSend

please help on this

Thanks Basit.
Posted
Comments
Sergey Alexandrovich Kryukov 9-Aug-15 11:01am    
What's the use of the link if it's local host, your local host?
—SA

1 solution

Your link makes no sense. And what do you mean "how"? By looking at what your Web service offers and using it.

The question should assume that you have some WebService which can send a mail in response to some HTTP request. (Please see my comment to the question; probably, you don't have it yet. :-)) It means that all you need is to send appropriate request. With JavaScript, it will be based on AJAX: http://en.wikipedia.org/wiki/Ajax_(programming)[^].

You can write such request yourself, or it can be facilitated by one or another available library, for example, http://api.jquery.com/jquery.ajax[^].

That's all.

—SA
 
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