I have an issue where during member registration (with the members module), that the emails being sent are not always being sent.
I have edited the registration form so that it sends two emails, the first goes to the user that requested the account, and the 2nd goes to the admin with the activation link.
When I tested this before seemed to work no problem, but now it seems that more than 50% of the time the emails fail to go out.
[edit] To be more specific, currently I can't seem to get the admin to receive any of the emails (although in the past few weeks some were received), it tends to be the one sent to the user is more likely to work than the one sent to the admin, but even then not all the time.
I am uncertain if this has anything to do with my code, my server, or the email servers. Any help with troubleshooting this is appreciated! Getting ready to hand off to the client but I can't with this issue.
Below is my registration form code where it sends the emails:
(I replaced the actual email addresses being used with test@example.com for privacy concerns)
I just realized as i went to copy the code that i have a <cms:if k_success> withing another <cms:if k_success> and am wondering if the duplication here might be messing it up?
I have edited the registration form so that it sends two emails, the first goes to the user that requested the account, and the 2nd goes to the admin with the activation link.
When I tested this before seemed to work no problem, but now it seems that more than 50% of the time the emails fail to go out.
[edit] To be more specific, currently I can't seem to get the admin to receive any of the emails (although in the past few weeks some were received), it tends to be the one sent to the user is more likely to work than the one sent to the admin, but even then not all the time.
I am uncertain if this has anything to do with my code, my server, or the email servers. Any help with troubleshooting this is appreciated! Getting ready to hand off to the client but I can't with this issue.
Below is my registration form code where it sends the emails:
- Code: Select all
<cms:form enctype="multipart/form-data" method='post' anchor='0' class=''>
<cms:if k_success >
<cms:member_process_registration_form
k_page_title = frm_k_page_title
member_phone = frm_member_phone
member_address = frm_member_address
repeat_member_email = frm_repeat_member_email
member_lot_1 = frm_member_lot_1
member_lot_2 = frm_member_lot_2
member_lot_3 = frm_member_lot_3
member_lot_4 = frm_member_lot_4
member_lot_5 = frm_member_lot_5
member_bod_updates = frm_member_bod_updates
member_terms = frm_member_terms
_send_mail = '0'
/>
<cms:if k_success >
<cms:send_mail from='MRTCA <test@example.com>' to=k_member_email subject="<cms:get_custom_field 'new_account_to_user_subject' masterpage='emails.php' />">
<cms:do_shortcodes><cms:get_custom_field 'new_account_to_user' masterpage='emails.php' /></cms:do_shortcodes>
</cms:send_mail>
<cms:send_mail from='MRTCA <test@example.com>' to='test@example.com' subject="<cms:get_custom_field 'new_account_to_admin_subject' masterpage='emails.php' />">
<cms:do_shortcodes><cms:get_custom_field 'new_account_to_admin' masterpage='emails.php' /></cms:do_shortcodes>
</cms:send_mail>
<cms:set_flash name='success_msg' value='1' />
<cms:redirect k_page_link />
</cms:if>
</cms:if>
...
</cms:form>
(I replaced the actual email addresses being used with test@example.com for privacy concerns)
I just realized as i went to copy the code that i have a <cms:if k_success> withing another <cms:if k_success> and am wondering if the duplication here might be messing it up?