Hi n00b here looking over and over again at code but can’t see where it’s going wrong (not receiving email nor is the return path working) - have used this code on a few other sites and the forms are worekign fine so I’m figuring it’s gotta be a setting EE somewhere (have attached screen of CP Home › Admin › System Preferences › Email Configuration )...
I thought it may have bneen the name of the site causing email to be caught by spam but have sent/received email via communicate tab and works ok…
Ok any help would be much apprreciated - thnx. Might just ditch it and go with Freeform ?
ps - here’s template code:
{embed="embeds/html_header" my_page_title="Contact Us"}
<body>
<div id="container">
<div id="header">
{embed="embeds/logo_title"}
{embed="embeds/main_nav"}
</div><!-- close header -->
<div id="content">
<div id="left">
{embed="embeds/sidebar_content"}
</div><!-- close left side -->
<div id="right">
{exp:weblog:entries weblog="contact" disable="categories|member_data|pagination|trackbacks" sort="asc"}
<h1 class="title">{title}</h1>
{body}
{/exp:weblog:entries}
{exp:email:contact_form user_recipients="false" recipients="[email protected]" charset="utf-8" return="{homepage}"}
<div>
<label for="name">Name:</label>
<input id="name" name="message[]"/>
<label for="phone">Phone:</label>
<input id="phone" name="message[]"/>
<label for="Mobile">Mobile:</label>
<input id="Mobile" name="message[]"/>
<label for="from">* Email:</label>
<input id="from" name="from"/>
<label for="suburb">Suburb:</label>
<input id="suburb" name="message[]"/>
<label for="source">How did you find out about us?</label>
<select id="source" name="message[]">
<option selected="selected">Select »</option>
<option value="INTERNET">Internet</option>
<option value="REFERRAL">Referral</option>
<option value="LOCAL PAPER">Local Paper</option>
<option value="BUSINESSCARD">Business Card</option>
<option value="OTHER">Other</option>
</select>
<label for="details">Other (please give details)</label>
<input name="details" id="message[]"/>
<label for="message">Message</label>
<textarea id="message" name="message[]" rows="10"></textarea>
<input type="hidden" name="subject" value="Contact from Randy More Hole website"/>
<br>
<button type="submit">Submit</button>
</div>
{/exp:email:contact_form}
</div><!-- close right div -->
<div class="clear"></div>
</div>
{embed="embeds/footer"}
</div>
{embed="embeds/google_analytics"}
</body>
</html>