0

I'm trying to make a form, using the free version of Solspace Freeform (v4). And I would like to set the "from" field in the email.

{exp:freeform:form form_id="2" required="message|email|recipient_email" recipient_user_input="yes" recipient_user_limit="1" recipient_user_template="original" }

    <fieldset class="message">

        <legend>Your personal message</legend>
        <textarea name="message" id="message" placeholder="Hello..."></textarea>

    </fieldset>

    <fieldset class="emails">

        <label for="email">Your email address</label>
        <input type="email" name="email" id="email" placeholder="[email protected]" />

        <label for="recipient_email_user">Receivers email address</label>
        <input type="email" name="recipient_email_user" id="recipient_email_user" placeholder="[email protected]" />

    </fieldset>

{/exp:freeform:form}

Can this be done?

1 Answer 1

2

Yes. In your notification template (in this case, the one called "original", just put {email} in the "From" field.

OR, perhaps even better, use an email address originating from your domain (say, [email protected]) in "From", and use {email} as the "Reply-To" address. (This will help with deliverability, as some servers may reject email which is from an address that does not originate on the sending domain.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.