Community Support Forums — WordPress® ( Users Helping Users ) — 2011-10-21T17:51:17-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15555 2011-10-21T17:51:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48541#p48541 <![CDATA[Re: Administrative: New User Notification not sending]]> Statistics: Posted by kvaughn — October 21st, 2011, 5:51 pm


]]>
2011-10-21T17:20:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48535#p48535 <![CDATA[Re: Administrative: New User Notification not sending]]>
Jason Caldwell wrote:
kvaughn wrote:Thanks... the contact form with login information has been submitted.

Thank you. Details received, investigating now.

Thanks for allowing us to reproduce this on your installation. Your installation should be functional now in this regard. I implemented Solution Option #4 on your installation, detailed here:
viewtopic.php?f=4&t=15555&p=48533#p48533

Statistics: Posted by Jason Caldwell — October 21st, 2011, 5:20 pm


]]>
2011-10-21T17:04:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48533#p48533 <![CDATA[Re: Administrative: New User Notification not sending]]> Investigation completed.

OK. It seems that some MTAs ( Mail Transfer Agents ), particularly QMail, do NOT accept the \n character when breaking apart multiline encoded subject lines. The \n newline character is NOT something a site owner adds, and this is NOT something that s2Member does either. It's something that the PHPMailer class, which powers the wp_mail() function does.

This compatibility issue may affect site owners who are hosted by a company that uses QMail to power email functionality on their server, or another MTA who might be picky in this regard. Right now, I'm only aware of QMail. If your hosting company uses QMail, your hosting company may have trouble sending mail processed by wp_mail(), when/if your email subject line is longer than usual ( i.e. requiring the \n newline character to break it apart during transmission of the email, to the recipient ).

For instance, in this investigation, the customized subject line was:
Code:
[Rick’s Neuromuscular Friends Forum] New User Registration
PHPMailer, via the wp_mail() function, will encode this during transmission, to this:
Code:
=?utf-8?Q?[Rick=E2=80=99s_Neuromuscular_Friends_Forum]_New_User_Registrat?=\n
=?utf-8?Q?ion?=
* Please note, this IS correct behavior. However, for whatever reason, some MTAs will NOT accept this, and the delivery of the email message will fail silently behind-the-scene.
See: http://code.google.com/p/textpattern/is ... tail?id=38


So, how can you work around this issue?

This is difficult for s2Member to do, because the code that affects this compatibility issue is NOT within s2Member's source code, and it's also NOT something s2Member can modify within WordPress itself, given technical challenges related to the way it's implemented by PHPMailer.

Until we discover a way for s2Member to dynamically work around this issue, here are some things you can do yourself to overcome this compatibility issue, when/if it's affecting you.


Solution option #1.
Try installing an SMTP mail plugin for WordPress.
See: http://wordpress.org/extend/plugins/wp-mail-smtp/


Or, solution option #2.
When/if you configure s2Member to handle New User Notifications for your installation of WordPress, you have the option of modifying the subject line used in these emails.

Try to reduce the size of your customized subject line; and test again, until your subject line is short enough NOT to require line breaks during email transmission.

How long is too long? Well, this also is difficult to pinpoint, because the length is examined during transmission of the email, and this happens *after* encoding occurs. Thus, depending on the number of special characters in your email message, it could wind up long enough to require newlines during transmission. The best advice I can give, is to avoid the use of special characters all together, and try to keep your subject under 55 chars in length. This should resolve the compatibility issue for you.


Or, solution option #3.
Move to a different hosting provider. Perhaps one that uses the most common MTA, which is Sendmail; or one that uses Exim, which also seems to be perfectly compatible with the PHPMailer class.


Or, solution option #4.
Open this file from your installation of WordPress.
/wp-includes/class-phpmailer.php at line #644 find this function.
Code:
protected function MailSend
Find all occurrences of this code snippet inside the MailSend function:
Code:
$this->EncodeHeader($this->SecureHeader($this->Subject)) 
Wrap all instances with this:
Code:
str_replace("\n", "\r", $this->EncodeHeader($this->SecureHeader($this->Subject))) 
*This forces \r in encoded multiline subjects, instead of the default \n.
In my tests, this fixes the issue on most incompatible MTAs.

