cancel
Showing results for 
Search instead for 
Did you mean: 

No Default email address in email

chetan_mishra
Participant
0 Kudos

Hi,

We have to send e-mail from a custom Transaction type in CRM. When the email form is called, it has the default email address in To as the email address of the Account Partner.

How can we restrict this? I do not want any default email address, the To field should be blank..

Please advise

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member199759
Participant
0 Kudos

Hi Chetan,

Please be more specific from where exactly are you sending the email. I mean, on what do you click, to populate the To in the email address? Is it contact search or account search, etc.Based on that, we can see what code belonging to what standard component and View is being called.

Or, if you already know the method, view and component, please let me know so that I can look into it once. On a generic ground, to keep the "To" field empty, we need not pass the data to the concerned method which is filling the field in the email.

For example: for Account search, when we click on the email link which is found in the search, its corresponding event EH_ONTOEMAIL is called, which triggers its outbound plug OP_TOEMAIL.

                     In the OP_TOEMAIL outbound plug, we set the property of the To address with value :

                      lr_value_node->set_property_as_string(

                          EXPORTING

                           iv_attr_name = 'ADDRESS'

                           iv_value = lv_email_address ).

In this above method, if we do not pass anything to iv_value, a blank value would be sent to the email address To field.

The above scenario is for Account Search. It may change for different scenarios. Thats the reason in the beginning, I was asking about how you were sending the mail exactly .

Regards,

Satya Prakash