Results 1 to 4 of 4

Thread: Formail works fine... but '?testalert=1' doesn't

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Posts
    13

    Default Formail works fine... but '?testalert=1' doesn't

    Hello

    My form functions fine, including uploads, however the test alert does not- so I cannot know if there is an error when someone uses the form.

    I ran 'testmail.php' and recieved the test email ok. But the testing function built into the main php script doesn't work any more.

    I have recently moved hosts so I don't know if that might have anything to do with it- I have no anti-spam measures set up for that email account so it cannot be getting caught there.

    Does anyone have any ideas? This is my code:

    define("EMAIL_NAME","^[-a-z0-9.]+"); // the '^' is an important security feature!
    /* Help: http://www.tectite.com/fmdoc/target_email.php XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/
    $TARGET_EMAIL = array(EMAIL_NAME."@visualeyes\.co\.uk$");
    /* Help: http://www.tectite.com/fmdoc/def_alert.php XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/
    define("DEF_ALERT","prefix@mydomain.co.uk")


    The XXXXXs are mine- just so I can see these lines easily in the script.
    The line 'prefix@mydomain.co.uk' actually contains my email address.

    I am lost. Any pointers will be appreciated...

    JB

  2. #2
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Formail works fine... but '?testalert=1' doesn't

    most ppl have the opposite problem

    try this setting:
    PHP Code:
    $FROM_USER "NONE"

  3. #3
    Join Date
    Mar 2010
    Posts
    13

    Default Re: Formail works fine... but '?testalert=1' doesn't

    Thanks Crabtree, it worked!

    But how? Does my server have issues with how the FROM header is formed? If anything, I would expect an outgoing email with no FROM header to have problems coming through, rather than one with the correct domain specified in it.

    Anyway, it worked- thanks.

  4. #4
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Formail works fine... but '?testalert=1' doesn't

    ahhhh, the mysteries of servers...

    FormMail sends form results as "From" the "email" field filled in by the user. this can cause probs sometimes, but not for u.

    alerts, however, get sent with a dummy "From". something like "FormMail@yourserver.yourdomain".

    if that's not a valid address (and it usually isn't) then i guessed ur server didn't like sending the email.

    with the setting i suggested, now there's no From line to upset ur server.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Script Works, Email Contains No Information
    By JakeForest in forum FormMail Subscription Support
    Replies: 10
    Last Post: 28-Dec-2005, 10:51 PM
  2. Formail, Turbomailer & mass mailing
    By EPierre in forum FormMail Subscription Support
    Replies: 2
    Last Post: 10-Feb-2005, 09:28 PM
  3. formail does not send an email
    By adkinscag in forum FormMail Subscription Support
    Replies: 2
    Last Post: 22-Oct-2004, 08:04 PM
  4. Everything works except sending
    By Froduss in forum FormMail Subscription Support
    Replies: 5
    Last Post: 06-Jul-2004, 08:49 PM
  5. Formmail works fine, but no e-mail
    By Wiggy in forum FormMail Subscription Support
    Replies: 1
    Last Post: 08-Jan-2004, 04:05 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
  •