Statistics: Posted by Jason Caldwell — October 21st, 2011, 5:04 pm


]]>
2011-10-21T11:24:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48503#p48503 <![CDATA[Re: Administrative: New User Notification not sending]]>
It seems I am running in the same issue. I have the latest versions of s2members and Pro. Any help would be appreciated!
Thanks

Statistics: Posted by bertranddory — October 21st, 2011, 11:24 am


]]>
2011-10-20T18:31:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48444#p48444 <![CDATA[Re: Administrative: New User Notification not sending]]>
kvaughn wrote:
Thanks... the contact form with login information has been submitted.

Thank you. Details received, investigating now.

Statistics: Posted by Jason Caldwell — October 20th, 2011, 6:31 pm


]]>
2011-10-20T18:12:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48438#p48438 <![CDATA[Re: Administrative: New User Notification not sending]]>
If possible, please submit this form with those details for me:
http://www.s2member.com/contact/

Statistics: Posted by Jason Caldwell — October 20th, 2011, 6:12 pm


]]>
2011-10-20T17:19:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48431#p48431 <![CDATA[Re: Administrative: New User Notification not sending]]>
Code:
bbPress
bbPress New Topic Notifications
bbPress Post Toolbar
bbP Signature
Executable PHP widget
GD bbPress Attachments
Global Hide/Remove Admin Bar Plugin
Login Logout
Members List
PHP Execution
s2Member Pro v111017
User Messages
Widget Context
WP Show IDs
WPtouch


The User Messages and Members List plugins were installed long after the email send issue was identified.

Statistics: Posted by kvaughn — October 20th, 2011, 5:19 pm


]]>
2011-10-20T17:13:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48428#p48428 <![CDATA[Re: Administrative: New User Notification not sending]]> info@rrnmf.com to all API notifications. The following email registration alert was sent when there is a new registratn:

( s2Member / API Notification Email ) - Registration

Code:
role: administrator
level: 4
ccaps:
auto_eot_time:
user_first_name: Generic
user_last_name: Admin
user_full_name: Generic Admin
user_email: xxxxxxx@fffenterprisess.com
user_login: xxxx
user_pass: xxxx
user_ip:
user_id: 73
newtopicnotificationemail: 1
credentials:
practice_affiliation:
cv0:
cv1:
cv2:
cv3:
cv4:
cv5:
cv6:
cv7:
cv8:
cv9:


Not sure what I can deduct from this but I thought I should let you know.

I am getting a list of plugins togenter.

Statistics: Posted by kvaughn — October 20th, 2011, 5:13 pm


]]>
2011-10-20T15:08:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48399#p48399 <![CDATA[Re: Administrative: New User Notification not sending]]>
Eduan wrote:
Have you tried something/anything that's in WP Admin -> s2Member -> API / Notifications?

I would recommend this also. Try adding email addresses for some of s2Member's API Notifications, and see if you get those. This may not resolve the issue that you're having, but it may shed light on some other underlying cause, perhaps. Worth a shot.

If nothing gives, please tell me what other plugins, if any, you're running in concert with s2Member. Please list them all, but mostly I'd like to see if you're running any other plugin that may be working in conflict with s2Member; or, if you're running any other plugin that might be altering the default behavior of the wp_mail() function in one way or another.

I would also take a look at your options here. When you configure s2Member to customize these email notifications, s2Member also makes it possible to customize your list of recipients. See: s2Member -> General Options -> Email Configuration -> New User Notification ( for Administrators ).

SNAG-0041.png
Also, if problems persist, please tell us the exact process that a User follows during registration on your site. If you are using other plugins to faciliate registration itself, it's possible that this email event is not getting called upon at all. Again, this is where s2Member's API Notifications via email may work to help you further understand what's actually happening behind-the-scene ( i.e. based on the emails you receive, or don't receive, during your tests ).

