1
0
-1

Hi,

I need to custom "Secure Directory Manager" plugin,

i want to change smtp mail setting [Reset password SMTP for user Forgot Password] to dynamic smtp setting by domain mail recipients.

for sample

if recipient domain mail @domain1.com then smtp setting username mailler@domain1.com

if recipient domain mail @domain2.com then smtp setting username mailler@domain2.com


thanks in advance

Best Regards

Khafidz

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi there,

      By using Hash Variable to detect the current user's email, you can then use Bean Shell Hash Variable to check the user's domain mail and then output the result you need.

      Hope this helps!

      1. Muhammad Khafidz

        Hi Chris,

        Thanks for your idea, but i can't get current email because if you forgot password its mean you are not logged in. Any ideas?

      2. Muhammad Khafidz

        Hi Chris, i have tried your idea, its worked from me.

        thanks Chris

        Best Regards

        Khafidz

      CommentAdd your comment...