Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 48

Thread: User registration problems

  1. #21
    Junior Member daveryder's Avatar
    Join Date
    Mar 2010
    Location
    Catawissa, MO
    Posts
    8
    Thanks
    5
    Thanked 2 Times in 2 Posts

    Default

    Ok I wonder if it could be similar to this wordpress bbc prob: http://bbpress.org/forums/topic/regi...sent-new-issue

    specifically:
    I've got the same problem, but with another host(Hosteurope).
    I solved it after I've asked my hoster. When sending an Email from my host, I need to add a -f parameter to the sendmail function.
    Doing so in BBPress you will need to add a valid (and known for the server) Email-adress in line 90 of your bbpress-root-folder/bb-includes/backpress/class.mailer.php file from

    /**
    * Sets the Sender email (Return-Path) of the message. If not empty,
    * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.
    * @var string
    */
    var $Sender = '';

    to

    var $Sender = 'from@your-domain.com';

    I hope this might help some of you
    so in /libs/EmailFunctions.php change the empty from var to "from@your-domain.com", making sure it is an actual email account set up on the sending server, if that makes sense?

    i dunno, i may be way off base here
    Get free music at my website (hey u can't write code ALL of the time ) Follow me on Twitter - I'll follow back, if I don't @ me and tell me what a big fat jerk I am lol

  2. #22
    Junior Member gibby's Avatar
    Join Date
    Mar 2010
    Location
    Shanghai
    Posts
    29
    Thanks
    10
    Thanked 3 Times in 3 Posts

    Default

    Hi

    Did anyone with this problem manage to fix it ?

    Thanks
    Happy that my eyes open every morning

  3. #23
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,858
    Blog Entries
    88
    Thanks
    482
    Thanked 806 Times in 526 Posts

    Default

    Quote Originally Posted by daveryder View Post
    so in /libs/EmailFunctions.php change the empty from var to "from@your-domain.com", making sure it is an actual email account set up on the sending server, if that makes sense?
    It would be an excellent suggestion, but $from is never empty. It gets set on line 64:

    PHP Code:
    if (!$this->from) { $this->from SITE_NAME ' <' SITE_EMAIL '>'; } 
    I suppose you could try changing that to simply:

    PHP Code:
    if (!$this->from) { $this->from SITE_EMAIL; } 
    I doubt it will make any difference, but it's worth a shot.

    I'm still curious to know whether this problem is only with the registration email or all emails.

  4. #24
    Junior Member daveryder's Avatar
    Join Date
    Mar 2010
    Location
    Catawissa, MO
    Posts
    8
    Thanks
    5
    Thanked 2 Times in 2 Posts

    Default

    I'm starting to believe the problem is on host provider, some of them turn off sendmail for some stupid reason.

    Why else would it work fine for some and not others? The ONLY difference is we have different hosts! Is it affecting allL emails sent from site, like from your contact form for instance? Then you almost know for sure it's a hosting sendmail issue.
    Get free music at my website (hey u can't write code ALL of the time ) Follow me on Twitter - I'll follow back, if I don't @ me and tell me what a big fat jerk I am lol

  5. Thanked by:


  6. #25
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,858
    Blog Entries
    88
    Thanks
    482
    Thanked 806 Times in 526 Posts

    Default

    Quote Originally Posted by gibby View Post
    I tried the PHP's Mail() Function using a separate page and it worked fine on my server
    Gibby, can you paste or link to the exact code you used to successfully send an email from your server? I'd like to see the difference between what works and what doesn't. Thanks.

  7. #26
    Junior Member gibby's Avatar
    Join Date
    Mar 2010
    Location
    Shanghai
    Posts
    29
    Thanks
    10
    Thanked 3 Times in 3 Posts

    Default

    Hi Nick

    I copied this code to my server and it works fine....

    <?

    // ---------------- SEND MAIL FORM ----------------

    // send e-mail to ...
    $to="name@mail.com";

    // Your subject
    $subject="Test";

    // From
    $header="from: your name <name@mail.com>";

    // Your message
    $message="Hello \r\n";
    $message.="This is test\r\n";
    $message.="Test again ";

    // send email
    $sentmail = mail($to,$subject,$message,$header);

    // if your email succesfully sent
    if($sentmail){
    echo "Email Has Been Sent .";
    }
    else {
    echo "Cannot Send Email ";
    }

    ?>
    Happy that my eyes open every morning

  8. Thanked by:


  9. #27
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,858
    Blog Entries
    88
    Thanks
    482
    Thanked 806 Times in 526 Posts

    Default

    Open libs/EmailFunctions.php and find the "switch" statement on line 77. Immediately before it, add $this->type = 'log';

    PHP Code:
            $this->type 'log';
            switch (
    $this->type)
            {
                case 
    'log'
    Instead of trying to send an email, it will write the email contents to an email_log.php file which you should be able to view from Admin -> Maintenance -> Debug.

    Once you can see the email in the error log, you can start investigating its parts.

    The defaults are something like this:

    To: My Hotaru Site <admin@example.com>
    Subject: The Subject
    Body: Email Contents
    Headers: "From: My Hotaru Site <admin@example.com>\r\nReply-To: admin@example.com\r\nX-Priority: 3\r\n"
    Return Path: -f admin@example.com

    Gibby, in your case, remove the $this->type = 'log'; which we just added as a test and try hard-coding your line 102, i.e. Change:

    PHP Code:
    mail($this->to$this->subject$this->body$this->headers$return_path); 
    to:

    PHP Code:
    $message="Hello \r\n";
    $message.="This is test\r\n";
    $message.="Test again ";
    mail("name@mail.com""Test"$message"from: your name <name@mail.com>"); 
    That should attempt to send exactly the same email as your test case. If it works, start reverting to the Hotaru original one bit at a time

  10. Thanked by:


  11. #28
    Senior Member
    Join Date
    Sep 2009
    Posts
    429
    Thanks
    159
    Thanked 54 Times in 41 Posts

    Default

    Thanks dave, thanks Nick.

    Dave, I haven't tried resorting the order of the plugins. But will give it a shot.
    Nick, I haven't tried your method. I have set the SENT MAIL: in the admin to XYZ@gmail.com. Here's a screen shot from my XYZ@gmail.com inbox. Seems the new mail that is supposed to be sent to the new users is sent back to my XYZ@gmail.com inbox with a Returned mail: see transcript for details error.

    /sorry about the huge image


    ** giant image removed (too big and contains sensitive info) **
    Last edited by Nick; 03-28-2010 at 04:28 AM. Reason: removed image

  12. #29
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,858
    Blog Entries
    88
    Thanks
    482
    Thanked 806 Times in 526 Posts

    Default

    I've saved a copy of that image, but removed it from the post.

    Good to see that it is at least trying to send an email, but I think the answer lies in the headers of the email that was sent, not in the returned "Mail Delivery Subsystem" email.

  13. #30
    Junior Member alfbrand's Avatar
    Join Date
    Dec 2009
    Location
    Bay Area, CA
    Posts
    17
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default

    Does Hotaru use sendmail to send this email? I was poking around in my host's knowledgebase and came across this:

    Problem:

    SMTP fails when sending through mailing list, but no error logs are generated.

    Solution:

    Due to recent changes in our firewall, we do not support the origination of an MTA from our server. This change was brought about to eliminate the possibility of spam originating from our servers across port 25. Alternatively, you can use sendmail, located at /usr/sbin/sendmail, with the mailing list script.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Installation problems
    By rolfdohrmann in forum Installation and Upgrading
    Replies: 25
    Last Post: 07-02-2010, 02:43 AM
  2. Upgrade Problems 1.0.5 to 1.1
    By angolanmade in forum Installation and Upgrading
    Replies: 5
    Last Post: 02-23-2010, 04:49 AM
  3. Registration and Post Submission Problems
    By runnertalk in forum How-To and Troubleshooting
    Replies: 4
    Last Post: 09-30-2009, 12:00 AM

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
  •