We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25788
    • 3 Posts
    is it possible to set the received: field of an form report email send wit eform

    in the source of the email message i see a field called:

    Received: from mydomain.nl (localhost [127.0.0.1])

    if i receive a mail from eform on my gmail address i see field called ’’mailed-by’’ in de message details.

    it gives the name of the server from where the mail was send.

    can i set this value with eform?
    or is this something that has to be done on the server side ?

    thanks in progress

    Remko van Dokkum
      • 12028
      • 152 Posts
      Had you tried the following in the snippet call to Eform? :
      ... &from=`[+email+]` &fromname=`[+name+]` ...


      And if you are using phx its:
      ... &from=`((email))` &fromname=`((name))` ...
        - A small step for mankind, so why not take two...

        Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!
        • 25788
        • 3 Posts
        &from and &fromname are used in the call and do show-up in the email.
          • 12028
          • 152 Posts
          Then you could use SMTP instead of php mail()

          Maybe this can help you on the way:
          http://modxcms.com/forums/index.php?topic=32969.0
            - A small step for mankind, so why not take two...

            Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!
            • 25788
            • 3 Posts
            as i’m not experienced i do not know where to put this in the eform snippet

            $mail->IsSMTP();
            $mail->Host = "smtp.gmail.com";
            $mail->SMTPAuth = true;
            $mail->SMTPSecure= "ssl";
            $mail->Port = 465;
            $mail->Username = "[email protected]";
            $mail->Password = "password";
              • 12028
              • 152 Posts
              It’s not in the snippet call but in: assets/snippets/eform/eform.inc.php if I are remembering it correctly.
                - A small step for mankind, so why not take two...

                Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!
                • 4310
                • 2,310 Posts
                I have a modified version that can use SMTP, check my signature.