1. andreww22's Avatar
    I've windows hosting, hosted on asphostportal. I want to ask how to create a email sending simple web service in Windows hosting in a file like mailer.asp as following mailer.php does in php environment. Gets 3 variables and sends email:

    [code]
    <?php
    mail($_GET['email'], $_GET['subject'], $_GET['message']);
    ?>
    [/code]

    I came up with following but it is giving 500 internal error:

    [code]
    <%
    Set myMail=CreateObject("CDO.Message")
    myMail.Subject=Request.QueryString("subject")
    myMail.From="mail@example.com"
    myMail.To=Request.QueryString("email")
    myMail.TextBody=Request.QueryString("message")
    myMail.Send
    set myMail=nothing
    %>
    [/code]
    Requirement is it should work in Windows environment, no matter it is VBscript, C#, ASP, or ASPX etc
    12-09-2016 03:32 AM

Similar Threads

  1. Redesign of the window central website
    By The Lumia God in forum Site Feedback & Help
    Replies: 4
    Last Post: 09-26-2017, 06:44 PM
  2. tcpip.sys causing BSOD in Windows 10 x64
    By King Mustard in forum Windows 10
    Replies: 5
    Last Post: 12-09-2016, 06:41 PM
  3. Windows 8 will not recognize usb device
    By Windows Central Question in forum Ask a Question
    Replies: 1
    Last Post: 12-09-2016, 09:38 AM
  4. Replies: 6
    Last Post: 12-09-2016, 08:25 AM
  5. Windows insider
    By jamshal kp in forum Ask a Question
    Replies: 3
    Last Post: 12-08-2016, 08:45 PM
LINK TO POST COPIED TO CLIPBOARD