• Hello, I am setting up my clients as contributors on my website. I click the box to have their username and password emailed to them. I am wondering if there is a way to also attach a pdf to that email so when I email them they get a pdf of instructions on what they need to do next within my site? Is there a plug in for that or do I need to add some code to the functions.php file?

    Thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    This is done via wp_new_user_notification() in wp-includes/pluggable.php. As the file name implies, this is a pluggable function, meaning you can simply define it in your functions.php file and it will be used instead of the default function. You can start by duplicating the default function, and just add an attachment parameter to the second wp_mail() statement.

    Thread Starter agency212

    (@krisg212)

    Would you be able to post the exact code for that? I am a designer not a coder. I get what you are saying but would not know the code needed for adding an attachment parameter. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Attaching a pdf file to the user's username and password email’ is closed to new replies.