Adding disclaimer file as an attachment on outgoing mail through Conversion
I'm using iMS 5.2 and i'm currently using the conversion channel to append a disclaimer to all outgoing messages (Internet only) but the boss would like to get the discloser in a text attachment instead of appended to the e-mail.
has anyone played with that?
Hello,
Are you using the standad sap function module or using OLE objects to generate excel?
First try creating the excel file in foreground and see if the data is being populated.
Kind Regards,
Niky.
Similar Messages
-
Adapter Module Error-Sending excel file as an attachment of the mail
Hi ,
My scenario is as follows
1)I am sending an excel file as an attachment of the mail.I need to read that excel attachment as a payload.
So mail adapter is used in sender side.
To configure this, have used standard PayloadSwapBean module with proper module key.
Next to convert excel to XML another custom adapter module is being used.
Both this adapter module , I configured into the CC of sender mail adapter.
The order in which adapter modules are being used in the sender CC are as follows
1)localejbs/AF_Modules/PayloadSwapBean
2)localejbs/MDPExcelToXMLConversion
3)sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
MDPExcelToXMLConversion-Custom adapter module written to convert excel to xml.
I am getting the following error
exception caught during processing mail message [4899]com.sap.aii.af.lib.mp.module.ModuleException
And also,
no messages in coming MONI of PI.
Pls suggest what to do.
Thanks
AyanShabarish,
Will the ordering in which the adapter modules(In this case there are two-PayloadSwapBean & MDPExcelToXML) are appearing into Module tab of sender adapter matter?
Firstly, what is happenning
1)If I take out the custom adapter module MDPExcelToXML and put only PayloadSwapBean then it is successfully converting mail attachment into the main Payload i.e PayloadSwapBean module is working.
2)Nextly, my local code( i.e java code without including standard Module specific method like ejbActivate(),ejbPassivate(),process() etc etc.)) for MDPExcelToXML is successfuly converting the excel file into the XML file.Then I am making the local code into adapter module specific code and deploying that.
A few question arises here,
Do I need to do any specific configurations here in PI for this particular things.Maybe both the adapter module is clashing with each other.
And also using tracing and logging into my custom adapter module code.Getting the following error,
java.io.IOException: Unable to read entire header; 116 bytes read; expected 512 bytes#
Thanks
Ayan -
Relay Outgoing Mail Through Host Not Updating
We relay our mail through an external company and I have added the entry to Relay Outgoing Mail Through Host field and enabled the tick box. What ever I do I cannot get these changes to take affect. I have tried modifying the main.cf and enabled the relay option without any joy. After modifying these I performed a full restart but it still hasn't taken affect.
This has been working up to now but after a power cut stopped for some reason.
We are running Mac OS X Server 10.4.8.
Thanks
RossI'd noticed a small glitch with the GUI during earlier testing. Might not clear things for you but worth trying...
Set it with the Relay Outgoing Mail ticked and relay server entered - click Save.
Wait for whirling update thingy to stop.
Delete the relay server name then tab out of field (field fills with greyed out "relay.example.com"), only then untick the option - Save.
Wait for whirling update thingy to stop.
Tick the option, fill in the relay server - Save.
If no change, people will probably need the unedited output from "postconf -n" and an example mail.log entry showing an outgoing message leaving the server.
-david -
When I look at my Preferences in Apple Mail, I do not have iCloud listed as a server
therefore I cannot sent any outgoing mail through the iCloud servers. What do I need to change so that iCloud is listed as an outgoing server?
Thank you.Yes they are both from my MacPro. I just clicked on the "+" and obtained the second screen. As far as I know both of my computers are on iCloud. At least when I change the Address Book or my Safari Bookmarks on my MacPro, they are changed on the MacBook.
These are my system preferences on the MacPro
When I click on iCloud, this is what I get:
So I assume that the MacPro is on iCloud, unless you tell me otherwise. -
Text file as an attachment in reciever mail adapter
Hi Experts,
I want to pick the text file using sender file adapter using file content converion, same file i need to send an attachment in reciever mail adapter.
Can anybody help me how can i do this.
Kind Regards,
Praveen.
Edited by: Praveen Kumar on Mar 10, 2010 9:08 AMHi,
>>>I want to pick the text file using sender file adapter using file content converion, same file i need to send an attachment in reciever mail adapter.
use payload swap bean to put the attachment in place of the message payload - do the content conversion using
content conversion adapter module, then do the same in the reverted order at the receiver
there are dozenz of blogs showing how to use the two adapter modules I mentioned so just do a little search in blog section
Regards,
Michal Krawczyk -
Send An Internal Table Via Excel File As An Attachment of E-mail
Hi,
I've sent my internal table via Excel file as an attachment of email but all records of internal table are in a row of sended excel file.
How can i send an internal table via excel file , records of internal table for each rows of excel file,as an attachment of email correctly?
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list " t_packing_list-doc_type = 'XLS'.
contents_bin = pit_attach " this is a normal internal table.
contents_txt = pit_message
receivers = t_receivers
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.Hi,
CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.
CONSTANTS:
CON_TAB TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
CON_CRET TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF.
LOOP AT T_FINAL INTO WA_T_FINAL.
CONCATENATE WA_T_FINAL-PERNR
WA_T_FINAL-NAME
WA_T_FINAL-LEVEL
WA_T_FINAL-POS
WA_T_FINAL-JOB
WA_T_FINAL-SECTION
WA_T_FINAL-DEPT
WA_T_FINAL-GROUP
WA_T_FINAL-EX_HEAD
WA_T_FINAL-SUPID
WA_T_FINAL-SUPNM
WA_T_FINAL-FHRNM
WA_T_FINAL-VACID
WA_T_FINAL-VAC_SECTION
WA_T_FINAL-VAC_DEPT
WA_T_FINAL-VAC_GROUP
WA_T_FINAL-VAC_EX_HEAD
WA_T_FINAL-VAC_FHRNM
INTO T_FINAL3 SEPARATED BY CON_TAB.
CONCATENATE CON_CRET T_FINAL3 INTO T_FINAL3.
APPEND T_FINAL3.
ENDLOOP.
*Fill the document data.
W_DOC_DATA-DOC_SIZE = 1.
*Populate the subject/generic message attributes
W_DOC_DATA-OBJ_LANGU = SY-LANGU.
W_DOC_DATA-OBJ_NAME = 'REPORT'.
W_DOC_DATA-OBJ_DESCR = LD_MTITLE . "mail description
W_DOC_DATA-SENSITIVTY = 'F'.
*Fill the document data and get size of attachment
CLEAR W_DOC_DATA.
READ TABLE T_FINAL1 INDEX W_CNT.
W_DOC_DATA-DOC_SIZE =
( W_CNT - 1 ) * 255 + STRLEN( T_FINAL1 ).
W_DOC_DATA-OBJ_LANGU = SY-LANGU.
W_DOC_DATA-OBJ_NAME = 'SAPRPT'.
W_DOC_DATA-OBJ_DESCR = LD_MTITLE.
W_DOC_DATA-SENSITIVTY = 'F'.
CLEAR T_ATTACHMENT.
REFRESH T_ATTACHMENT.
T_ATTACHMENT[] = PT_FINAL1[].
*Describe the body of the message
CLEAR T_PACKING_LIST.
REFRESH T_PACKING_LIST.
T_PACKING_LIST-TRANSF_BIN = SPACE.
T_PACKING_LIST-HEAD_START = 1.
T_PACKING_LIST-HEAD_NUM = 0.
T_PACKING_LIST-BODY_START = 1.
DESCRIBE TABLE IT_MESSAGE LINES T_PACKING_LIST-BODY_NUM.
T_PACKING_LIST-DOC_TYPE = 'RAW'.
APPEND T_PACKING_LIST.
*Create 1st attachment notification
T_PACKING_LIST-TRANSF_BIN = 'X'.
T_PACKING_LIST-HEAD_START = 1.
T_PACKING_LIST-HEAD_NUM = 1.
T_PACKING_LIST-BODY_START = 1.
DESCRIBE TABLE T_ATTACHMENT LINES T_PACKING_LIST-BODY_NUM.
T_PACKING_LIST-DOC_TYPE = LD_FORMAT.
T_PACKING_LIST-OBJ_DESCR = 'Application 1'.
T_PACKING_LIST-OBJ_NAME = 'Application 1'.
T_PACKING_LIST-DOC_SIZE = T_PACKING_LIST-BODY_NUM * 255.
APPEND T_PACKING_LIST.
CLEAR T_PACKING_LIST.
*Add the recipients email address
CLEAR T_RECEIVERS.
REFRESH T_RECEIVERS.
T_RECEIVERS-RECEIVER = LD_EMAIL.
T_RECEIVERS-REC_TYPE = 'U'.
T_RECEIVERS-COM_TYPE = 'INT'.
T_RECEIVERS-NOTIF_DEL = 'X'.
T_RECEIVERS-NOTIF_NDEL = 'X'.
APPEND T_RECEIVERS.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = W_DOC_DATA
PUT_IN_OUTBOX = 'X'
SENDER_ADDRESS = LD_SENDER_ADDRESS
SENDER_ADDRESS_TYPE = LD_SENDER_ADDRESS_TYPE
COMMIT_WORK = 'X'
IMPORTING
SENT_TO_ALL = W_SENT_ALL
TABLES
PACKING_LIST = T_PACKING_LIST
CONTENTS_BIN = T_ATTACHMENT
CONTENTS_TXT = IT_MESSAGE
RECEIVERS = T_RECEIVERS
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.
Edited by: Rahul Ghosh on Apr 6, 2009 6:42 AM -
SMTP outgoing mail through 3rd party servers
Apple Mac Mail - used to be fine sending email via a different SMTP server by setting up the SMTP details.
This seems to have stopped working and I am told by the service provider that BT must be doing something "strange" stopping my connection via SMTP to the mail servers I want to use.
Suggested that maybe the port was being blocked. Mail is trying 25, 465, 587 ports.
Any ideasIanRS wrote:
LOve it to be something simple I did move to a new machine and latest OSX but I have switched the old one on and that fails too when it just worked for years.
Think I have a work round by using mail.btinternet.com as the outgoing server for all account but bemused as to why I should have had to do that.
Spent two hours on the phone today with BT. They escaleted the problem to a specialist support desk, which we then had to agree to paying a £30 charge if they were able to fix the problem as they say that it is a problem with mac mail. (Which it isn't because it works fine using a different broadband connection, and we have three laptops in the house all with same problem, using outlook as well as mail).
All three laptops have been working with out fault for the last four years and just before christmas they all stopped being able to send emails using hotmail. Obviously BT have changed something somewhere along the line.
The Specialist just changed our outgoing mail server to use BTs instead. (I have been using a different SMTP server anyway as a temporary fix since christmas) Whilst we are able to send emails, we are still unable to connect to hotmails SMTP server. Still had to pay the £30 though. As far as they are concerned that still counts as a fix. Another "solution" they gave me was to change the DNS address in system preferences- Not Ideal as everytime you connect your laptop to a new network you will have to reset them.An absolute joke.
Their direct number is 08000 321 118 if you need them to talk you through it. Best to have your bank card to hand.
Livid. -
Unknown files being attached to outgoing mail
I recently sent an email to a friend who is on an AOL acct.
I attached a JPEG to the email, and that came across fine.
Also attached to the email were 4 .txt files (0001.txt, 0002.txt, etc)
These files contained 'gibberish' according to the recipient.
These files are not found on my computer.
Any idea how they got there and if this is preventable?
Thanks!
SteveMost Mac files consist of two segments - a data fork and a resource fork. The resource fork for a Mac file is invisible to fellow Mac users but not to Windows users.
See this link.
http://www.macdisk.com/macforken.php3
When using send Windows Friendly Attachments with the Mail.app, the resource fork for an attached file will not be available/shown to a Windows user.
http://docs.info.apple.com/article.html?path=Mail/2.0/en/ml1014.html
If this does not remove all the additional files included with an attachment, try using Plain Text for message composition instead of Plain Text. -
How to send text file as an attachment to exteral mail
hi ,
Can any one tell me how to send an internal table as a textfile attachment to the external mail.
regards
kishorehi,
i am assuming txt fie attachment means you want notepad attachment
recently i struggled on this and i achieved success by doing as below
remember to keep packlist as RAW type like below:
t_packing_list-doc_type = 'RAW'.
do like this
CALL FUNCTION 'SO_SOLITAB_TO_SOLIXTAB'
EXPORTING
ip_solitab = t_attachment[]
IMPORTING
EP_SOLIXTAB = xtext[].
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_data
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
tables
packing_list = t_packing_list
OBJECT_HEADER =
CONTENTS_BIN = objbin
CONTENTS_TXT = it_message
CONTENTS_HEX = xtext
OBJECT_PARA =
OBJECT_PARB =
receivers = t_receivers
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 -
Attaching PDFs to Mail Through Print Dialog
When using the PDF pulldown in the print dialog to email a preview PDF, Microsoft Word names the file "Microsoft Word - xxx.pdf. Is there a way to change this name while in Mail? Otherwise I need to save the PDF to the desktop, attach, then throw away the PDF.
ThanksI've never found a way to do it. AFAIK, plastering "Microsoft Word" to the front of your filename (when printing) is a "feature" you can't change. The Windows version of Office does this too (you see it when viewing documents in a Windows print queue), but most Windows PDF creation tools ignores it.
MS Office for Mac is the only program I'm aware of that does this. Our OpenOffice.org users don't have this problem.
Sorry,
- WG
PowerMac G5 Mac OS X (10.4.8) -
Purchase Order Smartform as attachment in step mail through workflow
Whenever user create a PO, mail should trigger in Microsoft Outlook, with the purchase order form as attachment.
I am able to send mail to Microsoft Outlook whenever PO is created.
But kindly advice how to attach PO smartform in th mail.
Regards,
Rahul.Hello,
Please find below link. There is lot of stuff in google regarding this.
smartform as work item attachment
Re: PDF attachment in mail
Regards.
Edited by: vikram singh on Jan 30, 2012 2:00 PM -
Sending a file (.pdf) as an attachment via e-mail
Hi,
I have a selection screen with purchase order number as "select-options" and 2 radio buttons one for downloading and opening the SAP Script output to the local file and the other raido button would convert the SAP Script output into .pdf file and send that file as an attachment via e-mail to the receipent(only one).
I'm through with the first operation. Now need to know about the e-mailing procedure and the function module(s) to be used and their import, export, etc. parameters.
Thanks & Regards,
RajeshRe: Sending a PDF document as an attachment
refer the above thread.
the useful FMs in this regard are
CONVERT_OTF
SO_NEW_DOCUMENT_ATT_SEND_API1 to send mails with attachments: -
OS X Server 3 outgoing mail relay no longer supports a specific port
Just installed OS X Server 3 on Mavericks. All is well, but for some reason it does not allow adding a specific port for "Outgoing mail relay: mailout.isp.com:587"
OS X Server 2 used to allow this and i used it to connect to my smtp relay from my isp. It does not allow port 25 connections. If you try this in OS X Server 3 it just complains with "bad formatting"
Can anyone confirm this?Found another thread discussing this.
https://discussions.apple.com/message/23544605#23544605
Answer from there:
You need to edit the postfix main.cf file manually with your favorite text editor:
sudo vi /Library/Server/Mail/Config/postfix/main.cf
find the line
relayhost = host.example.com
change it to
relayhost = host.example.com:587 (or some other port)
then do a
sudo postfix reload
to reload postfix configuration files
and
sudo postsuper -r ALL
to retry sending the e-mails again.
NOTE: If you open OS X Server 3 app and go to Mail -> Relay outgoing mail through ISP -> Edit the Outgoing server address will show as BLANK, this is normal, just click cancel and leave it alone. -
Relaying Outgoing Mail Doesn't seem to work
Hi,
I am a subscriber to Comcast ): and because many mail servers reject my mail from a non-static IP address, I use the option under Server Admin - Mail called "Relay outgoing mail through host: smtp.comcast.net
However this doesn't seem to help. In fact looking at the header of a message I sent from my server to a gmail account, it shows the IPs as my personal ones:
X-Gmail-Received: ed39f49809ec13d0902a5c7b1af1634eb8efbed3
Delivered-To: [email protected]
Received: by 10.65.185.3 with SMTP id m3cs10855qbp;
Wed, 18 Jan 2006 18:24:40 -0800 (PST)
Received: by 10.65.123.16 with SMTP id a16mr12352qbn;
Wed, 18 Jan 2006 18:24:40 -0800 (PST)
Return-Path: <[email protected]>
Received: from empco.org (pcp04542035pcs.brmngh01.mi.comcast.net [68.41.167.143])
by mx.gmail.com with ESMTP id e16si240582qbe.2006.01.18.18.24.39;
Wed, 18 Jan 2006 18:24:40 -0800 (PST)
Received-SPF: neutral (gmail.com: 68.41.167.143 is neither permitted nor denied by best guess record for domain of [email protected])
Received: from localhost (localhost [127.0.0.1])
by empco.org (Postfix) with ESMTP id B3E3E110147
for <[email protected]>; Wed, 18 Jan 2006 21:24:38 -0500 (EST)
Received: from empco.org ([127.0.0.1])
by localhost (empco.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
id 00342-02 for <[email protected]>; Wed, 18 Jan 2006 21:24:29 -0500 (EST)
Received: from [127.0.0.1] (localhost [127.0.0.1])
by empco.org (Postfix) with ESMTP id 9CC46110129
for <[email protected]>; Wed, 18 Jan 2006 21:24:28 -0500 (EST)
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Transfer-Encoding: 7bit
Message-Id: <[email protected]>
Content-Type: text/plain; charset=US-ASCII; format=flowed
To: [email protected]
From: James <[email protected]>
Subject: test
Date: Wed, 18 Jan 2006 21:24:26 -0500
X-Mailer: Apple Mail (2.746.2)
X-Virus-Scanned: by amavisd-new at empco.org
test
How can I get this working so all server like AOL accept my mail?#relayhost = $mydomain
#relayhost = [gateway.my.domain]
relayhost = smtp.comcast.net
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
# REJECTING UNKNOWN RELAY USERS
then i did this:
empco:~ james$ grep /etc/postfix/main.cf relayhost
grep: relayhost: No such file or directory
Couple of things...
1. Sorry, I got the grep command wrong way round! It should be...
grep relayhost /etc/postfix/main.cf
All it does is show the lines in the file which contains "relayhost" - easier than listing the whole file.
2. The GUI normally adds the options at the end of the file - so if grep lists another 'blank' relayhost, remark out your old one and edit the entry at the end. (just in case an existing blank entry at the end is overwriting your edited one).
3. You can actually edit main.cf whilst the mail services are running. Just execute the reload command in Terminal afterwards...
sudo postfix reload
The sudo prefix runs the command as root, so it will ask for the root (admin) password.
Any changes made like this should automatically show up in the Server Admin GUI. Click the 'refresh' button.
I've confirmed the above works on my test system, so here's hoping!
-david -
Hello,
On the new OS X Server 3.0 when selecting 'Relay Outgoing Mail through ISP' and entering example.com:587 the Server App complains and rejects the entry as invalid.
Works fine on OS X Server 2.2.2
Any suggestions/help will be greatly appreciated.
Thanks,
Michael A.I have the same problem when i do vi and port then restart mail service i get these problems
Oct 30 09:44:30 tarfan.net postfix/master[3206]: fatal: bad string length 0 < 1: setgid_group =
Oct 30 09:44:41 tarfan.net postfix/master[3229]: fatal: bad string length 0 < 1: setgid_group =
Oct 30 09:44:51 tarfan.net postfix/master[3252]: fatal: bad string length 0 < 1: setgid_group =
Oct 30 16:06:55 tarfan.net postfix/postmap[2544]: fatal: bad string length 0 < 1: mydomain_fallback =
Oct 30 16:06:56 tarfan.net postfix/postmap[2546]: fatal: bad string length 0 < 1: mydomain_fallback =
Oct 30 16:07:09 tarfan.net postfix/postmap[2559]: fatal: bad string length 0 < 1: mydomain_fallback =
Oct 30 16:07:10 tarfan.net postfix/postmap[2563]: fatal: bad string length 0 < 1: mydomain_fallback =
Oct 30 16:08:53 tarfan.net postfix/postmap[2666]: fatal: bad string length 0 < 1: mydomain_fallback =
Oct 30 16:08:54 tarfan.net postfix/postmap[2672]: fatal: bad string length 0 < 1: mydomain_fallback =
Help please not using setgid and have localhost as backup domain can some give me example of what my main .cf file should look like
Thans
Maybe you are looking for
-
Hello All I am just starting creating reports with CR2008 connected to SAP ECC 6.0. I am suffering some performance issues when trying to create a report on tables VBAK, VBAP and LIPS. Report performance is extremely slow. I have a few questions on
-
Blink while alarm on using shared variables with remote panel
I am creating an application where I have front panel indicators data bound to shared variables. I also set it up to have them blink when the alarm is on. I am using the DSC module. This works great under the development environment. But when I co
-
Color Laserjet Pro 200 MFP Print Menu
When I use my iMac 27 with this printer, I don't see all the print options in the print menu in Preview etc. that are mentioned in the User Guide. No "Color/Quality" options/Advanced etc. to change. I have downloaded and installed the latest driv
-
How to Activate Windows 8.1 Enterprise with Windows 8 Enterprise MAK?
I bumped into this problem when being assigned to deal with the activation of Windows 8.1 Enterprise. There are around 6 notebooks in my team, and they seldom connect to corporation network so are essentially isolated from our KMS server. Therefore w
-
Problem with getLong for a column of type NUMBER
When ever I am calling getLong on a column defined as NUMBER in the database, I get this error message. The number I am retreving is something like '320000000010'.. What could be the problem? Has somebody encountered a similar problem? The database i