Viewing 4 replies - 1 through 4 (of 4 total)
  • chaoti

    (@chaoti)

    The file you have to edit is ultimate-member/core/um-mail.php ??

    Thread Starter AlexS

    (@alexarium)

    Thank you chaoti

    I opened the file and found the line in the code

    $this->attachments = null;

    Do I simply replace “null” with the absolute path to the file on my server?
    Or is there a special syntax this needs to be written with?

    Apologies for my ignorance…

    chaoti

    (@chaoti)

    You have to do something like this:

    $this->attachments = array( WP_CONTENT_DIR . '/path/to/my/file.pdf' );

    But you must know that this will send the file with all UM emails.

    Thread Starter AlexS

    (@alexarium)

    Then there’s no point in using it unfortunately…

    Anyway, chaoti, thank you very much for your help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Attach file in confirmation email’ is closed to new replies.