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.

Your email had no valid recipients

March 23, 2009 7:17pm

Subscribe [1]
  • #1 / Mar 23, 2009 7:17pm

    icebreaker

    50 posts

    I am encountering a problem with the email a friend function. I enter a valid address in the “to” field, but receive the message above.

    I am on 1.6.7 and MSM.

    This has previously worked fine. I think the error first appeared after upgrading from 1.6.6 to 1.6.7, but of this a am not completely sure.

  • #2 / Mar 23, 2009 8:03pm

    Greg Aker

    6022 posts

    Greetings icebreaker!

    Can you please post the code you are using for the form?

    -greg

  • #3 / Mar 24, 2009 6:41am

    icebreaker

    50 posts

    {exp:email:tell_a_friend charset="utf-8" allow_html='n'}
    {embed="includes/document_header" title="{exp:weblog:entries weblog="episodes" limit="1" status="Open"}{title}{/exp:weblog:entries}"}
        <body>
        <div id="logo">
        </div>
        <div id="container">
            <div id="header">
                {embed="includes/masthead"}<!-- end #header -->
            </div>
            <div id="sidebar2">
                <h2>Categories</h2>
    <p>            {embed="includes/sidebar"}<br />
            </div><br />
            <!-- end #sidebar2 --><br />
            <div id="mainContent"><br />
              </p><h2>Email this article to a friend</h2>
    <p><div id="tell-about-form"><br />
               <fieldset id="login-form-field"> <br />
            <form id='info_about' method="post" action="http://statcasts.org/"  ></p>
    
    <p><div class='hiddenFields'><br />
    <input type="hidden" name="ACT" value="20" /><br />
    <input type="hidden" name="RET" value="" /><br />
    <input type="hidden" name="URI" value="{title_permalink=episodes/view}" /><br />
    <input type="hidden" name="recipients" value="" /><br />
    <input type="hidden" name="user_recipients" value="y" /><br />
    <input type="hidden" name="charset" value="utf-8" /><br />
    <input type="hidden" name="allow_html" value="y" /><br />
    <input type="hidden" name="redirect" value="" /><br />
    <input type="hidden" name="replyto" value="" /><br />
    <input type="hidden" name="site_id" value="2" /><br />
    </div></p>
    
    <p>                Your Email</p>
    
    <p><br />
                    <input type="text" style="width:80%" class="input" name="from" size="20" value="" maxlength="50" /></p><br />
                    Your Name</p>
    
    <p>                <input type="text" style="width:80%" class="input" name="name" size="20" value="" maxlength="50" /></p><br />
                    To</p>
    
    <p>                <input type="text" style="width:80%"  class="tell-subject"  name="to" size="20" value="" maxlength="50"/><br />
                    Subject</p>
    
    <p>                <input type="text" style="width:80%"  class="tell-subject" name="subject" size="20" value="{title}" maxlength="150"  />                                                                             <br />
                    <textarea name="message" rows="8" cols="37" id="comment" readonly="readonly"></p>
    
    <p>Heres a link to a screencast from Statcasts.org ... <br />
    Title: {title}<br />
    Link: {title_permalink=episodes/view}</textarea></p><br />
                    <input name="submit" class="submit" type='submit' value='Submit' /></p></p>
    
    <p>                </form><br />
                   </fieldset></p>
    
    <p>            </div></p>
    
    <p></div></p>
    
    <p>{/exp:email:tell_a_friend}</p>
    
    <p>        </div><br />
    <br class="clearfloat" ><br />
      <div id="footer"><br />
    {embed="includes/footer"}<br />
    <!-- end #footer --></div><br />
        </div><br />
        <!-- END #content --><br />
        </div><br />
    </html>

  • #4 / Mar 24, 2009 10:08am

    Ingmar

    29245 posts

    Your template seems to be mixing a few things. On the one hand side, you are using {exp✉️tell_a_friend}, on the other side you seem to create the form that this tag should output yourself?  Try using some example code from the docs, see if this works and take it from there.

  • #5 / Mar 25, 2009 1:18pm

    icebreaker

    50 posts

    Thanks Ingmar,

    - that was the info I needed to immediately solve this problem. Everything now works fine. Was pasting in and modifying code from a couple of sources, and not realizing the overlap.

    Regards from icebreaker

  • #6 / Mar 25, 2009 3:52pm

    Ingmar

    29245 posts

    Glad to see you were able to solve this 😊 Please post again if you need additional help.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases