• Resolved John

    (@dsl225)


    Hello,

    Is there a way to use SMTP or PHPMailer() with this wonderful plugin?
    Maybe in conjunction with another plugin?

    I moved server and the new one is blocking PHP’s mail() feature (sendmail) and I would like to keep this plugin running as it’s really simple and straight forward.

    Thanks.

Viewing 8 replies - 31 through 38 (of 38 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi guys,

    FYI, there will be another update this weekend, I’ve added a shortcode attribute to set an auto-reply to sender. Guess most people like to receive a confirmation by mail after submitting a form.

    And John, I’ve only updated the readme on WordPress org afterwards, so the one on your server must be the old version. Check the 2 new FAQ regarding the From header.

    Guido

    Thread Starter John

    (@dsl225)

    Yes, that’s a good idea!

    RE the readme: it doesn’t matter which version I used as most of my amendments are new paragraphs, mainly for the Description and the plugin’s general presentation, as well as the way you list and describe shortcodes. Just have a look at it and you’ll see.

    Plugin Author Guido

    (@guido07111975)

    Hi John,

    Have updated plugin again. Now sender can receive a confirmation by mail.

    Did use some of your textual suggestions, and added info regarding the use of SMTP in my readme.

    Guido

    Thread Starter John

    (@dsl225)

    Great!

    I also found something is missing clarification in FAQ:
    – how to use 2 or more different shortcodes together?

    Let’s say you want to use the 2 following:
    – Change email from admin: [contact email_to="your-email-here"]
    – Activate confirmation to sender: [contact auto_reply="true"]

    How to add them one after the other?
    By using space, comma or else?

    Plugin Author Guido

    (@guido07111975)

    Hi John,

    There some examples in readme with multiple attributes. So I guess an user will understand that this applies to the use of all other attributes as well ??

    Guido

    Thread Starter John

    (@dsl225)

    Ha OK, I didn’t notice them before…

    Hi Guido,
    Saw the latest update (6.6). You have done wonderful job by adding auto reply functionality, ??
    I want to add 2 things here
    1. There is little typo in description of plugin page, where you describe about SMTP

    but when using SMTP there’s less change your form submissions are being marked as spam.

    I think it should be chance (not change)

    2. I saw that now by default you are using [email protected] (where yourdomain.com is domain of website using your plugin). I think you should not use this because by default WordPress add this when there is no From: header in $headers variable passed to the wp_mail() function
    See this code from wordpress at line 318.
    Since wordpress is doing it by default there is no need to repeat the same thing in your code.
    Hope this help

    Plugin Author Guido

    (@guido07111975)

    Hi Sanjay,

    1) thanks, will fix this typo when I update readme/plugin again.
    2) did not thought about this.. but you’re right.

    But.. I think I will not change this anytime soon, because IMO it’s quite difficult to change this easily.. check my code:

    
    $headers .= "From: ".$form_data['form_name']." <".$from.">" . "\r\n";
    

    The “From” header contains a name (name of sender) and an email address. I cannot simply remove the header in case an user doesn’t add the “from_header” attribute (so WordPress uses the default “From” settings), because I will loose control over the “From” name.

    Guido

Viewing 8 replies - 31 through 38 (of 38 total)
  • The topic ‘SMTP?’ is closed to new replies.