Need help with "Easy Newsletter"

Discussion in 'Programming' started by Graphix4u, Aug 5, 2009.

  1. #1
    I need help with this script I downloaded

    I got it installed into my Database etc
    I have it intergrated perfectly into my website

    Now thing is, I type out a email inside it and then I add the address to send the newsletter to, it will then say Email sent after I click send

    I then goto my email inbox and it never arrives...

    could someone help me?
    I got it from here
    http://plohni.com/wb/content/php/Free_scripts.php
    scroll down to the 5th script it says "Easy Newsletter"

    I would be glad if someone could help me figure the solution to my problem I am having with it!
     
    Graphix4u, Aug 5, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this first in a separate file: (change the email addresses)

    
    ini_set('display_errors', 1);
    error_reporting(E_ALL);
    
    $to      = 'your@address.com';
    $subject = 'Test';
    $message = 'This is a test';
    $headers = 'From: your@server.com' . "\r\n" .
        'Reply-To: your@server.com' . "\r\n" .
        'X-Mailer: PHP/' . phpversion();
    
    if (!mail($to, $subject, $message, $headers)) {
    echo 'Can\'t send mail.';
    } else {
    echo 'Success';
    }
    PHP:
     
    premiumscripts, Aug 5, 2009 IP
  3. Graphix4u

    Graphix4u Active Member

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    I put that on my server, in a new directory just to test it
    and went to the test.php that I put that info in
    and all that pops up is Success
     
    Graphix4u, Aug 5, 2009 IP
  4. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes, and did you receive an email? (you did change the email address in the code, right?)

    Btw, you should test with at least two different destination addresses.
     
    premiumscripts, Aug 5, 2009 IP
  5. Graphix4u

    Graphix4u Active Member

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #5
    nope no email..
    am i doing something wrong? :)
     
    Graphix4u, Aug 5, 2009 IP
  6. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I would ask your host if you are allowed to send mail because the test script I sent you is the standard way to do it, and if that doesn't work I think your host may be blocking you from sending mail.
     
    premiumscripts, Aug 5, 2009 IP
  7. Graphix4u

    Graphix4u Active Member

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #7
    Okay thanks :)
    I will try a different host
     
    Graphix4u, Aug 5, 2009 IP
  8. yodayoz

    yodayoz Peon

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    check your mail box for the spam folder. Because "From" header in the mail was not specified, some mail services mark the mail as spam.
    if not, check for smtp settings on control panel of your website.
     
    yodayoz, Aug 5, 2009 IP
  9. Graphix4u

    Graphix4u Active Member

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #9
    This has been fixed thanks for all the help guys :)

    Problem was because it was on a free host, so I purchased hosting and it works
     
    Graphix4u, Aug 9, 2009 IP