+ Reply to Thread
Results 1 to 8 of 8

Thread: specified 'SendMailFOption', no email add. to use?

  1. #1
    Join Date
    Nov 2004
    Posts
    7

    Default specified 'SendMailFOption', no email add. to use?

    Hello Mr. Russell. I have formmail installed and it works correctly, that is, it sends me the email. I also have had luck getting a good_url and a bad_url and bad_template to work. I also used your suggestion for an email conditional check. I also had to use a <input type="hidden" name="mail_options" value="SendMailFOption" /> because the email would not send to me without this option.

    My question; I just activated DEF_Alert in the formmail.php file and i get an error sent to me like this:
    The following error occurred in FormMail:

    You've specified 'SendMailFOption', but there's no email address to use


    Heres whats in my form :
    <!-- STEP 1: Put the full URL to formmail.php on your website in the 'action' value. -->
    <form method="post" action="http://www.advancedccc.com/formmail.php" name="SampleForm">
    <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
    <!-- STEP 2: Put your email address in the 'recipients' value.
    Note that you also have to allow this email address in the
    $TARGET_EMAIL setting within formmail.php!
    -->
    <input type="hidden" name="recipients" value="me@my.com" />
    <!-- STEP 3: Specify required fields in the 'required' value -->
    <input name="required" type="hidden" value="realname,address,city,state,zip,email,phone" />
    <!-- STEP 4: Put your subject line in the 'subject' value. -->
    <input type="hidden" name="subject" value="An Order for Advancedccc" />
    <input type="hidden" name="mail_options" value="SendMailFOption" />
    <input type="hidden" name="good_url" value="http://www.advancedccc.com/thank you.html" />
    <input type="hidden" name="conditions" value=":#
    #TEST#email ~ /^[a-z0-9_.]+@[a-z0-9_]+\.([a-z0-9_.]+)*[a-z0-9_.]$/i #
    Please enter a valid email address.#">
    <input type="hidden" name="bad_url" value="http://www.advancedccc.com/fmbadhandler.php" />
    <input type="hidden" name="bad_template" value="sampleerrortemplate.html" />

    Thanks Mr. Russell in advance, steve.

  2. #2
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: specified 'SendMailFOption', no email add. to use?

    Hi Steve,

    This can happen in two situations:
    1. The form is submitted without an email address in the "email" field.
    2. FormMail is trying to send you an alert message and you've got $FROM_USER set to "NONE".
    The first situation cannot be helped unless you require the email address on the form. The second situation is easily solved by setting $FROM_USER to your own email address.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Nov 2004
    Posts
    7

    Default Re: specified 'SendMailFOption', no email add. to use?

    Boy do I feel stupid! May i ask? Where is "FROM_USER"?
    thanks Mr. Robinson.

  4. #4
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: specified 'SendMailFOption', no email add. to use?

    Hi,

    $FROM_USER is near line 1365 in formmail.php.

    If you haven't changed that, then it's probably the first situation - the form not providing "email" - that's causing the problem.

    FormMail defaults the $FROM_USER to "FormMail@SERVER" for alert messages, so you probably wouldn't get that message in that situation.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    Nov 2004
    Posts
    7

    Default Re: specified 'SendMailFOption', no email add. to use?

    I did what you suggested.(set from_user to me@cfl.rr.com).
    I am getting a similar message:
    To: me@cfl.rr.com

    From: me@cfl.rr.com

    The following error occurred in FormMail:

    You've specified 'SendMailFOption', but there's no email address to use


    The only thing that changed was the "to" or "from" above. I cant remember which, but i know they were not the same before.
    Thanks Mr. robinson, steve

  6. #6
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: specified 'SendMailFOption', no email add. to use?

    Hi,

    Sorry, I've given you a bit of incorrect information....

    First, set $FROM_USER back the way it was originally. That's only used for alerts, and if alerts were working before you should leave it the way it was.

    The default looks like this:

    PHP Code:
     //
     // ** OPTIONAL **
     // Set FROM_USER to the email address that will be the sender
     // of alert/error messages.  If not specified (comment it out),
     // formmail.php uses "FormMail@SERVER" where SERVER is determined
     // from your web server. If set to "NONE", then no sender is specified.
     //
    //$FROM_USER = "formmail@yourhost.com";  // this line is commented out, by default
    //$FROM_USER = "NONE";      // use this to show no sender 
    The reason you're getting the message about SendMailFOption is that if you specify this, you also need to specify FromAddr.

    Here's what I recommend:
    Code:
    <input type="hidden" name="mail_options"
    value="SendMailFOption,FromAddr=me@cfl.rr.com" />
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  7. #7
    Join Date
    Nov 2004
    Posts
    7

    Default Re: specified 'SendMailFOption', no email add. to use?

    Mr. Robinson, when i was a youngster i thought being stupid and reckless was fashionable. Ive changed as Ive gotten older because of people like you. I have even quit drinking and am clean these days and have all my sences back. I now truelly enjoy learning and am drawn to forums like yours to quench my thirst for more thought power. You and your associates at tectite.com are one of my catalists for further learning adventures...thanks alot!!
    By the way, it worked! Happy hollidays if i dont write back before.....steve

    One last question? How do people like you get so intellgent? I find it hard to know and learn what seems to come naturally to people like you.
    Last edited by djgotee; 03-Dec-2004 at 01:37 AM.

  8. #8
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: specified 'SendMailFOption', no email add. to use?

    Hi,

    One last question? How do people like you get so intellgent? I find it hard to know and learn what seems to come naturally to people like you.
    I have even quit drinking and am clean these days and have all my sences back.
    When I was young all I did was write computer software; no parties, no drinking, no fun (though writing software was fun). What a boring life. (BTW, this is before Microsoft or PCs existed.)

    Now I have a bit more fun.

    Intelligence comes in many forms but whoever happens to have some can thank chance alone. The rest is just hard work....
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. CSV File - Automatically add all form fields
    By soulhost in forum Community Support
    Replies: 1
    Last Post: 08-Nov-2006, 10:39 PM
  2. Add form fields
    By Ogre in forum Community Support
    Replies: 3
    Last Post: 16-Oct-2006, 10:24 AM
  3. Replies: 1
    Last Post: 02-Aug-2006, 04:32 AM
  4. How do I add a subject to my mail?
    By liquidlight in forum FormMailEncoder/Decoder
    Replies: 4
    Last Post: 27-Apr-2006, 01:36 AM
  5. auto add feature
    By jamesh3 in forum FormMail Subscription Support
    Replies: 1
    Last Post: 17-Jun-2004, 07:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts