Mailchimp PUT always returns a false error so is impossible to check for real errors - mailchimp-api-v3.0

I have coded some PHP scripts to create and send a newsletter using MailChimp API. Below the steps
1) First of all, I update a template with the products I want to include in the newsletter
2)I create a campaign
3)I attach the template content to the campaign
4)I send it
The issue happens when I attach the template content to the campaign.
If I check for errors before to send the campaign (to double check that the template was attached correctly)
I always get a timeout error, even if in reality by ignoring that error the campaign is sent without problems.
Obviously, I can't just ignore the error. I want a reliable system to avoid sending empty emails.

Related

Logic apps against EOL Shared MBx

I am VERY new to Azure Logic apps. Please be gentle - but any links to sources of learning will be appreciated as well.
I have a made a simple logic app at the request of the business that answers every e-mail received in a shared mailbox with an autoreply - instead of the standard "one per customer" action of the normal Exchange Online autoresponder.That part works just fine.
We now need to add an action that can delete without replying for specific senders. Why? We "found" another org that must be set up to do the same thing, thus causing a flood of responses between the two org's Autoresponders. Not surprising, but obviously not good.
I'd like to be able to add the relevant address (and be able to add addresses in the future) to a (parallel?) filter, that would prevent this loop from happening. I've tried my best to use the "Delete Email (V2)" built in function for "Office 365 Outlook" but it always ends in a "Resource Not Found (status code: 400)" error and the email isn't deleted/moved to the deleted items folder.
Any ideas how to either get this to work, or a better way to do this job?
Thanks,
Mule
I have a made a simple logic app at the request of the business that answers every e-mail received in a shared mailbox with an autoreply - instead of the standard "one per customer" action of the normal Exchange Online autoresponder.That part works just fine.
As mentioned in this statement, we understood that you are using When a new email arrives (V3) trigger to give an auto reply.
I've tried my best to use the "Delete Email (V2)" built in function for "Office 365 Outlook" but it always ends in a "Resource Not Found (status code: 400)" error and the email isn't deleted/moved to the deleted items folder.
To make this work you just need to give the message id from the trigger When a new email arrives (V3) and so it deletes the one that has already arrived. You can make required actions in between before deleting the mail.
Considering this to be my logic app
I could able to get the email content to my logic app from outlook in Get email (V2) step and as soon as it completes this action the Delete email (V2) executes and deletes the one that just arrived.
Here is the email that I'm receiving
and the successful run for my logic app
For more information on logic apps you can refer Introduction to Azure Logic Apps - Learn and Azure Logic Apps documentation
REFERENCES:
Office 365 Outlook - Connectors
Ultimately a better answer was to use different variable for the conditional. Using an OR conditional with several archetypical subject lines, as well as embedding "invisible text" in the body of the original response email was the solution, as Logic Apps seems incapable of pulling the Message ID through the steps.
Thanks for your help #swerhakandikonda.

Tags notifications not received

I have set several tags and also provided my mail id so that I can receive mails whenever there is some action related to those tags. It was a week back or so.
But it seems its not working as I haven't received any mails for far.
Is there some extra setting I need to do?

Can outlook (web) notify me that I have email?

I have two email accounts. One of them I use every day. The other one, I have to fire up a VPN, authenticate through a firewall, and then run Outlook Web Access. Triple-yuck.
I'd like to set up a rule that says "Whenever I receive an email to annoyingaccount#company.com, send an email to mydailyaccount#myworkplace.com letting me know to check annoyingaccount." I do not want am not allowed to forward the actual email to mydailyaccount. I simply want a notice that email is waiting for me.
I see options that will let me forward the email or send a text message, but I don't see an option to just send a boilerplate email. Is there something I'm missing, or a "trick" I need to do, or am I just out of luck?
There is not an option like this in the Rules Wizard.
You can forward the email to your account and use rules to:
File the AnnoyingAccount email in a folder (so it is out of the way)
Display an a custom message in your MyDailyAccount email.
Take a look at the the display a specific message in the New Item Alert window option found on the 2nd screen of the Rules Wizard.
Here is a quick How To:
http://www.howto-outlook.com/howto/newmailalert.htm

