Edit email content with a plugin on a quick campaign - email

I'm having trouble to achieve this. What I would like to do is be able to edit the content (description) of an email entity for a qucik campaign before it's sent (or after it's created).
I've tried many different plugins registration without much luck.
Prevalidate Create Email : this one fires ok but only when a user creates and save the email. when the email is created by the quick campaign it is not triggered.
Prevalidate Send Email : this one fires only for when a single email is sent by a user action and does not allow to modify the description anywa
Prevalidate BackgroundSend Email: this one is correctly triggered when the emails created by a quick campaign are sent, but it does not let me modify the description.
Anyone has done that before ?
I'm using CRM 2011 online.
Any help would be greatly appreciated.
Regards

Found the solution which is to simply use the plugin on Create Email Pre-Operation instead of Pre-Validation like I was doing.
For some reasons, the Pre-Validation doesn't trigger when emails are created in the background.

Related

Sending Emails from different accounts with Google App Script

I have generated the codes with app script in order to send emails automatically if users changed some values in google spreadsheet, which is working fine.
Now I am sharing my google spreadsheet with the app script to two more person (e.g: PersonA, PersonB). Thus, I want whoever changes anything on google spreadsheet will be sending an email under his/her own account. E.g: [All of us needs to edit within the google spreadsheet itself, without going to the "current web app url", (thanks Cameron Roberts for the clarification] if PersonA changes anything, then an email will be sent out under PersonA's account, and an email will be sent out under PersonB's account if PersonB changes anything.
I did something based on the advice from user2970721 and Cameron Roberts. I adjusted "Deploy web App" as "User accessing the web app". e.g:
I also asked PersonA & PersonB to do the same under their accounts and made sure they have triggered the script at least once. e.g:
My issue is that after I have done all these mentioned above, no matter who changes anything on google spreadsheet, emails were always sent out from PersonB's account (my best guess is that I messed up something and PersonB was the last one who triggered the script).
Does the "Project version" need to be different for me, PersonA, and PersonB, or anything else I need to change? Any help would be greatly appreciated!
First, Your project versions do not need to be different for each user.
I'm assuming you are using the On Change event, rather than a web-app. If that's the case, you should disable the WebApp entirely, as it's not needed.
When PersonA creates an On Change trigger, that will be triggered anytime any user (eg PersonA or PersonB) edits the spreadsheet. When it is triggered the code will execute as PersonA , because PersonA created the trigger. As a result, the email will be sent from PersonA's account.
For the scenario you describe, where both PersonA and PersonB have created OnChange triggers and authorised the script. I would expect emails to be sent from both accounts that have created triggers.
To send only one email, from the account that did the edit, I think you would need to do a check to determine if the user who did the edit matches the user under who's authority the script is running. I've never done this before and the docs don't really make it clear if it's possible.
Try checking the User object (Eg e.user) included with the Change event, and see if that email address is reflecting the different users making the edits.
If it is, you can compare it with the effective user and send the email if they match.
https://developers.google.com/apps-script/reference/base/user
https://developers.google.com/apps-script/reference/base/session#getEffectiveUser()
Finally, it might be simpler to just include the address of the person making the edit in your email subject, and just have all the emails send from one account. That way you know who made the edit, but don't need to have every user create a trigger and do all the extra checking.

How to attach sent email with account

I am working on a project where we send emails to user. Now what i want is instead of user logging-in back into our system to reply, if he replies back to that email(whichever email account he got email to). It should automatically be attached back in our system.
Can somebody share their views on how to go on about this? or any suggestions on whats a best way to do this.
Many Thanks
You can do this using the auto-reply function in HmailServer.
Simply go to the administration windows, select an account, select the auto-reply function and set the subject and the body.
If you want to do this programatically, you can use the COM API, it can be used using various programming languages.

How do I trigger a email in Magento when an order is made?

I need solution for the following:
1) Customer places order
2) Store owner recieves email WITHOUT price info (e.g. packing list)
What files do I need to edit (I've read lots of posts and they don't seem to mention the file paths).
Thx
Two possible ways to achieve that:
You can create a model rewrite for the class Mage_Sales_Model_Order and override the function Mage_Sales_Model_Order::sendNewOrderEmail by sending an email to the shop owner using a different template
You can set the configuration entry "Sales Email/Order/Send Order Email Copy To" to nothing (so that the shop owner doesn't get the same email as the customer), and implement an observer catching the event sales_order_place_after. In the observer function you implement sending of an email to the shop owner using a template without the price info.
I know I had a hack for it ... and then I don't have it anymore. I went through everything I could and right now, we're CCing ourselves the customer notification email. As soon as we're done with our site upgrade, I'll have to readd my hack. I'm pretty sure it's in app/core/Mage/Sales/Model/Order.php possibly in public function sendNewOrderEmail()
See this pic:
I remember hard coding in a file after the customer notification was sent, we sent another one to admin but hard coding the template ID for the transactional order notification email to 8. Now, somehow, I'm doing it the "right way" but have no idea how I'm triggering this transactional email to ALSO happen with the customer order notification.
Make your custom module in that module just send a event after "sales_order_save_after".
Catch this event in observer file and put your custum coding on observer.
Read this

which event is trigger,when a mail is sent by magento store?

I want to store all emails information,which is sent by magento store.For this i want to trigger a event,after a email is sent by magento store.there are lot of such action is there like when a email is send to user like forget password,registration,newsletter subscribe,wishlist share etc.
There is one idea in my mind that if there is such event is exist in magento like email_send_after,i can add my custum coding in observer file and get that event is trigger or not.but i don't know is there any event or not?
you might be interested in this but you can always configure the store email section as described here Also check out this blog post - v helpful

Suggest best way to do this approval workflow for share point form library to send email to the user

I have created the Info path form.
Once the new form created i need to send the email to users which the user selected in the people picker field.
Is that possible to do this using Designer,or VS 2010.
Give some reference to do this.
http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/thread/817c0905-be9c-4b69-aee6-1c5043fc835c/