Re-Send Activation Email
Dear Adobe or Anyone who can help,
Why did Adobe not create a re-send activation email function? I am not a coder more of a learner and I can not find any information to help with an automated reseponse to when people don't receive their activation email.
This means I have to delete them from the DB and let them know they can try again.
This must be such a simple thing to create but no information regarding this to help.
As there is already a Forgot Password there must be a simple way to create a Not got/received Activation Email to re-send it again.
Someone PLEASE help...................................
Cheers,
Joe
This is not a trivial function; there's several steps to take.
At registration, you have to check to make sure the confirmation email was
sent; if not, you have to delete the database entry for that registrant so
he can try again.
If the registrant needs another confirmation email, you have to check to see
if he has even registered; if not, provide a link to the registration page.
If he has registered and confirmed, you have to provide a link to the LOST
PASSWORD function.
If he has registered and not confirmed, then and only then do you send him
another activation/confirmation email.
Similar Messages
-
Email settings problem; error sending activation email
Hi there
Hope everyone is doing well
I am having some problems with my latest user registration pages for my site
I am havving problems sending the
activation email
I have set up my server to relay emails and it works ok I use a linux server and cpenel and outlook expres as my mail client...... I configured an email account in my cpanel called admin @mysite.com I used the automatic configure outlook express to configure outlook
I can send and recieve emails to and from my Yahoo account using my yahoo adress to [email protected] and I can send emails from outlook ex using [email protected] to my yahoo email
I then created the user registration pages for my site with email activation .........
All wen well then I tried to test and got the following error ....
Developer Details:
E-mail couldn't be sent. Error returned: Failed to connect to mail.mysite.com:25 [SMTP: Failed to connect socket: Connection timed out (code: -1, response: )]. (EMAIL_FAILED)
So I looked at my email settings in my control panel........ I have tried every possible combination of information to get it to work and I still get the same error
I have tried
mail server mail.mysite.com This is the same info that is described in the manual settings for my email config in cpanel
port 25
username [email protected] This is the email account I set up in cpanel web mail
password **********
default sender [email protected]
This is the same info that is described in the manual settings for my email config in cpanel
This is the email account I set up in cpanel web mail
I have changed all the information Mannnnnnny times for hours and hours and still no luck
I have tried mail server = mail.mysite.com , my mail server IP address , www.mysite.com . etc etc etc
I have tried to username / paassword the cpanel username & password / my email account username and password ... etc etc etc
nothing works
I can find nothing to help at all on the net
I did read that the settings should be exactly the same as the working settings from outlook express....... so I checked the settings in outlook express, that work, and put all the same settings in my email settings in ADDT control panel .....
And it still does not work
I still get the same error
The strange thing is that I can send and recieve email from outlook using the email [email protected] , using the mail server mail.mysite.com
but when I use exactly the same info in addt I get the error
Is driving me crazy
Can someone please tell me the correct information to fill in on my email settings ......? in detail ........
I have read the help documentation and is no help at all
I am lost
Any help would be great
Have a great day
oh one thing........ any idea why you cannot search withing forum topics anymore ...... ?
CheersSo Mysite is your ISP. They should be able to describe on their website what settings you need.
(1) Mail Server - the name of their mail server ([email protected]?)
(2) Port - you may need to specify the actual port to be used, I know I do.
(3) Username - The user name you use when you log into your Mysite account
(4) Password - The password you use
Both username and password are case sensitive.
This information should be on one of their admin pages for explanation.
Sorry, this may not help you much. -
Help Activation Email (Resend The Email)
Hi All,
I hope someone can help, I am having problems with people not been able to activate their account as email may have gone to spammail and deleted.
I am having to delete people from the database directly to accommodate their request to become a member.
Is there a way to create a "re-send activation email" just like the forgot password?
Can anyone detail how to do this or if there is a script anywhere please let me know where I can get it....
Please, Please can someone help!!!!!!!!!
Cheers,
JoeHi Laurence,
Thats great after a little more playing around and configering everything I got it to work.
A little different from yours but based on mainly the same details and I tested it and it works!!!
I think we should give our selves a pat on the back.
So here its how it's done everyone. Follow these steps
1. Set up a dynamic list/ recordset from the user registration ( or what ever you called it)table
2. Create a filter of the (EmailAddress in table to = "Form Variable" EmailAddress entered in the form on the webpage to update.
Set up an update form with basic details displayed as text (I.e. only the email address)
Change the button name to send activation email or whatever takes your fancy and add a send email from recordset trigger.
in the message box add something like this:
<p>Your username is <strong>{username_member}</strong></p>
<p>To activate your account, click on the following link:<br>
<a href="http://yoursite.com.au/activate.php?{rsReActivateEmail.EmailAddres}=kt_login_id={rs ReActivateEmail.id_user}&kt_login_random={rsReActivateEmail.random}"
target="_blank">http://yoursite.com.au/activate.php?{rsReActivateEmail.EmailAddres}=kt_log in_id={rsReActivateEmail.id_user}&kt_login_random={rsReActivateEmail.random}</a></p>
Breakdown for non coder ("Like Me, but learing fast")
rsReActivateEmail.EmailAddres ='s the email address in table
that then ='s kt_login_id which ='s the users uniqu ID (i.e id_user = 155)
rsReActivateEmail.id_user = id_user from recordset where EmailAddress ='s ID_USER
and
kt_login_random ={rsReActivateEmail.random (from recordset)
BingBashBosh your done..................
When you click on the send activation email it will send an email to the user with a link to activate their account.
I feel like a million pounds and that I may have helped many people who have had this irriating problem.
I have to give much credit to Laurence as I would not have come across how to put it all together without his advise.
A big thankyou to Laurence cheers pal if I thought you were in the UK I would buy you a pint in the pub.
Cheers,
Joe -
how to send active links in email from firefox. Works in IE but not Firefox... Is there a setting to change?
== This happened ==
Every time Firefox opened
== AlwaysCheck with your web mail service provider for help with that issue.
-
How to send active links in email from firefox
how to send active links in email from firefox. Works in IE but not Firefox... Is there a setting to change?
== Operating system ==
Windows 7Check with your web mail service provider for help with that issue.
-
Mail always shows sending two emails in Mail activity
Hi, I have noticed, that even when I send only one email, the Mail activity reports "sending 2 mails". Does anyone know why that is?
Thanks in advance
ralfIt's because you're using an IMAP account, which resides on the server, not on your Mac. So whenever you send an email, it's sent to the server, which then sends it back to your Mac, so the two are always in sync.
-
How can I active send by email button in reader
Send by email button works perfectly in acrobat pro. But it does not work in reader.
How can I active send by email button in reader?
Please Suggest me......Thanks to join in this field.
I have got answer. -
Problems with sending the Job_ID with activity EMAIL from a processflow
Hello everybody,
i have a problem with a simple process flow.
I want to send an EMail that contains in the MESSAGE_BODY the Job_ID from the started workflow. For that reason i wrote a function with a select statement that gives back the number.
Code:
l_owb_id VARCHAR2(20);
BEGIN
select to_char(top_level_execution_audit_id)
into l_owb_id
from ALL_RT_AUDIT_EXECUTIONS
where task_name = 'XYZ'
and created_on like sysdate;
return (l_owb_id);
END;
The function works fine. So i placed it into my workflow. Now i wanted to bind the MESSAGE_BODY from the activity EMAIL with the parameter of the function. But when i click validate it shows following error:
VLD-10042: Parameter MESSAGE_BODY of EMAIL is incorrectly bound. Output of cannot be converted into a constant value.
VLD-10042: Activity MESSAGE_BODY of EMAIL is currently bound to parameter GET_OWB_ID of .Activities must be bound through an intermediate variable
Can anyone help me how to fix that proplem. How can i send the Process ID per activity EMAIL in a Workflow. On the internet i didn't found anything helpful, so any help would be appreiciated.
Kind regards,
DanielYou need to create Variable and then bind the value from your function to that variable and than use that variable as parameter for email MESSAGE_BODY.
So you will have:
Variable: p_id
Return parameter of your function will be bind to p_id and message_body of your email will be bind to p_id. -
How do I send an email with hyperlinks active upon receipt?
How do I send an email with hyperlinks active upon receipt? Currently the hyperlinks are only active once I open the attachment. I want them to arrive active just like they do in the emails I receive from Office Depot et al.
mlaughbaum wrote:
BTW, it is "showing". It's just that the links aren't active.
Sometimes you need to look at it from the perspective of a recepient. Save the message before sending and close it. It will be in your Drafts Folder. Click once on it in the Drafts list so you can view is as the recepient would. (Don't open for edit) The links should be active.
Jerry -
Exporting activity data as a PDF / sending as email from within package
Hello,
We are currently developing an E-learning package which involves the learners building up a check list on an "ipad" as they go through the course, which we would like them to then be able to save at the end of the course so they can review it later.
We've managed to implement a print function, however we really need them to be able to save this data in some way. Does any one know how we could push this data back to the LMS so it can somehow be downloaded and saved (in a good, branded format) or even better how we could make it into a PDF so it can be saved from with in the SCORM package or even in some way emailed.
Any help would be much appreciated.
Samhi
The funnier part is that
u can actually type in the sender's email id irrespective of the mail host used
Like @hotmail.com,@yahoo.com etc.
The receiver will get the mails from the email id that u wrote .
The problem u r facing is becoz of the incorrect mail host server ip address
Try to get in touch with the network admin for the mail server ip address
other way is
get the name it would be like
smtp.domain name .
hope that helps -
My email account has been hacked and my address book has been used to send unsolicitated emails to all my contacts.
First of all
Run windows in safe mode (with network) and change your password on your email account.
Then
run several anti-malware programs (there are many free ones, but not all are trustworthy)
Malwarebyte >> http://www.malwarebytes.org/mbam.php
Microsoft Safety Scanner >> http://www.microsoft.com/security/scanner/en-us/default.aspx
Windows Defender >> http://windows.microsoft.com/en-us/windows/using-defender
Spybot >> http://www.safer-networking.org/en/index.html
Kasperky >> http://www.kaspersky.com/security-scan
Rootkit scanner TDSS-Killer >> http://support.kaspersky.com/5350
And when all is clean, change password for your email account again. -
I have BIS but can't surf, send/receive email, use apps
i have BB Curve 8520. My BIS was running smoothly (sending and receiving emails real time and surfing the net through BIS), until i noticed when i tried to reply to an email that came in, it won't send. i noticed that it's fluctuating. i was able to send the email after a few minutes... then a few minutes later, i received a replied email from my friend, and when i tried to send my reply, i wasn't able to. also, i can't surf using the browser with the "internet browser" as default. i tried using my wifi and then suddenly all my emails started coming in, all emails that were not able to go through hours ago. my big question was why do i need to turn on wifi just to receive emails. but since i had my BIS for 2 months now, i can send and receive emails and surf through BIS itself without turning on the wifi. also, i can't use any of my apps like facebook, twitter, yahoo messenger, etc. They used to work fine with BIS... but now, i have to turn on the wifi connection, so i could log in with them. aren't these supposed to be running through BIS only?
I have GPRS on top, not gprs. my carrier says i have active data plan/BIS. but under Services Status..it says Blackberry Internet Service: Connection: not connected...
so, i wiped out my BB and deleted all third party apps. when this was done, i received emails telling me "Your handheld has been registered with the wireless network" and even got "Activation Server" emails telling me that the emails that i have previously set up are now up and running. so i thought my BB is now ok.. i tried surfing, it was okay. after like about 5 minutes, it was down again. tried sending email but can't... i turned on the wifi and boom! the emails started coming in again.i have the Host Routing Tables and my Service Books in my BB. I have GPRS (not gprs) on top which means i have active BIS. i have registered my HRTs several times... and resending my service books... same thing...
the big mystery is when i turn on the wifi, the emails suddenly go through and i can send emails. i can open apps that used to only run on BIS. this is ok i guess, but i could never do any of these if i'm not connected to wifi.
my sister and i have the same BB... i removed my sim and inserted it to her BB and the BIS worked fine... i was able to surf and use apps.. but when i put my sim back on my phone, the problem still exists. i even used a different sim card that is also subscribed to BIS/data plan, and it still has the same problem... my guess is my carrier is right that my data plan is working ok and that my handheld itself has the problem...
i updated my OS, same problem.. wiped it out... used BBSAK, reinstalled OS... numerous battery pulls... same thing... i can receive the HRTs and service books, but after that can't do anything else like i used to... (send/receive emails, use apps like facebook, twitter, ym, etc., can't surf with internet browser - except when wifi is on everything else work fine even emails and apps)..
i would really appreciate your help guys.. thanks!Hi tarifiq and welcome to the BlackBerry Support Community Forums!
Can you send me a private message with your PIN so I can check this out for you?
Thanks
-CptS
Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)! -
I have BIS but can't send/receive email, surf with internet browser
i have BB Curve 8520. My BIS was running smoothly (sending and receiving emails real time and surfing the net through BIS), until i noticed when i tried to reply to an email that came in, it won't send. i noticed that it's fluctuating. i was able to send the email after a few minutes... then a few minutes later, i received a replied email from my friend, and when i tried to send my reply, i wasn't able to. also, i can't surf using the browser with the "internet browser" as default. i tried using my wifi and then suddenly all my emails started coming in, all emails that were not able to go through hours ago. my big question was why do i need to turn on wifi just to receive emails. but since i had my BIS for 2 months now, i can send and receive emails and surf through BIS itself without turning on the wifi. also, i can't use any of my apps like facebook, twitter, yahoo messenger, etc. They used to work fine with BIS... but now, i have to turn on the wifi connection, so i could log in with them. aren't these supposed to be running through BIS only?
I have GPRS on top, not gprs.
so, i wiped out my BB and deleted all third party apps. when this was done, i received emails telling me "Your handheld has been registered with the wireless network" and even got "Activation Server" emails telling me that the emails that i have previously set up are now up and running. so i thought my BB is now ok.. i tried surfing, it was okay. after like about 5 minutes, it was down again. tried sending email but can't... i turned on the wifi and boom! the emails started coming in again.
i have the Host Routing Tables and my Service Books in my BB. I have GPRS (not gprs) on top which means i have active BIS. i have registered my HRTs several times... and resending my service books... same thing...
-My carrier has not reported any data outage.
- I'm in an area where I've had RIM data services (for months now). It has always been working well. I've never really had any problems with my BIS until 4 days ago when it just suddenly stopped sending/receiving emails, surfing through internet browser, using facebook, twitter, ym apps, etc..
-the big mystery is when i turn on the wifi, the emails suddenly go through and i can send emails. i can open apps that used to only run on BIS. this is ok i guess, but i could never do any of these if i'm not connected to wifi.
-i've read somewhere that it may be some application error or something, so I've wiped out my BB thrice now, deleted all third party apps, everything is clean i guess, but still I end up with the same problem.
-i updated my OS, same problem.. wiped it out... used BBSAK, reinstalled OS... same thing...
can you help me out with this? i have tried battery pull, wipe out and OS reinstallation lots of times but same problem happens...Hi tarifiq and welcome to the BlackBerry Support Community Forums!
Can you send me a private message with your PIN so I can check this out for you?
Thanks
-CptS
Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)! -
Hi,
I am using CRM ONLINE 2013.
How to automate below process?
1. On Approval Of Quotation, Run Report.
2. Generate PDF.
3. Send an Email With PDF as attachment.
As i have gone through many forums for this topic, but creating a plugin code for generating Report PDF is not possible in CRM ONLINE.
So, What is the alternate way to do this..?
Thanks.This is my entire code mentioned below:-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<script type="text/javascript">
if (typeof (SDK) == "undefined")
{ SDK = { __namespace: true }; }
SDK.JScriptRESTDataOperations = {
_context: function () {
if (typeof GetGlobalContext != "undefined")
{ return GetGlobalContext(); }
else {
if (typeof Xrm != "undefined") {
return Xrm.Page.context;
else { return new Error("Context is not available."); }
_getServerUrl: function () {
var serverUrl = this._context().getServerUrl()
if (serverUrl.match(/\/$/)) {
serverUrl = serverUrl.substring(0, serverUrl.length - 1);
return serverUrl;
_ODataPath: function () {
return this._getServerUrl() + "/XRMServices/2011/OrganizationData.svc/";
_errorHandler: function (req) {
return new Error("Error : " +
req.status + ": " +
req.statusText + ": " +
JSON.parse(req.responseText).error.message.value);
_dateReviver: function (key, value) {
var a;
if (typeof value === 'string') {
a = /Date\(([-+]?\d+)\)/.exec(value);
if (a) {
return new Date(parseInt(value.replace("/Date(", "").replace(")/", ""), 10));
return value;
Create: function (object, type, successCallback, errorCallback) {
var req = new XMLHttpRequest();
req.open("POST", this._ODataPath() + type + "Set", true);
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.onreadystatechange = function () {
if (this.readyState == 4 /* complete */) {
if (this.status == 201) {
successCallback(JSON.parse(this.responseText, SDK.JScriptRESTDataOperations._dateReviver).d);
else {
errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
req.send(JSON.stringify(object));
Retrieve: function (id, type, successCallback, errorCallback) {
var req = new XMLHttpRequest();
req.open("GET", this._ODataPath() + type + "Set(guid'" + id + "')", true);
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.onreadystatechange = function () {
if (this.readyState == 4 /* complete */) {
if (this.status == 200) {
successCallback(JSON.parse(this.responseText, SDK.JScriptRESTDataOperations._dateReviver).d);
else {
errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
req.send();
Update: function (id, object, type, successCallback, errorCallback) {
var req = new XMLHttpRequest();
req.open("POST", this._ODataPath() + type + "Set(guid'" + id + "')", true);
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.setRequestHeader("X-HTTP-Method", "MERGE");
req.onreadystatechange = function () {
if (this.readyState == 4 /* complete */) {
if (this.status == 204 || this.status == 1223) {
successCallback();
else {
errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
req.send(JSON.stringify(object));
Delete: function (id, type, successCallback, errorCallback) {
var req = new XMLHttpRequest();
req.open("POST", this._ODataPath() + type + "Set(guid'" + id + "')", true);
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.setRequestHeader("X-HTTP-Method", "DELETE");
req.onreadystatechange = function () {
if (this.readyState == 4 /* complete */) {
if (this.status == 204 || this.status == 1223) {
successCallback();
else {
errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
req.send();
RetrieveMultiple: function (type, filter, successCallback, errorCallback) {
if (filter != null) {
filter = "?" + filter;
else { filter = ""; }
var req = new XMLHttpRequest();
req.open("GET", this._ODataPath() + type + "Set" + filter, true);
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.onreadystatechange = function () {
if (this.readyState == 4 /* complete */) {
if (this.status == 200) {
successCallback(JSON.parse(this.responseText, SDK.JScriptRESTDataOperations._dateReviver).d.results);
else {
errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
req.send();
__namespace: true
</script>
<script type="text/javascript">
//Create Email and link it with Order as Regarding field
var Xrm;
var email = new Object();
var ownerID = "";
var CustomerId = "";
if (window.opener) { Xrm = window.opener.Xrm; }
else if (window.parent) { Xrm = window.parent.Xrm; }
//Get ownerid who send email of quotation to customer
function GetOwnerID() {
var owner = Xrm.Page.getAttribute("ownerid").getValue();
ownerID = owner[0].id;
var ownerName = owner[0].name;
var entityType = owner[0].entityType;
GetToEmailGUID();
//Get customerid who receive email of quotation from owner
function GetToEmailGUID() {
var Customer = Xrm.Page.getAttribute('customerid').getValue();
CustomerId = Customer[0].id;
var CustomerName = Customer[0].name;
var entityType = Customer[0].entityType;
//if CustomerId is type of "Account" then get Primary Contact id of that account
if (entityType == "account") {
var contact = Xrm.Page.getAttribute("customerid").getValue();
if (contact === null) return;
var serverUrl = Xrm.Page.context.getClientUrl();
var oDataSelect = serverUrl + "/XRMServices/2011/OrganizationData.svc/AccountSet(guid'" + contact[0].id + "')?$select=PrimaryContactId";
var req = new XMLHttpRequest();
req.open("GET", oDataSelect, false);
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json;charset=utf-8");
req.onreadystatechange = function () {
if (req.readyState === 4) {
if (req.status === 200) {
var retrieved = JSON.parse(req.responseText).d;
CustomerId = retrieved.PrimaryContactId.Id;
else {
alert(this.statusText);
req.send();
function CreateEmail() {
GetOwnerID();
email.Subject = "Email with Report Attachment";
//Set The current order as the Regarding object
email.RegardingObjectId = {
Id: Xrm.Page.data.entity.getId(), //Get the current entity Id , here OrderId
LogicalName: Xrm.Page.data.entity.getEntityName()//Get the current entity name, here it will be “salesOrder”
//Create Email Activity
SDK.JScriptRESTDataOperations.Create(email, "Email", EmailCallBack, function (error) { alert(error.message); });
// Email Call Back function
function EmailCallBack(result) {
email = result; // Set the email to result to use it later in email attachment for retrieving activity Id
var activityPartyFrom = new Object();
// Set the From party of the ActivityParty to relate an entity with Email From field
activityPartyFrom.PartyId = {
Id: CustomerId, //"79EBDD26-FDBE-E311-8986-D89D6765B238", // id of entity you want to associate this activity with.
LogicalName: "contact"
// Set the "activity" of the ActivityParty
activityPartyFrom.ActivityId = {
Id: result.ActivityId,
LogicalName: "email"
// Now set the participation type that describes the role of the party on the activity).
activityPartyFrom.ParticipationTypeMask = { Value: 2 }; // 2 means ToRecipients
// Create the from ActivityParty for the email
SDK.JScriptRESTDataOperations.Create(activityPartyFrom, "ActivityParty", ActivityPartyFromCallBack, function (error) { alert(error.message); });
var activityPartyTo = new Object();
// Set the From party of the ActivityParty to relate an entity with Email From field
activityPartyTo.PartyId = {
Id: ownerID, //"79EBDD26-FDBE-E311-8986-D89D6765B238", // id of entity you want to associate this activity with.
LogicalName: "systemuser"
// Set the "activity" of the ActivityParty
activityPartyTo.ActivityId = {
Id: result.ActivityId,
LogicalName: "email"
// Now set the participation type that describes the role of the party on the activity).
activityPartyTo.ParticipationTypeMask = { Value: 1 }; // 1 means Sender
// Create the from ActivityParty
SDK.JScriptRESTDataOperations.Create(activityPartyTo, "ActivityParty", ActivityPartyToCallBack, function (error) { alert(error.message); });
//ActivityParty From Callback
function ActivityPartyFromCallBack(result) {
//ActivityParty To Callback
function ActivityPartyToCallBack(result) {
GetReportId('ABM_Infotech_SalesQuote');
//Create attachment for the created email
function CreateEmailAttachment() {
//get reporting session and use the params to convert a report in PDF
var params = getReportingSession();
//Email attachment parameters
var activitymimeattachment = Object();
activitymimeattachment.ObjectId = Object();
activitymimeattachment.ObjectId.LogicalName = "email";
activitymimeattachment.ObjectId.Id = email.ActivityId;
activitymimeattachment.ObjectTypeCode = "email",
activitymimeattachment.Subject = "File Attachment";
activitymimeattachment.Body = encodePdf(params);
activitymimeattachment.FileName = "Report1.pdf";
activitymimeattachment.MimeType = "application/pdf";
//Attachment call
SDK.JScriptRESTDataOperations.Create(activitymimeattachment, "ActivityMimeAttachment", ActivityMimeAttachmentCallBack, function (error) { alert(error.message); });
//ActivityMimeAttachment CallBack function
function ActivityMimeAttachmentCallBack(result) {
var features = "location=no,menubar=no,status=no,toolbar=no,resizable=yes";
var width = "800px";
var height = "600px";
window.open(Xrm.Page.context.getServerUrl() + "main.aspx?etc=" + 4202 + "&pagetype=entityrecord&id=" + email.ActivityId, "_blank", features);
// To open window which works in outlook and IE both
//openStdWin(Xrm.Page.context.getServerUrl() + "main.aspx?etc=" + 4202 + "&pagetype=entityrecord&id=" + email.ActivityId, "_blank", width,
height, features);
//This method will get the reportId based on a report name that will be used in getReportingSession() function
function GetReportId(reportName) {
var oDataSetName = "ReportSet";
var columns = "ReportId";
var filter = "Name eq '" + reportName + "'";
retrieveMultiple(oDataSetName, columns, filter, onSuccess);
function retrieveMultiple(odataSetName, select, filter, successCallback) {
var serverUrl = Xrm.Page.context.getServerUrl();
var ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc";
var odataUri = serverUrl + ODATA_ENDPOINT + "/" + odataSetName + "?";
if (select) {
odataUri += "$select=" + select + "&";
if (filter) {
odataUri += "$filter=" + filter;
$.ajax({
type: "GET",
contentType: "application/json; charset=utf-8",
datatype: "json",
url: odataUri,
beforeSend: function (XMLHttpRequest) {
XMLHttpRequest.setRequestHeader("Accept", "application/json");
success: function (data) {
if (successCallback) {
if (data && data.d && data.d.results) {
successCallback(data.d.results);
else if (data && data.d) {
successCallback(data.d);
else {
successCallback(data);
error: function (XmlHttpRequest, errorThrown) {
if (XmlHttpRequest && XmlHttpRequest.responseText) {
alert("Error while retrieval ; Error – " + XmlHttpRequest.responseText);
function onSuccess(data) {
reportId = data[0].ReportId.replace('{', ").replace('}', ");
CreateEmailAttachment(); // Create Email Attachment
//Gets the report contents
function getReportingSession() {
var pth = Xrm.Page.context.getServerUrl() + "/CRMReports/rsviewer/reportviewer.aspx";
var retrieveEntityReq = new XMLHttpRequest();
var Id = Xrm.Page.data.entity.getId();
var quotationGUID = Id.replace('{', ""); //set this to selected quotation GUID
quotationGUID = quotationGUID.replace('}', "");
var reportName = "ABM_Infotech_SalesQuote"; //set this to the report you are trying to download
var reportID = "751089AA-74B8-E211-B52F-D8D3855B253B"; //set this to the guid of the report you are trying to download
var rptPathString = ""; //set this to the CRMF_Filtered parameter
var strParameterXML = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'><entity name='quote'><all-attributes /><filter type='and'><condition
attribute='quoteid' operator='eq' uitype='quote' value='" + quotationGUID + "' /> </filter></entity></fetch>";
retrieveEntityReq.open("POST", pth, false);
retrieveEntityReq.setRequestHeader("Accept", "*/*");
retrieveEntityReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
rptPathString = "id=%7B" + reportID + "%7D&uniquename=" + Xrm.Page.context.getOrgUniqueName() + "&iscustomreport=true&reportnameonsrs=&reportName="
+
reportName + "&isScheduledReport=false&p:ABMFilteredQuote=" + strParameterXML;
//remove the part starting from &p:salesorderid if your report has no parameters
retrieveEntityReq.send(rptPathString);
var x = retrieveEntityReq.responseText.indexOf("ReportSession=");
var ret = new Array();
ret[0] = retrieveEntityReq.responseText.substr(x + 14, retrieveEntityReq.responseText.indexOf("&", x) - x - 14); //the session id
x = retrieveEntityReq.responseText.indexOf("ControlID=");
ret[1] = retrieveEntityReq.responseText.substr(x + 10, retrieveEntityReq.responseText.indexOf("&", x) - x - 10); //the control id
return ret;
var bdy = new Array();
var bdyLen = 0;
function concat2Bdy(x) {
bdy[bdyLen] = x;
bdyLen++;
function encodePdf(params) {
bdy = new Array();
bdyLen = 0;
var retrieveEntityReq = new XMLHttpRequest();
var pth = Xrm.Page.context.getServerUrl() + "/Reserved.ReportViewerWebControl.axd?ReportSession=" + params[0] +
"&Culture=1033&CultureOverrides=True&UICulture=1033&UICultureOverrides=True&ReportStack=1&ControlID=" + params[1] +
"&OpType=Export&FileName=Public&ContentDisposition=OnlyHtmlInline&Format=PDF";
retrieveEntityReq.open("GET", pth, false);
retrieveEntityReq.setRequestHeader("Accept", "*/*");
retrieveEntityReq.send();
BinaryToArray(retrieveEntityReq.responseBody);
return encode64(bdy);
var StringMaker = function () {
this.parts = [];
this.length = 0;
this.append = function (s) {
this.parts.push(s);
this.length += s.length;
this.prepend = function (s) {
this.parts.unshift(s);
this.length += s.length;
this.toString = function () {
return this.parts.join('');
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
function encode64(input) {
var output = new StringMaker();
var chr1, chr2, chr3;
var enc1, enc2, enc3, enc4;
var i = 0;
while (i < input.length) {
chr1 = input[i++];
chr2 = input[i++];
chr3 = input[i++];
enc1 = chr1 >> 2;
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63;
if (isNaN(chr2)) {
enc3 = enc4 = 64;
} else if (isNaN(chr3)) {
enc4 = 64;
output.append(keyStr.charAt(enc1) + keyStr.charAt(enc2) + keyStr.charAt(enc3) + keyStr.charAt(enc4));
return output.toString();
</script>
<script type="text/vbscript">
Function BinaryToArray(Binary)
Dim i
ReDim byteArray(LenB(Binary))
For i = 1 To LenB(Binary)
byteArray(i-1) = AscB(MidB(Binary, i, 1))
concat2Bdy(AscB(MidB(Binary, i, 1)))
Next
BinaryToArray = byteArray
End Function
</script>
</head>
<body>
<input type="button" onclick="CreateEmail();" value="Attach Report" />
</body>
</html> -
Sending an email to a 250 person address book group.
I am trying to send an email with a picture attached to a group from my address book using Mac Os X mail. It will not send when I click the send button. There are 250 people in the address book group. Is there a limit to the size of group that OS X mail will send to?
when i remove the group and send to 2 individual contacts, it sends right away...help.Not sure that there is one in today's world of spamming - frankly, I'm glad my ISP and/or web email hosting service et al have these in place.
This is what I do for any emails which need to be sent to more than about 10 - 15 people:
I prepare an email with attachments if necessary and have my address book open. I start inserting email addresses in the BCC field until I reach a certain number. I open a new message window, paste in the email, and work on the next 50 or so. I do this until I've enough emails to cover every recipient I want to send this to. I then send one or more emails, wait about 2 hours, send more, etc, etc - you get the idea.
Also, be advised: Comcast has told me that they watch the activity; although they do not have a maximum in my case, if they feel that you could be a spammer by the number of emails and recipients, they may not allow the usual port for you to send email through and you will get errors.
Maybe you are looking for
-
Oracle Lite 10.3.0: how to find out the consumed size of a BLOB column
Hi, we are developing an app that utilizes an Oracle Lite database and so far I have just been unable to find a reasonable way to determine the size of stored binary data. All the "usual" ways we aware of from "main" Oracle just don't seem to work wi
-
Can't see package body in SQL Developer version 2.1.1.64
When I go to the object browser, I can see all of the package specs but can't seem to get to the package body. I can access the package body just fine through Toad, so I don't think it is an Oracle user issue. Help?
-
Adobe 8.1.2 Reader will not open
I have Vista Basic and downloaded/installed 8.1.2 three times and cannot get Reader to open when I click on it. When I click on it, a hourglass appears very briefly and then nothing happens. I have validated that it is point to AdobeRdr32.exe and per
-
Portal 7 and embedded LDAP server
I searched for this on support but nothing much came up on Portal 7, so here goes: We're thinking of moving to LDAP for user authentication. LDAP 2 is supported by the current Portal. What LDAP version is supported by the embedded LDAP server that co
-
Where are java classes stored?
Does anyone where the java classes are physically stored? Is there any mechanism for getting them out? null