The tag has no wiki summary.

learn more… | top users | synonyms

14
votes
3answers
5k views

Why won't wp_mail() let me set the From: header when plain old PHP mail() will?

When I use wp_mail( $to, $subject, $message, $headers ) (with values in place, of course), the email gets sent with a from name and email that isn't set anywhere I can find (not even in PHP or Apache ...
3
votes
2answers
485 views

Mail isn't sent after local site registration

I installed a new WP site on local machine with wamp server. When a new user registers it gets the "registration successful" message but a mail with the password is never sent. Also checked the junk ...
2
votes
1answer
60 views

Storing a password for use with a Wordpress plugin

I'm writing my first Wordpress plugin which will be a newsletter-type plugin. It'll continuously add members who fill out a form to a database table that keeps track of the following: cell ID Time ...
2
votes
1answer
145 views

Writing a plugin that notify my friends of new post that mentions(@) them

For example, I write a new post with content "Today I'm happy, because I finally met the girl that @David told me about bla blah..." Once the post is published, there should be an email notification ...
2
votes
3answers
209 views

Wordpress plugin for mail subscriptions

I'm working on a news site built with Wordpress, and I now want to add a page for subscriptions. This will be paid subscriptions for the printed paper that people can get delivered to their home. My ...
1
vote
1answer
178 views

Should I use the standard wp_mail() function for a premium theme?

I am creating a premium theme that includes a Contact page template. Currently, I am using the wp_mail() function to send the contact email to the administrator-specified email address. Basically, I ...
1
vote
3answers
71 views

How can I send an email in my plugin?

I'm making a plugin that emails the site webmaster when I go to the 404 page. The script checks if the referring link is on our site, and then sends an email to the webmaster. $message = " ...
1
vote
1answer
68 views

other shortcodes in Contact form 7 MAILS

How to use other shortcodes inside Contact form 7- forms? indeed explains how to use other shortcodes inside Contact Form 7 forms. But that doesn't make them usable in the mails that Contact Form 7 ...
0
votes
2answers
263 views

Wordpress refuses to send mail, “…your host may have disabled the mail() function”

I recently implemented a comment area on my website and tried to get the email notification functionality to work. It doesn't seem to want to send email notifications when new comments are made. Just ...
0
votes
1answer
306 views

Can I get an email notification when media is uploaded to the media library?

I have a front end uploader for members only, utilizing this code: <?php function insert_attachment_form($postID) { ?> <form id="file-form" name="file-form" method="POST" action="" ...
0
votes
1answer
60 views

How to check if an email was sent from or originated from a specific plugin?

How to check if an email was sent from or originated from a specific plugin. E.g. I have an SMTP plugin which sends all mail via SMTP however I would like to determine in the SMTP plugin. If an email ...
0
votes
1answer
78 views

Mail not sent when I set HTML headers

$subject = get_the_title(); $sender_name = get_bloginfo('name'); $blog_url = get_bloginfo('url'); $to = 'myemail@mydomainname.com'; $subject = 'the subject'; $message = 'hello'; $headers = ...
0
votes
1answer
14 views

Is it possible to put the add-filter()-hook into a function?

for my plugin with a lot of different features, I want to realize a mail-function to send HTML-mails. For this I have to add a filter-Hook like this: function set_content_type($content_type){ ...
0
votes
2answers
86 views

How can I restrict php mail() to only send me one email after a db error

I'm in the process of customizing dp-error.php. I'm using the mail() function to alert me when there's a database connection problem on my website. The trouble is, what if 1000 people visit my website ...
0
votes
1answer
61 views

Using PHP mail; getting Header warning

I've created a contact form using PHP mail() directly inside a page. It successfully emails te contact information to the recipient. However, it won't advance to the confirmation page identified in ...
0
votes
2answers
59 views

Welcome Mails based on user role

hope you can help me. users can chose between subscriber and editor role on my website. now, i'd like to send a register welcome mail to EDITORS only (WITH a specific) text. subscribers must not ...
0
votes
1answer
209 views

I used the Buddypress Message Compose to send a site wide email to all members wasnt sent tho

I used the Buddypress Message Compose to send a site wide email to all members wasnt sent though. Where would I look to see why messages were not delivered to all site members of my buddypress wp ...
0
votes
1answer
39 views

Wordpress automatically removes emails from content? [closed]

Is there some kind of filter or other function in Wordpress that removes email address’ from the content when creating a new site? I’ve a site with some contact information on them and every time I ...
-3
votes
1answer
71 views

Not receiving mail using wordpress function

I'm not receiving emails when using the following function. Is there another method that works or that I can test? <?php $data = ob_get_clean(); ...