ASP Web Service For Sending Email
-
Enter SMTP Configuration at Web.config
-
Enjoy!
Just issue a normal AJAX request.
jQuery.ajax({
url: "/EmailApi/SendEmailService.asmx/SendEmail",
type: "POST",
contentType: "application/x-www-form-urlencoded"
data: {
from: "[email protected]",
to: "[email protected],[email protected]",
cc: "",
bcc: "[email protected]",
subject: "Test Email",
body: "It is an email"
}
});