Is it possible to add a 'pending' subscriber to Mailchimp via the API?

Here's what I'd like to do:
User completes sign up form on my app
My app sends the input data (email address, name, etc) to Mailchimp via the API, but with a status of 'pending'
My app sends an email to the user asking them to confirm their email address (essentially emulating the Mailchimp confirmation email)
User clicks link in confirmation email, which takes them back to a confirmation page in my app
My app updates the user's status in Mailchimp to 'subscribed' via the API
Essentially, I want to emulate Mailchimps standard confirmation process, but sending the emails from my own app.
The part that I don't know how to do (or don't know if it's possible) is the part where I add a new subscriber with a status of 'pending'.
Here's some further info that's not strictly relevant but may be of interest...
Why don't I just use the standard Mailchimp confirmation email?
The confirmation email needs to contain extra info, unique to each user, that Mailchimp will not have access to.
Why don't I collect all the data locally and then send it all to Mailchimp once the user has confirmed their email address?
For reasons I won't go into, the number and type of required fields will be unknown. At the point when the sign up form is displayed, I will request the list of fields from Mailchimp and display the necessary fields. It is possible that, between the time when the user initially completes the form and the time when the user confirms via email, the required fields will have been changed. If I try to submit the previously collected data to Mailchimp after the required fields have been changed, it will cause an error.
So I need to collect and submit all data to Mailchimp at the same time. And then simply 'switch on' that user in Mailchimp once (s)he has confirmed.
I hope I've provided enough info. If not, happy to provide more or clarify any points.
Thanks!
The internal "pending" status is not able to be managed manually like that. You can subscribe them using double opt-in and then later force them onto the "subscribed" list, but you can't stop them from getting MailChimp's own confirmation email.
One possible work-around would be to add an interest group or merge field that is populated by your system once you've confirmed the email address. You'd then create a saved segment for only confirmed users and make sure you only ever send to that segment and never the whole list.
Another possibility, if you use API v3.0 (which is currently only in beta), is to add them to your list as unsubscribed and then switch their status to "subscribed" once you've confirmed them. If you do this, be very careful that you're not re-subscribing users who unsubscribed or you could wind up in trouble.
This workflow is definitely 100% possible in the current (V3) of the API. Just set the "status" field on a member to "pending" and then to "subscribed".

Why is Authorize.net throwing an error when my relay response URL points to a CodeIgniter controller and not otherwise?

I'm not typically a web developer, but I'm a decent enough coder that I felt comfortable accepting a proposal from a friend to develop his brother's small business website. I'm nearly finished and I've been using CodeIgniter, which has been a huge help and was easy to jump into.
They have a handful of products they'd like available for purchase via the site, their preference was Auth.net (which I have no previous experience with), and their host does not support SSL (nearlyfreespeech.net), so I decided that Auth.net's SIM was appropriate. If I test SIM outside of the CI application with a relay response page which simply spits out the available transaction details, everything goes as expected. If I try it with the relay response page set to a CI controller/method which simply echoes a string, Auth.net displays the following 'error':
An error occurred while trying to
report this transaction to the
merchant. An e-mail has been sent to
the merchant informing them of the
error. The following is the result of
the attempt to charge your credit
card.
This transaction has been approved.
It is advisable for you to contact the
merchant to verify that you will
receive the product or service.
My initial thought was that perhaps the rewrite rule I set up to circumvent having to include the index.php front controller was the issue, so I tried including it in the relay response URL with no change. I should also note that the controller in question implements a _remap() method, but the relay response method shouldn't be affected by it as it doesn't match it's regex.
Any insight(s) would be greatly appreciated.
This error occurs when your script doesn't respond within a specified amount of time. It also is displayed if anything other then a 200 success message is returned. So basically there is an error in your relay response URL.
You need to test this first by pulling up the page directly to see if it works and returns the proper header response. Then you can test it by sending a simulated POST response to it and see if it also responds properly. If those work make sure the script isn't taking too long to respond. If it is there probably are ways to optimize the slow page to give the response in the appropriate amount.

Resources