Change Email Subject of Outgoing mails
Hello Folks,
I have a requirement wherein I need to add a text "[Test Mail]" in the email subject of all outgoing mails from our dev/test systems. This is to ensure that the end users who are the receipients are able to distinguish the emails sent out by the test system from the emails sent out by the actual production system.
Do let me know if anyone out here has developed something similar or can provide some advice/help into this matter.
Thanks in advance,
Abhishek
Hi Brad,
We are mainly using CL_BCS as well as FM SO_NEW_DOCUMENT_ATT_SEND_API1 in the system. The problem here is that there is no one fixed/common approach being followed. So I need to understand if there is a way by which I can access all the outgoing mails from the system and change the subject.
One option that I thought was to find out some enhancements or BADIs within CL_BCS and FM SO_NEW_DOCUMENT_ATT_SEND_API1 to manipulate the subject line before the mail is sent out. This would cover most of the cases where mails are sent out from the system, but I am not sure if the mails can be sent out by any other means as well.
abhishek
Similar Messages
-
I need to change my password for outgoing mail server but it won't let me
I Need to change my password for outgoing mail server on iPad 2 but it won't let me change it. I can't send out mail
I assume that you mean that the setting is grayed out and that is what "it won't let me" means. Have you tried selecting another SMTP server of you have another one available in the settings?
-
Change Email subject line for PDF output through smartforms
Dear all,
Currently i am working in Client ECC6.and we are useing The Smartform for Sending PDF document to the Customer.
Since recently email was setup so these invoices can be mailed directly to the customers, but we face the problem that when invoices are sent via email, the subject is like this.
From: Ramesh Babu mailto:ramesh_babu@abc
Sent: Wednesday, August 27, 2008 10:40 AM
To: Babu, Ramesh
Subject: New Invoice (mail/prnt).
Now the customer Requirement is that ,they dont want to disclose the Email address of the sender.
so they want to change the Form line and one hard codeed line always send to the customer like Ex below.
From: "Help Me Please'' .
This will aplicable for all sender ,if he send it by foreground or background as well.
so could you please sugest me how can i do that coding,or is there a user-exit to overrule the Standard SAP behaviour.
My Print program name: ZLB_BIL_INVOICE .
Regards,
MoniHi,
refer this,
you can change the subject line.
FORM docu_send_email USING pv_otfdata TYPE tsfotf
pv_emailid TYPE any
pv_formname TYPE any.
DATA: lv_filesize TYPE i,
lv_buffer TYPE string,
lv_attachment TYPE i,
lv_testo TYPE i.
DATA: li_pdfdata TYPE STANDARD TABLE OF tline,
li_mess_att TYPE STANDARD TABLE OF solisti1,
li_mtab_pdf TYPE STANDARD TABLE OF tline,
li_objpack TYPE STANDARD TABLE OF sopcklsti1,
li_objtxt TYPE STANDARD TABLE OF solisti1,
li_objbin TYPE STANDARD TABLE OF solisti1,
li_reclist TYPE STANDARD TABLE OF somlreci1,
li_objhead TYPE soli_tab.
DATA: lwa_pdfdata TYPE tline,
lwa_objpack TYPE sopcklsti1,
lwa_mess_att TYPE solisti1,
lwa_objtxt TYPE solisti1,
lwa_objbin TYPE solisti1,
lwa_reclist TYPE somlreci1,
lwa_doc_chng TYPE sodocchgi1.
CONSTANTS: lc_u TYPE char1 VALUE 'U',
lc_0 TYPE char1 VALUE '0',
lc_1 TYPE char1 VALUE '1',
lc_pdf TYPE char3 VALUE 'PDF',
lc_raw TYPE char3 VALUE 'RAW',
lc_ordform TYPE char15 VALUE 'ZORDCONFIRM_01',
lc_attachment TYPE char10 VALUE 'ATTACHMENT'.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = lc_pdf
max_linewidth = 132
IMPORTING
bin_filesize = lv_filesize
TABLES
otf = pv_otfdata
lines = li_pdfdata
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT li_pdfdata INTO lwa_pdfdata.
TRANSLATE lwa_pdfdata USING ' ~'.
CONCATENATE lv_buffer lwa_pdfdata INTO lv_buffer.
CLEAR lwa_pdfdata.
ENDLOOP.
TRANSLATE lv_buffer USING '~ '.
DO.
lwa_mess_att = lv_buffer.
APPEND lwa_mess_att TO li_mess_att.
CLEAR lwa_mess_att.
SHIFT lv_buffer LEFT BY 255 PLACES.
IF lv_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Object with PDF.
REFRESH li_objbin.
li_objbin[] = li_mess_att[].
DESCRIBE TABLE li_objbin LINES lv_attachment.
Object with main text of the mail.
lwa_objtxt = space.
APPEND lwa_objtxt TO li_objtxt.
CLEAR lwa_objtxt.
DESCRIBE TABLE li_objtxt LINES lv_testo.
Create the document which is to be sent
lwa_doc_chng-obj_name = text-008.
lwa_doc_chng-obj_descr = text-008.
lwa_doc_chng-sensitivty = lc_0.
lwa_doc_chng-obj_prio = lc_1.
lwa_doc_chng-doc_size = lv_testo * 225.
Pack to main body.
CLEAR lwa_objpack-transf_bin.
header
lwa_objpack-head_start = 1.
The document needs no header (head_num = 0)
lwa_objpack-head_num = 0.
body
lwa_objpack-body_start = 1.
lwa_objpack-body_num = lv_testo.
lwa_objpack-doc_type = lc_raw.
APPEND lwa_objpack TO li_objpack.
CLEAR lwa_objpack.
Create the attachment.
Fill the fields of the packing_list for the attachment:
lwa_objpack-transf_bin = gc_x .
header
lwa_objpack-head_start = 1.
lwa_objpack-head_num = 1.
body
lwa_objpack-body_start = 1.
lwa_objpack-body_num = lv_attachment.
lwa_objpack-doc_type = lc_pdf.
lwa_objpack-obj_name = lc_attachment.
lwa_objpack-obj_descr = text-008.
lwa_objpack-doc_size = lv_attachment * 255.
APPEND lwa_objpack TO li_objpack.
CLEAR lwa_objpack.
lwa_reclist-receiver = pv_emailid.
lwa_reclist-rec_type = lc_u.
lwa_reclist-notif_del = gc_x.
lwa_reclist-notif_ndel = gc_x.
APPEND lwa_reclist TO li_reclist.
IF li_reclist IS NOT INITIAL.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = lwa_doc_chng
put_in_outbox = gc_x
TABLES
packing_list = li_objpack
object_header = li_objhead
contents_bin = li_objbin
contents_txt = li_objtxt
receivers = li_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDFORM. " DOCU_SEND_EMAIL -
Hi ,
For one of my requirement, the email subject and body has to be changed. For order confirmation and quotation, the standard behaviour of having the smartform name as the subject name should be changed and ther ehas to be a dynamic subject name. Similarly the email content should also be changed. Is this possible? Can anyone suggest me the steps?
Thanks.Hi,
Could you please tell what method are you using to create emails?
If it is using workflows then you can change the subject and mail body dynamically using parameters and expressions.
If you are sending mail using an FM call, then also you can create dynamic subject and mail body.
Please provide the details so that an appropriate solution could be provided.
Regards,
Saumya -
Dear Expert,
May I know how can I change the subject of the email sent from alert management?
It now shows "SAP Business One mail message, the subject is in the message body.".
Thanks.
Best Regards,
SandraI found the following in an old SAP Note:
Is there a way to remove the SAP Generation Message from emails that are sent from SAP?
The email signature can be changed using the following steps:
Open SAP Business One Service Manager.
Choose the 'SBO Mailer' Service.
Click on the 'Settings' Icon.
Click on the 'Change Email Signature' button.
Choose 'Use user defined signature' check box.
Add signature.
Save the new settings.
Hope this might help? -
I have a google apps email account from an old client, all my work emails have been going to it for years. As I'm no longer affiliated with this client I'd like to make a transition to using my iCloud account for work. I asked people to use my iCloud address but as they've been using my google apps address for years it's what automatically comes up when they type my name.
I figure the easiest way to make a transition is if I reply to all the emails that arrive at my old address from my iCloud address and gradually they will start using my new address without realising it. But I can't find a simple way to do this.
In Mac Mail preferences > accounts > Google IMAP (my old account name) > Account information > Outgoing Mail server (SMTP) I'd like to set my iCloud SMTP server. But although my iCloud account uses its own outgoing mail server for its own account , it is not in the server list when I select my google account. I've tried to add it to the server list as smtp.mail.me.com but it caused my whole iCloud account to give me error messages until I force quit Mail...
Any ideas?In iCloud/Mail, have you tried going to Preferences (select with gear at lower left)/Composing and setting a Send from address there?
-
PDF forms - Change email subject to field content
Hi,
I created a fillable form with a sumbition via email button. When submitting, I need to replace the default email subject "Form Returned: fileName" with the content of a particular field.
I have no idea where to start. Can you help? THanks, Jpwow! that was quick!I'll give it a try, thank you!
-
How to change email subject in smartform?
Dear experts!
I have an action wich triggers smartform and sends it via email.
In smartform (transaction smartforms) I can input some text in field "Description" and this text will be shown as e-mail subject. Also i can use ampersand (&) in this field to input the number of transaction from wich the action was launched.
But I need to add to the e-mail subject the number of preceeding document, I can get it in the Initialization tab of Global definitions.
How can I add this number (number of preceeding document) to the e-mail subject?
Regards,
VladimirHi,
In your print program when you are calling the FM generated by smartform you need to pass some parameters. In that there is one parameter OUTPUT_OPTIONS. In that we have a field called TDTITLE. This field is nothing but your Mail subject. So you can change this parameter in your print program for the mail subject.
Hope this heps you.
Regards,
Lakshmi.Y -
How can I change email address RIM sends mail to?
I have two emails, one that's strictly friends and family, and one for everything else. A while back I changed the "everything else" address to gmail. Although I've never submitted my personal address to RIM (other than setting up that email on my phone), they've begun spamming my personal mail with daily "notifications." I don't mind getting the mail, but 1. I don't want it coming to my personal address, and 2. I find it very disturbing that RIM harvested my personal account info to use at their convenience. I see in the emails I receive I can "unsubscribe," although they'll still send me mail they deem important. I don't want that, I want to give them my new everything address, so they'll stay out of my personal acct. I have thoroughly searched their site, but see no way to submit this new address, or to set up my acct preferences for my interaction with RIM. Please tell me how to change my address with RIM, or to at least contact them, not about my phone, but about their service (there doesn't appear to be any such option among the "Contact Us" selections they offer). Thanks very much!
Notifications of what?
I promise you, from all I've seen, you would have had to check a box in something stating you want to receive updates, etc., from BlackBerry. They certainly haven't "harvested" your email address from simply being loaded to your BlackBerry.
You need to unsuscribe from the current emails you're getting. Even if you don't want to.
You probably downloaded an OS or file update or Desktop Software somewhere that you clicked to agree to receive updates.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
How to customize or change the subject of the mail send throu SM36
HI,
i m using SM36 to Schedule some of reports and send the output of those reports as an attachement to particular email ids.
It is working fine people are receive mails with an output of the report as an attachement , but the subject is coming like this
"Job PRODUCTION PLANING REPORT, Step 1" where "PRODUCTION PLANING REPORT" is the job name . What i want is the Subject should be only my Job Name "PRODUCTION PLANING REPORT" the Prefix Iob and the Sufix Step 1, should not appear in the subject. How can i achive this ?
Regards
Edited by: nau on Jan 20, 2010 3:31 PMIn SM36, under the 'General Data' area, the answer is right there. Click on the Spool list recepient button and place the e-mail recepient in the box. It looks like only one entry can be entered there so you may want to have a distribution group setup accordingly for multiple recepients
My view is as per the line i can see only .html attachment only you can send...
See Mr NA. take intitiative and tell the clients....Clearly that if we schedule thtrough SM36 then we have limited funcitonalities like you can't attach the excel version's specially and Subject issue what you are discussing...
So as of now my suggestion is Using the FM (if it is version 6.0 Ecc prefer using classes....) You can write extra funcitionality to report to send via Email
Sas -
Trouble configurin​g my outgoing email on smpt outgoing mail server on my new mac
this is the 1st time i have ever configured my email. i have just bought a mac computer and it seems as though i was able to set up the incoming portion of my email as i am receiving emails. i used "mail.verizon.net" as my incoming mail server. (i guess this is correct, not really sure) I have tried a few things but im not having any luck. im dont know if i need to use a custom port. im not sure if i need to use SSL or password authentication. iam really just blindly trying things as ive never done this before. can anyone be of assistance? thank you
kevinSmtp settings are
SSL on
smtp to port 465
password authentication required (usually set as use same settings as incoming). And set to clear Apop or clear text, cannot be secure password authentication
server (unless using yahoo) is outgoing.verizon.nel
pop3 settings are
ssl on
smtp to port 995 (which is the standard port for pop with ssl on)
password authentication required. And set to clear Apop or clear text, cannot be secure password authentication
server (unless using yahoo) is incoming.verizon.nel -
Cannot change email account preferences in Mail w/ iCloud account
I'm trying to change how often my trash is emptied in Mail for my iCloud account, but I keep getting this message when trying to save a change; The “Incoming Mail Server” field cannot be empty.
Then there is a corrupt preference within the Mail application itself. I'm not sure on how to instruct you because Apple change the way preferences are stored and I haven't gotten into it completely yet. It would probably be the com.apple.mail.plist file.
Before doing anything, make sure you have a back up in case problems arise. Also, sign out of iCloud and Quit Mail before making any changes.
Preferences are stored in the Home Library folder for your user account. Quit Mail. Navigate to the Home Library folder. It's hidden in Lion. In Finder, select Go from the menu and hold the option key down. Select Library in the submenu. Navigate to the Library/Preference folder. Select any .plist file for com.apple.mail and move them to the trash. Restart Mail and see if it clears up.
If not, Quit Mail again. Go to the Home Library/ Containers folder. Move the com.apple.mail folder to the trash. Restart Mail and it should replace com.apple.mail folder in the Containers folder. See if that clears it up.
The items you move to the trash can be put back by selecting them, right click, and select put back. Of course, you need to quit Mail and sign out of iCloud as instructed earlier.
If you feel uncomfortable doing this, then wait for someone else to help. I'm getting ready to leave and won't be online until tonight or tomorrow. -
Sequence of Email Ids on Outgoing Mails
Hi,
When emailing to multiple ids, the sequence of email ids is always jumbled and not in the order in which i have them in my "To" box.
Is there a way to rectify this?
thanks,
Rushabh MehtaServer specific.
-
Verizon email cannot send outgoing mail. Works OK with Internet Explorer. Fix?
Can login to Verizon email. I receive incoming email however I cannot send email. The SEND button appears not to work. Have upgraded all plugins. Works OK on Internet Explorer browser. Upgraded Flash and Java but still does not work.
Hello,
Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
Note: ''This will temporarily log you out of all sites you're logged in to.''
To clear cache and cookies do the following:
#Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
#Under "Time range to clear", select "Everything".
#Now, click the arrow next to Details to toggle the Details list active.
#From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
#Now click the ''Clear now'' button.
Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
Did this fix your problems? Please report back to us!
Thank you. -
My email account account(msn.com) was hacked so I changed my passwod at msn.com and then als0 changed it on myiPad under settings/mail.
Now I cannot send email or photos with email.
Suggestions? I only have an iPad as I am traveling.
I can send emails if I sign in through Safari.Check the outgoing mail server setting. Make sure that your username and password are in there.
Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.
Maybe you are looking for
-
Error code: 8393f01e25 when I try to sync outlook ...
Hi, Everytime I try to sync my outlook calender and tasks I get this error message telling me I have not enough memory. Granted I am using a Nokia 6300 but surely if you introduce software it should work with all Nokia devices - Any ideas? Cheers Ern
-
My ipod nano has stopped being recognized by my mac computer
My ipod nano has stopped being recognized by my mac computer, it used to work and all of a sudden it isn't, please advise...
-
External monitor resolution setting is not saved
I use an external monitor as an extended desktop for my macbook pro. The problem is that whenever I turn on the mbp, the resolution of the external monitor reverts back to the default resolution. Is there any way to set the resolution of the external
-
After syncing with I cloud-ended up with duplicates of calendar in outlook and I phone 4s-tried to manually delete outlook duplicates and was left with only recurring b day events--the deleted items are in a folder but cant seem to undo them-aftraid
-
Hi All I want to upload vendor transaction through T code: F-43, with tax items Could you help me in the following points: 1. Fields to be taken in Structure 2. How to handle the WHT and Tax as these are automatically deducted during the posting 3.