I want to schedule email function to run at once in a day, But it showing me an error -"( Mail not sent; to enable sending, set the MAIL_URL environment variable. )", This message is showing only in cron job email function. New registered users are getting emails successfully. Can anyone please help me here why is this happening. Thanks in advance.
Related
I am facing a really strange issue in my WooCommerce shop. For a couple of days the "customer_processing_order" email is not sent to the customer anymore. Even when I trigger manually sending this email inside the order details, nothing happens.
In general email, sending works with SMTP data. When I set the status to "Completed" the email is sent. It is only the order confirmation which is not working.
The email is activated and I also checked error logs. I also installed the Preview Plugin for order emails. When I want to generate the preview, I am getting an error:
CRITICAL Uncaught Error: Call to a member function get_billing_first_name() on null in /usr/www/users/diabroq/diabrothers/wp-content/themes/flatsome-child/woocommerce/emails/customer-completed-order.php:28
I don't know if this is related ... normally it was working.
I also installed WP Email Logs Plugin. No emails are generated, so it is not an email delivery issue. The emails that are working have a successful log entry.
I hope somebody can help me ...
I found the issue. It was related to this plugin: "Email Text Customizer for WooCommerce"
After deactivating it was working again ... oh man!
I'm trying to send an email notification to user after checkout is done and order placed. I've gone through the WooCommerce email settings and set them all accordingly. But for a reason that I don't know of email couldn't be sent. I understand this is not a code related question.
...And this is the warning I get in the log plugin to check whether emails have been sent: " Could not instantiate mail function ".
This happens due to your site haven't been configured with email service provider like Google/SendGrid or SMTP. In my case, I used SMTP with the help of WP Mail SMTP plugin, and it works for me. Example configuration can be found below:
Hope it helps
I'm working on windows Azure ASP.NET integrating Paypal in it.
I succeeded creating the listener page in my website. After "VERIFIED" was received the page updates the database as I requested, but I cant send a mail - I don't get an error message, but the mail isn't in the inbox (I'm using sendGrid).
I can send a mail in other pages of my website.
What is the best way to send a mail from the listener page in asp.net?
Thanks
If the script is running but your email isn't getting sent then there must be some sort of an error happening, or may be a simple logic flaw in your code.
I wrote this article a while back on how to test PayPal IPN. I'd recommend taking a look at it and following the steps. It will help you track down the problem and get it resolved.
I have created a email ID, installed WP-SMTP Plugin, configured it correctly, I even test the Function WP-Mail Function, and found out that it is not working.
I replaced it with a new copy hoping that it would work.
From my testing I have found out the following things:
1) When I use "Send all WordPress emails via SMTP. " I am unable to send test mail.
2) When I use " the PHP mail() function to send emails. " I am able to send test mail but don't receive any thing at the test email ID.
Any one have any solution?
If you are using the Wordpress internal email, I suggest not to do that, for many reasons.
The email, will overload your server.
The email will (probably) not hit the default folder of the receiver email.
If you send many emails (~1000) per day, you can be banned from sending emails.
I suggest you to use special platform for email delivery, that solve the 3 problems above.
Today I need to write a code which can send a automatic mail once in a day after the 80 days of the password changed. I have already checked the condition that password is 80 days old or not and as of now I have just putted the a message to change the password when the user login, but I also want to send him a mail also, so that the user can get the information even if he doesn't logged in the last 10 days before the password expires(because after 90 days the password will be expired).
I know how to send the mail, I know how to check the condition but I don't have any bit of idea that how to send the mail automatically and for this where should I write code so that the mail will be sent regardless the user logged in or not. I am working on the MVC 4 web application. Please help me with this!!
Thank you in Advance!!
You can use Quartz.NET to schedule a daily job. This means that once a day in a specific job you check for passwords that are older than 80 days and send the mails accordingly.
Here's a tutorial on how to do it.
I think you look for "scheduled tasks"
You can try looking here
Best way to run scheduled tasks