Membership Add-On Issue (NEED HELP ASAP)!

By (Deleted User) - June 30, 2010

I keep getting this error after every submission to the signup form:

Mail Error: mail(): SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html.

Called GoDaddy for help and was told it was a form error and that there end was working the way it is suppost to.

So I did some online research and was told to replace the "\n" with "\r\n", and I did that and still am having issues with that error message coming up.

When someone submits the form, it will still store the information on the database BUT it never emails the client like it is suppost to.

I need a solution asap because we are suppost to open this section at our event on the 6th of July!

Hosting Notes:
Website www.loginugpa.com/signup.php
Hosting: Godaddy - Windows
Database: MYPHPADMIN/ MY SQL

THANKS IN ADVANCE!

Re: [theugpa] Membership Add-On Issue (NEED HELP ASAP)!

By gkornbluth - July 1, 2010

Hi theugpa,


Here's a copy of the sendmail section of the membership Plugin that is working for me (not on Godaddy, sorry)

See if there's a difference. Don't forget the "." at the beginning of the lines in the message section.

A lot of what I've learned about implementing the Membership Plugin is in my CMSB Cookbook at http://www.thecmsbcookbook.com

Good luck.

Jerry Kornbluth//
function _websiteLogin_sendSignupMessage() {
global $SETTINGS, $TABLE_PREFIX;

// if using email as username then show that instead
$username = array_key_exists('username', $_REQUEST) ? $_REQUEST['username'] : $_REQUEST['email'];

// send email
$to = $_REQUEST['email'];
$subject = "{$_SERVER['HTTP_HOST']} Membership Application";
$message = "Hi {$_REQUEST['first_name']},\n"
. "\n"
. "Thanks for your interest in becoming a member of {$_SERVER['HTTP_HOST']}.\n"
. "\n"
. "As soon as your membership has been successfully processed you'll receive a confirmation email with a link to our login page.\n"
. "\n"
. "Only your name, web site and social media information, the artistic medium(s) in which you work, and an email address (encrypted from spam bots) will be viewable by the public in our on-line Member Directory.\n"
. "\n"
. "Remember, your application can't be processed if you haven't paid your first year's dues.\n"
. "\n"
. "You can pay your dues on-line using PayPal here:\n"
. "http://www.artistsofpalmbeachcounty.org/paypal3.php\n"
. "\n"
. "Thanks and Welcome!\n"
. "\n"
. "The Membership Committee\n";

$mailResult = @mail($to, $subject, $message, "From: {$SETTINGS['adminEmail']}");
if (!$mailResult) { die("Mail Error: $php_errormsg"); }

}


?>

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [theugpa] Membership Add-On Issue (NEED HELP ASAP)!

By (Deleted User) - July 1, 2010

Thanks for responding! I don't know about the code you show, I tried looking at your code but it is completely different than what I have. I will take a little deeper look into your code and compare my it with my code.

Here is the link to my signup page: www.ugpalogin.com/signup.php

I have not changed anything in the script other than the "\n" to "\r\n"

Any other help or solutions will be great as well!

Re: [theugpa] Membership Add-On Issue (NEED HELP ASAP)!

By Codee - July 16, 2010

Are you able to post the whole page code so it can be reviewed? (unless you've contacted one of the IT programmers directly on this already).

Re: [theugpa] Membership Add-On Issue (NEED HELP ASAP)!

By Jason - August 23, 2010

Hi,

I see in your code that you're entering values into the database before you send the message. Are you still having to add clients manually? Are the values you're entering not making it into the database?

Since it's an SMTP error, it has to be occurring on the server. A 451 error means that one of the servers that the message is passing through is dropping the message. It's unclear as to which server is dropping it, it could be your hosting server, the ISP, or even the destination server. If you try signing up yourself, do you get the email, or do you get an error?

Let me know and we can look into this further.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Membership Add-On Issue (NEED HELP ASAP)!

By (Deleted User) - August 24, 2010

I still have to manually add new clients. When a client uses the membership form, the data goes through onto the database but the client receives an error message and a email is never sent to them. I have attached 3 photos to show what the form does. The first one is just a picture of the form and some fake data. The second photo is what the client views after clicking the submit button. The third photo is a picture of the User Accounts section in the admin area.

I have tried multiple computers on different ISPs, all of which were unsuccessful.
Attachments:

partone.jpg 181K

parttwo.jpg 171K

partthree.jpg 322K

Re: [theugpa] Membership Add-On Issue (NEED HELP ASAP)!

By Jason - August 24, 2010

Hi,

The information is getting into your database, so the only issue is the email being sent. This is a server side issue. I would contact your hosting provider again and ask them to look at your SMTP settings since you're not able to use the php mail() function.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/