• Resolved theprashant

    (@theprashant)


    Hi,
    How can we send the thank you email for the supporters after they sign the petition?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author SpeakOut!

    (@123host)

    That isn’t possible right now, but I will add it some time in the future.

    Now you can set a redirect URL to a thank you page – you do this in dashboard :: speakout :: petitions :: edit the petition :: on the right hand side.

    Thread Starter theprashant

    (@theprashant)

    Thank you @123host for the clarification. Hope you will add this features soon.

    Thread Starter theprashant

    (@theprashant)

    Hi @123host,
    Is there any way that I can implement this by modifying the code?

    Plugin Author SpeakOut!

    (@123host)

    Yes, of course it can be done in code. But this would not be a trivial task.

    Not only do you have to have it send an email, you have to have the admin area set up so you can activate this feature and then compose an email and save it to the database. There are many things that can go wrong and break the plugin.

    If you do manage to make it work, I would love if you would share the code with me so I can possibly implement it in future versions of the plugin.

    Plugin Author SpeakOut!

    (@123host)

    Actually, another way of doing it would be to have people forced to confirm their email. Then you can add some text to the confirmation email, but that would be a clumsy way of doing it.

    Thread Starter theprashant

    (@theprashant)

    Hi @123host,
    Currently achieved the result by modifying class.mail.php. Receiving the thank you email but its in spam. So if you can do better to add SMTP details so that it directly goes to the inbox.

    Here is the modification,

    $subject1 = “Thank you for your action”;
    $message1 = ‘Your Message to the sender’;
    $headers1 = “From: ABC Organization <[email protected]>\r\n”;
    $headers1 .= “Reply-To: [email protected]\r\n”;
    $headers1 .= “MIME-Version: 1.0\r\n”;
    $headers1 .= “Content-Type: text/html; charset=UTF-8\n”;
    $headers1 .= “Content-Transfer-Encoding: 8bit\n\n”;
    // send the petition email
    self::send( $petition->target_email, $subject, $email_message, $headers );
    self::send( $signature->email, $subject1, $message1, $headers1 );
    }

    Hope you will tweak it for the better one.

    Plugin Author SpeakOut!

    (@123host)

    Nice work!

    It will take some work to create a way for people to edit emails to send. Maybe include an editor like tinyMCE

    Did the email that went to spam have some legitimate looking content? Did the sending domain name match the name of the website or at least a domain that has SPF and DKIM records set up?

    Getting emails like this to get past spam filters can be tricky as they may not look like they have come from a legitimate sender.

    Thread Starter theprashant

    (@theprashant)

    Yes it looks legitimate. Also sending email and name matches according to $headers1 = “From: ABC Organization <[email protected]>\r\n”;

    It will be great if you add tinyMCE editor. Also we can skip the spam atleast for the thank you email because we can provide SMTP credentials.

    Have a look at this. If we can use this we can skip the spam for thank you mail.
    https://github.com/PHPMailer/PHPMailer/blob/master/examples/smtp.phps

    Thread Starter theprashant

    (@theprashant)

    Hi @123host,
    Have you created anything new?

    Plugin Author SpeakOut!

    (@123host)

    @theprashant SpeakOut! is a free plugin and a labour of love. I have moved my server this week and it is taking up a lot of time. I will get to this when I can.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Thank you email for supporter’ is closed to new replies.