Advanced Search

Results 1 to 5 of 5

Thread: Emails not arriving as required

  1. #1
    Join Date
    Aug 2011
    Location
    Rep Of Ireland
    Posts
    126
    Thanks
    24
    Thanked 3 Times in 1 Post

    Default Emails not arriving as required

    Getting stuck with this email trial.

    This test position has a old eCard script. All works fine except for the test emails that I am sending to my own email address. The test mails and the cards are not being delivered.

    This is the send function

    PHP Code:
    function send_ecard() {
       document.ecard_form.action = "<?php echo $HTTP_SERVER_VARS["PHP_SELF"?>";
       document.ecard_form.target = "_self";
       document.ecard_form["submit_action"].value = "send";
       if (check()) { document.ecard_form.submit(); }
     }
    I have also tried
    PHP Code:
    "<?php echo $_SERVER["PHP_SELF"?>";
    but still do not get delivery of mail!

    Just seeking to ensure that I am inputting correctly at the Form Action

    HTML Code:
    <FORM NAME="ecard_form"  ACTION="#"  METHOD="post">
    as I think this could be causing the problem of the non delivery. Is this likely to be the case?
    Last edited by Webiter; 12-22-2011 at 11:13 PM. Reason: Updated info $_SERVER

  2. #2
    Join Date
    Jul 2010
    Location
    Minnesota
    Posts
    227
    Thanks
    1
    Thanked 17 Times in 17 Posts

    Default

    Did this script work previously, cause as far as I know you can't send an email with javascript. You need to use php in the backend to send the email.

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    11,832
    Thanks
    233
    Thanked 659 Times in 647 Posts

    Default

    You need to determine whether the email is being sent. If it is being sent and not received, there may be some underlying technical problem, or, more likely, it's probably in your spam folder. Automated emails can unfortunately often arrive in the spam folder by default.

    If it's not being sent, then as said above, you'll need to figure out what's going on in the PHP.
    Daniel - Freelance Web Design | <?php?> | <html>| Deutsch | italiano | español | português | català | un peu de français | Ninasoma Kiswahili | 日本語の学生でした。| درست العربية

  4. The Following User Says Thank You to djr33 For This Useful Post:

    Webiter (01-06-2012)

  5. #4
    Join Date
    Aug 2011
    Location
    Rep Of Ireland
    Posts
    126
    Thanks
    24
    Thanked 3 Times in 1 Post

    Default

    You got it djr33.... found them in the spam folder!

  6. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    11,832
    Thanks
    233
    Thanked 659 Times in 647 Posts

    Default

    Unfortunately, automated emails often do that.

    There are a few ways to make that less likely:
    1. Individually, you can always add the email to your "trusted" list or whatever your email program has. But that won't help anyone else who is receiving the email (for the first time, for example). So maybe it's best to leave it as-is so you see what everyone else will see.

    2. Make them into "real" emails. Right now they look like uninteresting automated emails. That's what they are:
    A) Add real content to them (if the body is empty or short, it's probably not a real message) so that any program that analyzes the text sees "real" sentences, etc. That's why many spam messages now have oddly phrased stories-- they look real enough that they aren't easily filtered.
    B) Add a "from" and a "reply-to" address. Add other headers if you can. That way it will be a real message, as if it were sent from your account.
    C) Give it a good title. That can be important.

    That will probably help. It won't entirely fix it, but it will be better...
    Daniel - Freelance Web Design | <?php?> | <html>| Deutsch | italiano | español | português | català | un peu de français | Ninasoma Kiswahili | 日本語の学生でした。| درست العربية

  7. The Following User Says Thank You to djr33 For This Useful Post:

    Webiter (01-07-2012)

Tags for this Thread

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
  •