PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-28-2009, 10:03 PM
NinjaDuck's Avatar
VIP Duck
Offline
Pocket PC: RAPHAEL / TOPAZ / RHODIUM
Carrier: Verizon
Location: Omnipresent
 
Join Date: Feb 2009
Posts: 825
Reputation: 6270
NinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
SOLVED: Anyone have a script for changing the outlook signature?

Ok. Periodically I research this and still never find an answer. Everytime you flash your phone, outlook reverts back to the "Sent from Windows Mobile" default sig.

Has anyone figured out how to edit this with script?

Just figured I would try. This has to be bugging many of you as well. I hope it is not stored in PIM.VOL. I do not see anything in the Pocket Outlook Object Model (POOM) documentation: http://msdn.microsoft.com/en-us/library/aa914277.aspx



Never Mind:


I found the code on the windows mobile team blog:

http://blogs.msdn.com/windowsmobile/...-accounts.aspx


#include <atlbase.h>
#include <cemapi.h>

HRESULT AddSignatureToAccount()
{
HRESULT hr;

CComPtr<IMAPITable> ptbl;
CComPtr<IMAPISession> pSession;
CComPtr<IMsgStore> pMsgStore;

// Log onto MAPI
hr = MAPILogonEx(0, NULL, NULL, 0, static_cast<LPMAPISESSION *>(&pSession));

// You can open a different message store here instead of the default
hr = pSession->OpenMsgStore(NULL, 0, NULL, NULL, 0, &pMsgStore);

SPropValue rgspv[3] = { 0 };

rgspv[0].ulPropTag = PR_CE_SIGNATURE; // signature content
rgspv[0].Value.lpszW = L"Sent from my personal Windows Mobile phone";

rgspv[1].ulPropTag = PR_CE_USE_SIGNATURE; // use the signature in newly composed emails
rgspv[1].Value.b = TRUE;

rgspv[2].ulPropTag = PR_CE_USE_SIGNATURE_REPLY_FORWARD; // use signature in replied or forwarded emails
rgspv[2].Value.b = TRUE;

// save the data the properties
hr = pMsgStore->SetProps (3, rgspv, NULL);

// Log off
pSession->Logoff(0, 0, 0);

return hr;
}

Last edited by NinjaDuck; 06-28-2009 at 10:58 PM. Reason: SOLVED
Reply With Quote
This post has been thanked 1 times.
  #2 (permalink)  
Old 06-28-2009, 11:13 PM
NinjaDuck's Avatar
VIP Duck
Offline
Pocket PC: RAPHAEL / TOPAZ / RHODIUM
Carrier: Verizon
Threadstarter
Location: Omnipresent
 
Join Date: Feb 2009
Posts: 825
Reputation: 6270
NinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: SOLVED: Anyone have a script for changing the outlook signature?

Even better. A post about mobile device manager I found had a cooked solution:

http://mobilitydojo.net/2009/02/23/s...-mdm-platform/


Used the attached CAB and the following UC script to make it all happen for you:

<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Software\MobilityDojo.net\DojoSig">
<parm name="Signature" datatype="string" value="{put your sig here}" />
<parm name="UseReplyForward" datatype="integer" value="1" />
<parm name="UseSignature" datatype="integer" value="1" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
Attached Files
File Type: cab DojoSig_10.cab (23.5 KB, 17 views) Click for barcode!
Reply With Quote
This post has been thanked 2 times.
  #3 (permalink)  
Old 06-29-2009, 10:53 AM
NinjaDuck's Avatar
VIP Duck
Offline
Pocket PC: RAPHAEL / TOPAZ / RHODIUM
Carrier: Verizon
Threadstarter
Location: Omnipresent
 
Join Date: Feb 2009
Posts: 825
Reputation: 6270
NinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the communityNinjaDuck is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: SOLVED: Anyone have a script for changing the outlook signature?

Just a little more information:

You will no longer be able to manage the signature using the Menu > Options > Accounts > Signatures interface. Any changes made there will be overwritten by this application.
Reply With Quote
This post has been thanked 1 times.
  #4 (permalink)  
Old 08-05-2009, 07:39 PM
hafez's Avatar
Lurker
Offline
Pocket PC: TP2
Carrier: Verizon
 
Join Date: Jul 2009
Posts: 2
Reputation: 5
hafez is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: SOLVED: Anyone have a script for changing the outlook signature?

Just perfect...a million thanks. Looked all over for something like this. Can't believe no one else had posted a solution given I found so many asking for it.
Reply With Quote
  #5 (permalink)  
Old 08-06-2009, 12:39 AM
shaggylive's Avatar
WP Heavy Rot Sloth
Offline
Pocket PC: Mogul, Touch Pro 1&2, Evo, PhotonQ
Carrier: Sprint
Location: Iowa
 
Join Date: Mar 2007
Posts: 3,466
Reputation: 3362
shaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIPshaggylive is still contributing even after becoming a VIP
Mentioned: 4 Post(s)
Tagged: 0 Thread(s)
Re: SOLVED: Anyone have a script for changing the outlook signature?

another issue with dojo is it's only the outlook/exchange email, not any other accounts.
thanks for the reminder though, I was gettting ready to compare backup options for mail and this would have been forgotten.
__________________
7 windows to rule them all, 7 windows to find them,
7 windows to bring them all, and in the network bind them.
Navizon CM&ResProxyKiller nueRom SuspendResume777
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 11:59 AM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com