Statistics: Posted by Jason Caldwell — October 20th, 2011, 3:08 pm


]]>
2011-10-19T13:48:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48333#p48333 <![CDATA[Re: Administrative: New User Notification not sending]]> Statistics: Posted by kvaughn — October 19th, 2011, 1:48 pm


]]>
2011-10-19T11:04:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48328#p48328 <![CDATA[Re: Administrative: New User Notification not sending]]> Statistics: Posted by kvaughn — October 19th, 2011, 11:04 am


]]>
2011-10-18T17:17:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48306#p48306 <![CDATA[Re: Administrative: New User Notification not sending]]> WP Admin -> s2Member -> API / Notifications?

Statistics: Posted by Eduan — October 18th, 2011, 5:17 pm


]]>
2011-10-18T11:12:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48282#p48282 <![CDATA[Re: Administrative: New User Notification not sending]]> Statistics: Posted by kvaughn — October 18th, 2011, 11:12 am


]]>
2011-10-17T19:17:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48236#p48236 <![CDATA[Re: Administrative: New User Notification not sending]]> Thanks for reporting this important issue.

Please test again with s2Member v111017+, released today.
Changelog here ( there were some additional tweaks for edge cases that may help you )
http://wordpress.org/extend/plugins/s2member/changelog/

If the latest release does not help, please let me know.

Statistics: Posted by Jason Caldwell — October 17th, 2011, 7:17 pm


]]>
2011-10-17T17:00:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=48211#p48211 <![CDATA[Re: Administrative: New User Notification not sending]]> Statistics: Posted by kvaughn — October 17th, 2011, 5:00 pm


]]>
2011-10-17T15:41:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=47973#p47973 <![CDATA[Re: Administrative: New User Notification not sending]]> Statistics: Posted by kvaughn — October 17th, 2011, 3:41 pm


]]>
2011-10-17T15:18:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=46988#p46988 <![CDATA[Re: Administrative: New User Notification not sending]]> Statistics: Posted by Eduan — October 17th, 2011, 3:18 pm


]]>
2011-10-17T14:12:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=46982#p46982 <![CDATA[Re: Administrative: New User Notification not sending]]> viewtopic.php?f=4&t=14957&p=45222&hilit=new+user+email+sent#p45222

Statistics: Posted by Eduan — October 17th, 2011, 2:12 pm


]]>
2011-10-17T14:03:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=46979#p46979 <![CDATA[Re: Administrative: New User Notification not sending]]> Statistics: Posted by kvaughn — October 17th, 2011, 2:03 pm


]]>
2011-10-17T13:56:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=46977#p46977 <![CDATA[Re: Administrative: New User Notification not sending]]> WP Admin -> s2Member -> General Options -> Email Configuration -> New User Email Configuration that it does send the email?

Statistics: Posted by Eduan — October 17th, 2011, 1:56 pm


]]>
2011-10-17T13:51:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=46976#p46976 <![CDATA[Re: Administrative: New User Notification not sending]]> Statistics: Posted by kvaughn — October 17th, 2011, 1:51 pm


]]>
2011-10-17T13:49:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=46975#p46975 <![CDATA[Re: Administrative: New User Notification not sending]]> Statistics: Posted by Eduan — October 17th, 2011, 1:49 pm


]]>
2011-10-17T13:47:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=46974#p46974 <![CDATA[Re: Administrative: New User Notification not sending]]> Statistics: Posted by kvaughn — October 17th, 2011, 1:47 pm


]]>
2011-10-17T13:33:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=46971#p46971 <![CDATA[Re: Administrative: New User Notification not sending]]> Statistics: Posted by Eduan — October 17th, 2011, 1:33 pm


]]>
2011-10-17T13:17:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15555&p=46969#p46969 <![CDATA[Re: Administrative: New User Notification not sending]]> Statistics: Posted by kvaughn — October 17th, 2011, 1:17 pm


]]>