Tag Info

New answers tagged

1

Is there a way into making Wordpress think that the Google mail servers are local mail servers so that phpmail can be used properly? Yes, you could use a firewall to create a localhost:465 socket that forwards network traffic to smtp.gmail.com:465 but what on earth for?? Is there an alternative solutions? Yes, and you're half way there with ...


0

You didn't say what the problem is. You certainly should be able to send email using PHP mail or plugins from wordpress. Is it a security problem? Your password being rejected at authentication? Try using OAuth 2.0. https://wordpress.org/plugins/postman-smtp/ Is it a firewall problem? Are all the SMTP ports blocked? Try sending with an HTTPS API like Gmail ...


0

That's your server trying to obfuscate and protect the email address: http://stackoverflow.com/questions/27513190/cf-hash-attribute-and-script-mysteriously-added-to-mailto-links Please speak to your hosting provider.


0

That's because wp_mail expects the attachment to be a filename (filepath) that it can attach and send. You are supplying a string containing the contents of the file: function create_csv() { $filepath = '/path/to/the/file.csv'; $fd = fopen($filepath, 'w'); if($fd === FALSE) { die('Failed to open temporary file'); } $records = ...


0

This line doesn't look right: $campaign_email = get_post_meta( $_GET['pid'], '_campaign_email', true ); Try: $campaign_email = get_post_meta( $post_id, '_campaign_email', true ); EDIT - Typo.


0

Whether a form will display in a particular email clients (ie, Mail for iPhone or Gmail on your desktop) is up to that email client. The way a lot of companies will handle this is to have three choices, say, in the email, each would be a link: Are you a good person? A. Yes B. No C. It's all opinion The links would have parameters like: A. Yes // ...


1

Here's an untested example, how you could modify the email body to your needs: add_filter( 'update_welcome_email', function( $welcome_email, $blog_id, $user_id, $password, $title, $meta ) { // Override the email body: $welcome_email = __( 'Dear User, Your new SITE_NAME site has been successfully set up at: BLOG_URL You can log in ...


0

WordPress uses the wp_mail() function to send mail. It says on the Codex article there that: For this function to work, the settings SMTP and smtp_port (default: 25) need to be set in your php.ini file. Also be sure to check that your contact form is sending the required parameters to the wp_mail() function. The required parameters are included on the ...


0

The new user notification email is created and sent by the function wp_new_user_notification(), found in wp-includes/plugable.php There is no filter hook within this funciton that will allow you to manipulate the output of the email, however you can of course overwrite any pluggable function via a plugin. Note - You can only overwrite pluggable functions ...



Top 50 recent answers are included