+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 22

Thread: Error=Failed to send email [M94]

  1. #1
    Join Date
    Jul 2005
    Posts
    13

    Default Error=Failed to send email [M94]

    I 'think' I have everything set up correctly.

    I used testmail2.php to confirm that I needed the sendmail 'f' set to true
    I used the formmail.php?testalert=1 and that worked
    I have:

    <input type="hidden" name="recipients" value="username(at)domain.co.uk" />

    $TARGET_EMAIL = array("^username(at)domain\.co.uk$");

    but I get Error=Failed to send email [M94] from DEF_ALERT

    What am I doing wrong?

    Tks

    Colin
    Last edited by colinjack; 21-Jul-2005 at 01:15 PM.

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

    Default Re: Error=Failed to send email [M94]

    Hi,

    If you need -f option, then look for this setting in FormMail:

    PHP Code:
    define("SENDMAIL_F_OPTION",false); 
    and set it to true:
    PHP Code:
    define("SENDMAIL_F_OPTION",true); 
    If that still doesn't work, then you need to specify yourself (or some email address that works) as the FromAddr. Put this in your form (or add it to your existing mail_options field):

    Code:
    <input type="hidden" name="mail_options" value="FromAddr=username(at)domain.co.uk" />
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Jul 2005
    Posts
    13

    Default Re: Error=Failed to send email [M94]

    Thanks ... that worked. Didn't realise that if I was using the -f option I needed a FromAddr: (doh!)

    Colin

  4. #4
    Join Date
    Jul 2005
    Posts
    13

    Default Re: Error=Failed to send email [M94]

    Now that I have that working, I need to tidy the email up a bit

    Is there a way to sort the output or best to use templates?

    Thanks

    Colin

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

    Default Re: Error=Failed to send email [M94]

    Hi,

    We didn't implement a sort feature. Templates are more general and more flexible, so that's what you need to use.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  6. #6
    Join Date
    Jul 2005
    Posts
    13

    Default Re: Error=Failed to send email [M94]

    Many thanks ...

  7. #7
    Join Date
    Jul 2005
    Posts
    13

    Default Re: Error=Failed to send email [M94]

    Played around with templates and then started getting Error=Failed to send email [M94] again! Not aware of having changed anything!

    formmail.php:

    $TARGET_EMAIL = array("^enquiries@mikeayresdesign\.co.uk$");

    define("AT_MANGLE","_*_");

    define("SENDMAIL_F_OPTION",true);

    web form:

    <input type="hidden" name="recipients" value="enquiries_*_mikeayresdesign.co.uk" />
    <input type="hidden" name="subject" value="Website request for information">
    <input type="hidden" name="mail_options" value="FromAddr=website_*_mikeayresdesign.co.uk" />
    <input type="hidden" name="good_url" value="http://www.mikeayresdesign.co.uk/pages/contact/thankyou.htm">

    Any ideas - I must have done something dumb, but can't see what. Didn't think I had changed anything!

    Colin

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

    Default Re: Error=Failed to send email [M94]

    Hi,

    Played around with templates and then started getting Error=Failed to send email [M94] again! Not aware of having changed anything!
    I'd wager that your hosting company has changed something on you.

    Do the test email scripts work still?
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  9. #9
    Join Date
    Jul 2005
    Posts
    13

    Default Re: Error=Failed to send email [M94]

    I am my hosting company ... and no I haven't changed anything

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

    Default Re: Error=Failed to send email [M94]

    Hi,

    I am my hosting company
    OK. Then you'll need to look at your PHP configuration, sendmail/exim, log files, etc. to figure out what exactly is not working and why.

    If FormMail asks PHP to send mail using the "mail" function, and it either:
    1. says "OK" and the mail doesn't arrive, or,
    2. it says it failed (this is what you're seeing)
    then you need to diagnose the server problem. #2 is easier to find than #1.

    It is a server problem, not a FormMail problem. Unfortunately, it seems to be intermittent, and they are the difficult ones to solve.
    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. Upgrade failed
    By ptr in forum FormMail Subscription Support
    Replies: 1
    Last Post: 21-Jan-2005, 11:17 PM
  2. formail does not send an email
    By adkinscag in forum FormMail Subscription Support
    Replies: 2
    Last Post: 22-Oct-2004, 09:04 PM
  3. send an email in HTML
    By michecosta in forum FormMail Subscription Support
    Replies: 3
    Last Post: 25-May-2004, 09:18 PM
  4. William,Failed to send email.
    By shama07 in forum FormMail Subscription Support
    Replies: 1
    Last Post: 31-Jan-2004, 04:08 AM
  5. Help trying to set up a form to email and send info to file
    By rridsdale in forum FormMail Subscription Support
    Replies: 1
    Last Post: 14-Jan-2004, 03:38 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