Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi neha,
    I think the goal of this plugin is to make sure emails are sent using an SMTP server. What you ask is according to me not in the remit of this plugin.
    I see 2 solutions:
    – You check for a plugin that handles forms and can send email from them
    – You continue your coding with wordpress functions like wp_mail
    Pascal.

    Thread Starter neha

    (@glassfairy)

    pascal i modified the code tobelow but now when i recieve the mail the $fromemail and $name parts are empty…why dont they show up?

    <form>
    <input type="name" id="inputName" placeholder="Name">
    <input type="name" id="inputEmail" placeholder="Email">
    <button type="submit">SUBMIT</button>
    </form>
    
    [email protected];
    $name=$_POST['inputname'];
    $fromemail=$_POST['inputemail'];
    
    $headers=  'From: '.$fromemail . "\r\n" . 'Reply-To: '.$fromemail;
    if(isset($_POST['submit']))
    {
    wp_mail($toemail,$name,"working",$headers);
    }
    Thread Starter neha

    (@glassfairy)

    i mean they are empty in the email i recieve using the plugin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_maik_smtp with normal html form’ is closed to new replies.