18 thoughts on “Code

  1. I’m trying to use your WP Random Header on a stock WP 3 with Twenty Ten, and after I activate the plugin, all that is displayed is this:
    array(13) { [0]=> NULL [1]=> NULL [2]=> NULL [3]=> NULL [4]=> NULL [5]=> NULL [6]=> NULL [7]=> NULL [8]=> NULL [9]=> NULL [10]=> NULL [11]=> NULL [12]=> NULL }

    I can see your plugin working on your site, so is there a secret?

    • Ah, I see the mistake. I have the wrong filename. Thanks for pointing that out. I’m trying to merge that plugin into easy-disable-visual-editor which uses a better approach. I’ll wait to update the readme until I hear back on that process.

  2. At this time I’m writing my own plugin for WordPress which needs to send
    e-mails. The problem is that when I call the wp_mail() function the messeges
    are sent true the standard wordpress function and without using you plugin.

    • Apologies for the slow response, somehow this slipped through my inbox. I’m not sure what’s going on for you. If you send an email through wp_mail(), as far as I know, WP Mail SMTP should be activated. Unless you’re loading WordPress in a special way that bypasses plugins or something.

  3. Hello,

    Thank you for your WP mail smtp plugin. I’m having problems with my contactt 7 plugin on windows hosting and they recomended I used your plugin. I uploaded it and activated it and then could not get access to my wordpress admin page. The following error appeared:

    Fatal error: Cannot redeclare validate_email() (previously declared in D:\Hosting\6171488\html\classiccarpaints\wp-content\plugins\wp-mail-smtp\wp_mail_smtp.php:349) inD:\Hosting\6171488\html\classiccarpaints\wp-content\themes\mazine\tiadmin\tiadmin.php on line 100

    I had to delete the plugin via FTP (as I had no access to the wordpress admin) in order to get access to wordpress again. Tried installing plugin again. Same error. Can you assist please (I am not a developer, just a graphic designer, so please forgive me if I overlooked something)

    • It looks like your theme uses the same function name (validate_email) as this plugin. The plugin checks that the function does not exist first, but it looks like your theme does not. I suggest contacting the theme author. If you can show me the code in that file (themes/mazine/tiadmin/tiadmin.php) I can compare it against the plugin and recommend a way forward.

  4. I’m trying to get your smtp email to work with the contact form included with the WP Boldy Theme – http://wordpress.site5.net/boldy/?page_id=8

    My webhost requires smtp authentication on all emails, so I installed your plugin, but it is not working with the sendmail script included with the theme:

    1)
    {
    $to = preg_replace(“([\r\n])”, “”, hexstr($_POST['receiver']));
    $from = preg_replace(“([\r\n])”, “”, $_POST['email']);
    $subject = “Website contact message from “.$_POST['name'];
    $message = $_POST['comment'];

    $match = “/(bcc:|cc:|content\-type:)/i”;
    if (preg_match($match, $to) ||
    preg_match($match, $from) ||
    preg_match($match, $message)) {
    die(“Header injection detected.”);
    }
    $headers = “From: “.$from.”\r\n”;
    $headers .= “Reply-to: “.$from.”\r\n”;

    if(mail($to, $subject, $message, $headers))
    {
    echo 1; //SUCCESS
    }
    else {
    echo 2; //FAILURE – server failure
    }
    }
    else {
    echo 3; //FAILURE – not valid email

    }
    }else{
    die(“Direct access not allowed!”);
    }

    function hexstr($hexstr) {
    $hexstr = str_replace(‘ ‘, ”, $hexstr);
    $hexstr = str_replace(‘\x’, ”, $hexstr);
    $retstr = pack(‘H*’, $hexstr);
    return $retstr;
    }

    ?>
    Any ideas on how to get this working would be much appreciated!

  5. I download, installed and activated the WP Mail SMTP WordPress plugin. When I click the setting box I get the following message.

    You do not have sufficient permissions to access this page.

    Thank you

  6. Just configured (WP-Mail-SMTP) but notice that emails sent to hotmail or outlook is not being received (not in junk mail) works in Yahoo going to check gmail. A solution would appreciated.
    Kind Regards
    Roy

  7. I have set the plugin as advised on your site, test email works great but when sending an email via the contact form on the site I am presented with this warning.

    Warning: mail() [function.mail]: SMTP server response: 530 SMTP authentication is required. in C:\HostingSpaces\sausal1\etgschool.com\wwwroot\wp-content\themes\elogix\page-contact.php on line 53

    please can you advise

    Many thanks

    Ian

    • Apologies for the slow response, missed your comment. Guessing you need to supply a username and password. Are you doing that?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>