Details
-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 4.7.10
-
Fix Version/s: None
-
Component/s: None
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Core Team Funds
Description
Steps to reproduce:
1. configure profile as Standalone Form with email field
2. In advanced settings Choose this option:
What to do upon duplicate match = Update the matching contact
3. In advanced settings Choose this option:
Notify when profile form is submitted? = your@email.com
4. create contact in database: not-your@email.com
5. use form in create mode, enter not-your@email.com
6. note that form is submitted and contact is updated, yet you do not get an email at your@email.com
I followed above steps, Initially I was not able to receive notification mail after submitting profile form as you said.
To tackle this problem i started with mail account settings and it was fine. Then i dig in the code and crosscheck if all the needed variables(header, recipient, mail body etc) are set and have valid values. They all were fine.
In next step i debug mail() function and i noticed that mail() function returning 1 as a acknowledgement, that simply means mail() function did his work, after mail() function execution control goes to respective handler which is mail server in this case. So I concluded that problem is not in the code but in the mail server itself.
To cross check my conclusion, i replaced SMTP settings in
1) Mail Account : Administer -> civiMail -> Mail Accounts
2) From Email Addresses : Administer -> civiMail -> From Email Addresses
with settings provided by a tool called ‘test mail server’ and settings passed that test. So i am quite sure that mail server is causing this bug.