• Resolved danmeyer

    (@danmeyer)


    Hi there.

    Can you please tell me what i do wrong here?

    $key = apply_filters(‘openpgp_key’, get_option(‘my_plugin_pgp_public_key’));
    $encryption_key = apply_filters(‘openpgp_key’, $key);
    $encrypted_post = apply_filters(‘openpgp_encrypt’, $body, $encryption_key);
    $headers = ‘Fra: ‘.$name.’ <‘.$emailTo.’>’ . “\r\n” . ‘Reply-To: ‘ . $email;
    wp_mail($emailTo, $subject, $encrypted_post, $headers);

    I can echo it out and see the encryptet, but it don’t send and the page goes all white.

    Regards Dan

    • This topic was modified 7 years, 7 months ago by danmeyer.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter danmeyer

    (@danmeyer)

    PS. It works fine with testmail from user.

    Plugin Author Meitar

    (@meitar)

    Sorry, you seem to be writing your own plugin. This forum is for WP PGP Encrypted Emails support only (and as you say, it is working fine). I do not provide custom coding help on this forum.

    Thread Starter danmeyer

    (@danmeyer)

    No no Meitar, I just wan’t your plugin to send from my custom form, but I’m a bit lost πŸ™‚

    I have taken the snippet from your frontpage where you use it for crypt post. But I just want it to send it in an email πŸ™‚

    Plugin Author Meitar

    (@meitar)

    If your contact form sends email using the standard WordPress wp_mail() function already, then you don’t need to do anything more to have it work with this plugin. In other words, you shouldn’t need to write any PHP at all.

    Thread Starter danmeyer

    (@danmeyer)

    Oh ok, thank you very much πŸ™‚

    Thread Starter danmeyer

    (@danmeyer)

    When I do that, it just sign the message not encrypt it.

    Plugin Author Meitar

    (@meitar)

    Make sure the message is being sent To an email address associated with a WordPress user account that has a public key, as described in the plugin’s description.

    Thread Starter danmeyer

    (@danmeyer)

    I do, keypair in the plugin option and my public key in my user-settings. NUt it don’t change anything.

    Testmail from user PGP signed, the same with from the form πŸ™

    Plugin Author Meitar

    (@meitar)

    It works for others so write a good bug report if you are convinced the issue is with the plugin and not your use of it. Β―\_(ツ)_/Β―

    Thread Starter danmeyer

    (@danmeyer)

    No Meitar, I’m sure it’s me doing something wrong, I was just hoping someone could give me a hint πŸ™‚

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Need help to send :/’ is closed to new replies.