How to delete the attachment for a particular to address in outlook using c#
I want to remove the attachments from outlook for a specific to address(for example if to address contain gamil.com then i want to delete the attachments) at the mail sending evevt. When we use multiple to address it give problems. I use the below code.
when i use multiple to address (like, xxx.gmail.com,yyy.yahooo.com) it remove the attachments for both mails.
pls help,
Thanks in advance....
string[] toa = mail.To.Split(';');
for (int a = 0; a <= toa.Count(); a++)
if(toa[a].Contains("gmail.com"))
//remove attachments
Hello,
You can handle the
ItemSend event of the Application class which is fired whenever an Microsoft Outlook item is sent, either by the user through an Inspector (before
the inspector is closed, but after the user clicks the Send button) or when the Send method
for an Outlook item, such as MailItem,
is used in a program.
Use the
Recipients property (a Recipients collection
that represents all the recipients for the Outlook item) of the MailItem class instead of the To property.
Use Recipients(index) or
Recipients.Item(index), where index is the name or index number, to return a single Recipient object. The name can be a string representing
the display name, the alias, or the full SMTP e-mail address of the recipient.
The Recipient class provides the
Address property which returns a string representing the e-mail address of the Recipient.
P.S. You can't remove the attachment for a specific email address. You need to send separate emails individually - with an attachment and without. In the ItemSend event handler you can check out the Recipients list and copy the source item
if you need to send the item without an attachment. Remove the "blocked" recipients from the original mail item and set them on the copied one. Then remove the attachment and send the copy.
Similar Messages
-
How to delete the Infoobjects for a particular dimension?
Hi,
How to delete the Infoobjects for a particular dimension?
( when i was trying to delete dimensions it is saying that the dimension contains infoobjects , u can not delete the dimension, what 2 do?)
Thanx in advance,
Ravi.Ravi,
If you want to remove the Infoobject from Dimension then you need to delete the data from the cube and then remove the infoobject from that particular Dimension. I mean delete the assignment for that Infoobject.
Assign Points if it helps..
Incase if you need more help.. Please call me..
Gattu -
How to delete the index for the business object BUS0033
Hi to all experts,
I'm applying note 1349496 the error here is no records with F4 help for the funds center .
solution from the note
Implement the attached program corrections. Then, in the transaction, delete the index for the business object BUS0033, reactivate it, and start the indexing in the indexing mode "Full". The system then displays the data correctly in the F4 search help.
how to do the second part i have already applied the note .any help
-
How to delete the line for 300SAP* in table USR02 in SQL Management studio
Hello
I used to delete the line for 300SAP* in table USR02 in SQL Enterprise Manager. After I could log on with pass.
I wander how to delete it in SQL Management studio. When I expand tdatabase it takes so long time and it is uncontrollableHello,
you have to delete the row by a sql statement.
Open a new query and run a script like this:
use <Your SID DB> -- e.g. use PRD
setuser 'your sid in lowercase' --- e.g. setuser 'prd'
delete from USR02 where MANDT = '300' and BNAME = 'sap*'
go
Run a complete backup before deleting data manually.
Regards
Clas -
How to get the View for a particular Document position?
Hi there,
Does anyone know how to get the "deepest" View that is responsible for rendering a particular Document offset?
I tried looking at modelToView() and some other methods, but I am lost.
Can anyone please help me?
Thanks,
SwatiBart--
To find the table cell of the insertion point, you could use something like:
InterfacePtr<ITextStoryThread> storythreadp(txtModel->QueryStoryThread(startPos + 1));
InterfacePtr<ICellContent> cellcontentp(storythreadp, UseDefaultIID());
if (! cellcontentp) {
// Not a table cell, so see if it's the primary thread (kTextStoryBoss/ITextModel).
InterfacePtr<ITextModel> threadmodelp(storythreadp, UseDefaultIID());
if (threadmodelp) {
// It's the primary thread...
else {
// It's something else with an ITextStoryThread (note, footnote, etc.).
else {
// The insertion point's in a table cell (kTextCellContentBoss).
InterfacePtr<ITableModel> tableModel(cellcontentp->GetTableModel(), UseDefaultIID());
GridID gridID(cellcontentp->GetGridID());
GridAddress gridLoc(cellcontentp->GetGridAddress());
// ...and so on.
Hope this helps get you where you want to go.
Chris Roueche / Freelance Developer -
How to delete the coverages for an ACTIVE service contract ?
Hi ,
I have created coverages for few service lines for a service contract in R12. The contract is in ACTIVE status. If it was in ENTERED state, I could use OKS_COVERAGES_PUB.DELETE_COVERAGE to delete the coverages. But this contract is in ACTIVE status.
Basically I want the lines lse_id=2,3 removed for a particular line (lse_id=1) which were created by using OKS_CONTRACTS_PUB.CREATE_SERVICE_LINE. This contract has a standard coverage and hence there should not be lines with lse_id=2,3 for that particular service line .
Also, I am not able to delete a coverage for an EXPIRED contract.
Please let me know if you need more information on this.Hi 2619098
Did you find a solution for this? I am having the same problem. Please advice.
Regards -
How to find the definintion for a particular implementation
hi
ihave the implementation name so i put this in se19
and after enter it asks for definition which has to be created in se18
if we have some predefined definitons already for that implementation
how to find the particular definiton that is to be usedPut that implementation name in the enhancement name option of SE18 and press display. I hope by implementation you dont mean the Z Include.
If it is Z include then look for where use list of that and pick the Enhancement name from there.
Regards,
Amit -
How to Delete the configuration for Other comapny code in SAP system
Hi,
I am in deleteion of un-wanted company codes from Golden client.
1.I need to delete the profit centers,
2.but it is not accepting in that transaction code,it is giving the error.
Error message: you can not delete the profit center.because profit center accoutning is active.
How can i de-activate the profit center? please help me..
Thanks
prathimaHi,
You can de-activate PCA in OKKP (maintain controllin area).
Regards,
Eli -
How to find the source for an particular nuget
Simple question.... with a GUI or Package Manager Console, how do I tell where a specific package came from?
Thank KevinHi Kevin,
>>Simple question.... with a GUI or Package Manager Console, how do I tell where a specific package came from?
Since this forum is to discuss the VS IDE usage, for package manager console, maybe you could use the command line "get-help NuGet" to see all available NuGet commands.
For example:
Enter Get-Package -ListAvailable at the prompt to see a list of all packages that are available in the selected package source.
If we do not know the name of the package we want to remove, enter
Get-Package at the prompt without any flags to see a list of all of the packages that are currently installed.
Reference:
https://docs.nuget.org/consume/Package-Manager-Console-PowerShell-Reference
https://docs.nuget.org/consume/package-manager-console
A simliar thread:
http://stackoverflow.com/questions/11867660/list-all-available-versions-of-a-specific-package-in-nuget-package-manager-conso
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to delete the alarm "Certificate is near expiration" on multiple WAEs using WAAS CM
Hi,
We are getting "Certificate is near expiration" alarm on more than 200 WAEs . Instead of deleting the expired certificates manually from each device,
how to delete this alarms/certificates on all the devices from WAAS CM ?
Please advice..
Regards,
Ameen.Ameen,
I believe there is script that you could use to address this issue on multiple devices at once.
Please open a TAC case so that TAC Engineer would assist with this.
For a single WAE, it is documented here.
https://supportforums.cisco.com/thread/2010020
Thanks
Anil -
How to delete the order for adding money?
Hey guys
I have tried to add money on my apple ID but i had some problem with my bank.Apparently i reached the limit to order and all of my orders are pending now.
So i can not do anything now.
any idea?Delete button is placed between new and copy button. But as i see in coding it is disabled if the order is persistent, othewise it is hidden. Check the below section of standard coding for this toolbar...
Delete button
ls_button-type = cl_thtmlb_util=>gc_icon_delete.
ls_button-tooltip = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_SALES_ORDER/SALESORDER_DELETE' ). "#EC NOTEXT
ls_button-on_click = 'DELETE'. "#EC NOTEXT
ls_button-page_id = me->component_id.
IF lv_persistent = abap_true.
ls_button-enabled = abap_true.
ELSE.
ls_button-enabled = abap_false.
ENDIF.
IF lv_archived = abap_false.
APPEND ls_button TO rt_buttons.
ENDIF.
CLEAR ls_button. -
Urgent: How to Delete all Cards for a Crawler through SQL
Folks,
Good morning! I am trying to delete 2 million cards (should have been expired, and makes the search index rebuild take days) in a single folder in the Knowledge Directory in the 6.1 portal. The job to delete the folder ("Apply Later") has been running half of yesterday and then all night with nothing being logged in PTSpy or the joblog, little or no CPU activity.
Does someone have a DB query that can zap the cards for this crawler? I know how to select the cards for a particular crawler ID, but don't understand how to delete them properly such that all references to those cards in other tables also get removed.
Much appreciate !!!
Cheers!
Edited by: Plumtree on Jan 21, 2009 7:28 AM (fixed an 'oops')You obviously are looking for someone who has done and tested this before, which I have not...but when I delete a folder the following happens for each card:
delete from:
PTFolderCards
PTCards
PTCardProperties
PTCardSecurity
PTCardStatistics
PTMigration
update:
PTInternalCardInfo (RefreshDate = null, ExpirationDate = null, RefreshRateUnits = null, RefreshRateNum = -1, MissingDeleteUnits = null, MissingDeleteNum = null)
PTCardStatus (indexing status set to 3) -
How to delete the messages from SXMB_MONI which are already cancelled .
Hi All,
The messages were earlier in System error(Red flag) state so i cancelled it manually.
I want to know how to delete the messages from sxmb_moni which are already cancelled manually using ctrl+f8.
if not possible , then i want to see them in earlier state i.e.., in System error(Red flag).
can any tell me the procedure of doing it.
thanks
Sai.Hi AmitSri,
Thanks for u r reply,
What is retention period, where can i find this option.
And i don't have authorizations to sxmb_adm --> configure delete procedure
--> Define interfaces for archiving and retention period.
and to RSXMB_DELETE_MESSAGES in se38 , i don't have authorizations to run
Is there any way to delete the messages or make them to System error( Red flag) which are manually cancelled.
Thanks
Sai.
Edited by: sai_SHA on Aug 17, 2011 12:29 AM -
To delete the row for the corresponding checked rows in alv
hi,
i have a alv report with check boxes,
can any one say how to delete the row for the corresponding checked rows.hi
give In REUSE_ALV_LIST_DISPLAY
I_CALLBACK_USER_COMMAND = P_USER_COMMAND
FORM F_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
IF R_UCOMM = C_DELETE. where CONSTANTS : C_DELETE(6) TYPE C VALUE 'DELETE',
READ TABLE IT_ITAB WITH KEY REC_SEL = C_X.
LOOP AT IT_MARA WHERE REC_SEL = 'X'.
MOVE-CORRESPONDING IT_ITAB TO IT_TEMP.
APPEND IT_TEMP.
CLEAR IT_TEMP.
ENDLOOP.
where it_temp IT_TEMP TYPE STANDARD TABLE OF itab WITH HEADER LINE,
DELETE ITAB FROM TABLE IT_TEMP.
HOPE THIS HELPS
PRIYA -
Deleting the reservations for components of a production order without TECO
Dear Gurus,
I forgot to activate the backflush indicator in the beginning. I activated the backflush indicator in between. But for the confirmations already made I had to issue the material as unplanned consumption for the order. This is not clearing the reservations for the material.
How to delete the reservations for components of a production order without TECOing the production order? My order is not completed.
Thanks and Regards,
RaghuHi Kumar,
I have a production order for 1000 header (A) qty. My control key is PP03 (auto goods receipt from confirmation in CO11N).
For this order the component B qty is 1000 (BOM consumption is 1:1)
Without doing GI, the confirmation is done for 300 A qty. I realized that auto GI is not done for the 300 qty of component B as there was no backflush indicator.
Now the backflush indicator is activated in the production order for component B.
In the next confirmation for another 300 A qty, automatic GI is posted for 300 B qty because of backflush now.
Now my confirmed and GR qty for A in two rounds is 300 + 300 = 600.
GI of component B done is only 300 (through backflush).
Qty yet to confirm = 400.
So I did GI of 300 B qty through MB1A (which is an unplanned issue). This does not update the withdrawn qty in the production order. Also the reservations for component B for this 300 qty are not reduced in the system.
Now the reservations against the order for component B = 1000 - 300 = 700 (which is 300 more than the qty yet to confirm).
Now when I run MRP for another 2000 qty of A, the procurement proposals for B will be 2000 + 300(undeleted reservations) = 2300. Though the system is behaving properly, this 300 is additional and unwanted.
For this reason I need to delete these reservations before the MRP run. As order is still open, I cannot TECO the order. Nor can I clear all open reservations from CO11N.
Thanks and Regards,
Maybe you are looking for
-
Since I switched to Ios 7, there is no search history in my safari. I tried everything, including deleting my iPhone and than restoring it, without any success. What am I missing that isn't recording my web history?
-
Background sound from aquarium screensaver left behind, continues to play
Greetings, I have a very strange problem. Last week, I downloaded the D Desktop Aquarium Screensaver 1.7 from Apple's "Downloads" section. When the screensaver is activated, it plays this bubbling sound in the background. I removed the screensaver be
-
So what's new in version 1.1?
I juz upgraded my nano to the latest version, version 1.1 today. So, I was wondering what's new in this version? As usual, Apple didn't say what's been fixed/added to the new version. So, I was hopin' someone might know and share with us all the know
-
Dbms_xmlparser Oracle 9i: How to parse external DTD?
I have an xml file stored on Unix file system. This file references a DTD: <!DOCTYPE myroot ..... "mydtd.dtd"...> The DTD is dtored in the same Unix directory with the xml file. I want to use the parse function of the dbms_xmlparser package but i hav
-
9.0 won't recognize serial number
I am trying to download my licensed copy of Acrobat 9.0 onto a new desktop computer. I have no idea where the original disk is. I have the serial number saved here on my Adobe account, but the download says it's not valid. But I'm looking at it right