Send HTML Form in Email in ASP.Net

Last Reply 5 months ago By dharmendr

Posted 5 months ago

I have on the form which is in an HTML page.

I want to send the user's Name, Mail and message to a normal example@gmail.com.

<form action="example@gmail.com" role="form" method="post" name="Contact Us">
<input type="hidden" name="post_id" value="24" />
<input type="hidden" name="form_id" value="fe34914" />
<div class="elementor-form-fields-wrapper elementor-labels-above">
    <div class="elementor-field-type-text elementor-field-group elementor-column elementor-field-group-name elementor-col-100">
        <input size="1" type="text" name="form_fields[name]" id="form-field-name" class="elementor-field elementor-size-sm  elementor-field-textual"
            placeholder="Name">
    </div>
    <div class="elementor-field-type-email elementor-field-group elementor-column elementor-field-group-email elementor-col-100 elementor-field-required">
        <input size="1" type="email" name="form_fields[email]" id="form-field-email" class="elementor-field elementor-size-sm  elementor-field-textual"
            placeholder="Email" required="required" aria-required="true">
    </div>
    <div class="elementor-field-type-tel elementor-field-group elementor-column elementor-field-group-field_1 elementor-col-100 elementor-field-required">
        <input size="1" type="tel" name="form_fields[field_1]" id="form-field-field_1" class="elementor-field elementor-size-sm  elementor-field-textual"
            placeholder="Phone" required="required" aria-required="true" pattern="[0-9()#&amp;+*-=.]+"
            title="Only numbers and phone characters (#, -, *, etc) are accepted.">
    </div>
    <div class="elementor-field-type-textarea elementor-field-group elementor-column elementor-field-group-message elementor-col-100">
        <textarea class="elementor-field-textual elementor-field  elementor-size-sm" name="form_fields[message]"
            id="form-field-message" rows="4" placeholder="Message"></textarea>
    </div>
    <div class="elementor-field-group elementor-column elementor-field-type-submit elementor-col-100">
        <!--<button type="submit" class="elementor-button elementor-size-sm">-->
        <button type="submit">
            <span><span class="elementor-button-text">Send</span> </span>
        </button>
    </div>
</div>
</form>

 

 

You are viewing reply posted by: dharmendr 5 months ago.