ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Contact form email failing.

December 23, 2013 2:33pm

Subscribe [1]
  • #1 / Dec 23, 2013 2:33pm

    Arrae Developer

    27 posts

    I have a from field in my contact form like so:

    <label for="from">Your E-Mail:</label>
    
       <input name="from" type="text" id="Email"/>

    However, EE seems to be trying to set the actual email “FROM” header to this value.  Obviously this gets flagged as spam since my server isn’t permitted to send emails from just any email address.  Gmail subsequently sends a failure notice when it catches it.  What am I missing here?

  • #2 / Dec 27, 2013 8:06am

    Rob Allen

    3114 posts

    In that case you’ll probably have to pass a valid email sending to address in a hidden field and add the senders address as form message data..

    <input type="hidden" name="from" value="[email protected]">  
    
    <label for="from">Your E-Mail:</label>
    
    <input type="email" id="from" name="message[]" />
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases