BuddyDev

Search

Create a customized email for each subscription

  • Participant
    Level: Initiated
    Posts: 18
    Julien ROUSSEL on #6459

    Hi all !!

    I would like to send a personalized email when a member registers on my site, I am created a code but it does not work, I do not understand why, do you have an idea please ?

    Here is the code:

    http://syframework.alwaysdata.net/3ua

    You can modify it then click on the “save” button and share the new link

  • Participant
    Level: Initiated
    Posts: 18
    Julien ROUSSEL on #6461

    I just found a code:

    https://buddydev.com/buddypress/send-welcome-email-to-users-when-they-activate-their-account-on-wordpress-buddypress-based-social-network/

    It works, but I would like to retrieve my template for formatting the text and I would like my logo displayed at the top of the message, how do we do it ?

    Here is the new code:
    http://syframework.alwaysdata.net/3ud

    Si il y a des personnes qui parle Français je ne suis pas contre.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #6465

    Hi Julien,
    I have cleaned your code a little bit.
    Can you please try this?
    http://pastebin.com/nzNL7zDY

    Is your sites normal email working?

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 18
    Julien ROUSSEL on #6467

    Thanks

    You do not understand, the code works, there is no problem, but I do not like the interface of the mail, but I do not know how to retrieve the template of this code:
    http://syframework.alwaysdata.net/3ua (it does not work)

    The $message variable does not work with this code:
    http://syframework.alwaysdata.net/3ud

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #6471

    Hi,
    try hard coding the email id in $to to check.
    My guess is the $to is empty.

  • Participant
    Level: Initiated
    Posts: 18
    Julien ROUSSEL on #6472

    I did not understand the answer, sorry I do not speak English well (I am French)

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #6485

    No problem. Instead of

    
    $to = $_POST['register_email'];
    

    Please try

    
    
    $to = 'somevalidemail@somesite.com';//
    
    

    Use a valid email there and test if it work or not?

  • Participant
    Level: Initiated
    Posts: 18
    Julien ROUSSEL on #6486

    Hi,

    Thank you for your help, but unfortunately it does not work, here is the code with your modification:

    http://syframework.alwaysdata.net/3up

    This code is located in my functions.php file of my child theme

  • Participant
    Level: Initiated
    Posts: 18
    Julien ROUSSEL on #6487

    I have nothing to say, it works but the email has been sent to the administrator and not to the member who is registered, I would like that it is only the member who registers on my site, there is also Bizarre letters:

    http://hpics.li/1b8fef4

You must be logged in to reply to this topic.

This topic is: not resolved