locked
way to asp webservice send mail data to a specified mail adress? RRS feed

  • Question

  • User-915055249 posted

    i have a webservice and using a php form to get and post data. i need to send the all data(name, surname, phone number etc...) to my clients mail adress when the form acts. I would be grateful for your help. Thanks.

    Tuesday, November 10, 2020 10:00 PM

All replies

  • User1535942433 posted

    Hi buserhat,

    As far as I think,you could use Gmail SMTP Mail Server to send emails.You need the Gmail SMTP Mail Server settings.

    More details,you could refer to below article:

    https://www.aspsnippets.com/Articles/Send-Email-using-Web-Service-in-ASPNet-using-C-and-VBNet.aspx

    Best regards,

    Yijing Sun

    Wednesday, November 11, 2020 3:30 AM
  • User687463552 posted
    The HTML Markup has a form with some fields such as Recipient Email address, Subject, Body and a Button to send the email.
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>To:</td>
            <td><asp:TextBox ID="txtTo" runat="server" /></td>
        </tr>
        <tr>
            <td>Subject:</td>
            <td><asp:TextBox ID="txtSubject" runat="server" /></td>
        </tr>
        <tr>
            <td valign = "top">Body:</td>
            <td><asp:TextBox ID="txtBody" runat="server" TextMode="MultiLine" Height="150" Width="200" /></td>
        </tr>
        <tr>
            <td></td>
            <td><asp:Button ID="btnSend" Text="Send" runat="server" /></td>
        </tr>
    </table>
    Saturday, November 21, 2020 2:57 PM