Sender Address For Mail using BCS
Hi All,
Currently we are using SET_SENDER method of CL_BCS for setting the sender address while sending email using BCS.
But this method retrieves the Email ID of the sender from the Default User Settings. Instead, we need to set the sender email ID from the internet address mentioned in the HR Info Type.
It would be even better, if we have option to set any arbitrary Email address like '[email protected]' instead of the user id.
Please let me know if any such option is available.
Thanks,
Anand
bump...
Anyone got a fix for this? Vacation auto-reply is being bounced by 3rd party relay server due to malformed sender address.
Similar Messages
-
Hi,
I am sending an e-mail using java. It works fine, but I wanted to know if there is any possibility to attach a document, without using a File object. Because I have to write the File object and then delete it at the end. I would like to know if I can use for example a byte [], or something else.
Thank you very much.
This is my code, if that helps.
public static void sendWithAttach(String p_sender, String p_receiver, String p_subject,
String p_comment, int p_nombrePiecesJoints, HashMap<String, byte[]> p_files) {
Properties props = System.getProperties();
props.put("mail.smtp.host", Solapcore.getCurrent().getServletConfig().getServletContext().getInitParameter("SMTP"));
Session session = Session.getDefaultInstance(props, null);
MimeMessage sender = new MimeMessage(session);
MimeBodyPart mbp1 = new MimeBodyPart();
Multipart mp = new MimeMultipart();
List<File> listeFiles = new ArrayList<File>();
try {
//On assigne to, from, subject, body, priority
sender.setRecipients(javax.mail.Message.RecipientType.TO,
InternetAddress.parse(p_receiver, false));
sender.setFrom(new InternetAddress(p_sender));
sender.setSubject(p_subject);
mbp1.setText(p_comment);
//sender.setPriority(0);
mp.addBodyPart(mbp1);
//On attache les documents
for(Map.Entry<String, byte[]> entry : p_files.entrySet()) {
MimeBodyPart mbp2 = new MimeBodyPart();
String fileName = entry.getKey();
byte [] dataFile = entry.getValue();
File file = new File(fileName);
FileOutputStream fos = new FileOutputStream(file);
fos.write(dataFile);
mbp2.attachFile(file);
mbp2.setFileName(fileName);
mp.addBodyPart(mbp2);
listeFiles.add(file);
sender.setContent(mp);
Transport.send(sender);
}catch(MessagingException mex) {
mex.printStackTrace();
}catch(FileNotFoundException fnf) {
fnf.printStackTrace();
}catch(IOException ioe) {
ioe.printStackTrace();
}finally {
Iterator<File> itListeFiles = listeFiles.iterator();
while(itListeFiles.hasNext()) {
File tempFile = (File)itListeFiles.next();
tempFile.delete();
}Thank you very much.
public static void sendWithAttach(String p_sender, String p_receiver, String p_subject,
String p_comment, int p_nombrePiecesJoints, HashMap<String, byte[]> p_files) {
Properties props = System.getProperties();
props.put("mail.smtp.host", Solapcore.getCurrent().getServletConfig().getServletContext().getInitParameter("SMTP"));
Session session = Session.getDefaultInstance(props, null);
MimeMessage sender = new MimeMessage(session);
MimeBodyPart mbp1 = new MimeBodyPart();
Multipart mp = new MimeMultipart();
List<File> listeFiles = new ArrayList<File>();
try {
//On assigne to, from, subject, body, priority
sender.setRecipients(javax.mail.Message.RecipientType.TO,
InternetAddress.parse(p_receiver, false));
sender.setFrom(new InternetAddress(p_sender));
sender.setSubject(p_subject);
mbp1.setText(p_comment);
//sender.setPriority(0);
mp.addBodyPart(mbp1);
//On attache les documents
for(Map.Entry<String, byte[]> entry : p_files.entrySet()) {
MimeBodyPart mbp2 = new MimeBodyPart();
String fileName = entry.getKey();
byte [] dataFile = entry.getValue();
File file = new File(fileName);
FileOutputStream fos = new FileOutputStream(file);
fos.write(dataFile);
mbp2.attachFile(file);
mbp2.setFileName(fileName);
mp.addBodyPart(mbp2);
listeFiles.add(file);
sender.setContent(mp);
Transport.send(sender);
}catch(MessagingException mex) {
mex.printStackTrace();
}catch(FileNotFoundException fnf) {
fnf.printStackTrace();
}catch(IOException ioe) {
ioe.printStackTrace();
}finally {
Iterator<File> itListeFiles = listeFiles.iterator();
while(itListeFiles.hasNext()) {
File tempFile = (File)itListeFiles.next();
tempFile.delete();
} -
How to send HTML Format Mail using Java Mail in oracle 9i Forms
Dear All
could you please tell me how to send HTML Format Mail using Java Mail in oracle 9i Forms and how to implement the java mail ?
if it is possible, could you please send me the sample code? please very urgent
Thanks
P.SivaramanHello,
<p>Here is a Form sample.</p>
Francois -
I have created a mail box with 22 names in it. When I want to send an e-mail to this address and its recipients, only 7 of the 22 names appear in the address line of the e-mail. Why won't the remaining 15 names and addresses appear in the address line?
okay, this is actually a common problem. from your main screen select the blackberry key (next to track ball)->options->security->general settings->include address book->no->reset phone->problem should be fixed!
let me know if this works for you,
Andrew
Andrew Hager
U.S. Cellular Corporation
Smartphone Specialist -
Sender address for vacation mail
Dear people,
I´m trieing to activate a vacation mail on my mail server (OS X Server 10.6.4).
The server tries to send the automatic reply an fails with the following log entry in /var/log/mail.log:
+delays=0/0.01/0.09/0.1, dsn=5.0.0, status=bounced (host XXX\[x.x.x.x\] said: 553 Mail to <[email protected]> not allowed; missing domain name in MAIL FROM (in reply to RCPT TO command))+
Where host is the mail relay. The logs on the mail relay show matching entries.
Sending mails is generally working.
I´ve allready set the value of myorigin in /private/etc/postfix/main.cf (Config file of dovecot) but to no avail.
Can somebody tell me where I can set the sender address of the vacation mail?
Or is there something else wrong?
Thank you very much.
Best regards
macservobump...
Anyone got a fix for this? Vacation auto-reply is being bounced by 3rd party relay server due to malformed sender address. -
Changing sender id for mail from vf03
Hi Experts,
When I send a billing document from VF03 to a customer, the e-mail address is read from my sap user (SU01). I would like an e-mail address for each billing type, but I don't now how to change "mail_sender" parameters in the smartforms (ZRLB_INVOICE program).
Can you help me, please?
sharing piece of code , where i think could make a difference ,
PERFORM set_print_param USING ls_addr_key
ls_dlv-land
CHANGING ls_control_param
ls_composer_param
ls_recipient
ls_sender
cf_retcode
here the sender is is_sender : DATA: ls_sender TYPE swotobjid.
swotobjid - structure contains
LOGSYS
OBJTYPE
OBJKEY
DESCRIBE
i dunno how it has 2 b changed. right now i guess it's getting filled with user name data from su01.
Thanks.
ArunDid you check the subroutine set_print_param. This sub routine should tell you the logic on how the data for sender is used. Use your own custom logic to fill the sender.
-
Can't send or receive mail using mail
I am posting for a new Mac user. We don't know all the terms so please be patient. She can get to webmail at sbc..... and use but can't use Mail to send or recieve. Help!
ibook running Tiger 10.4.4
dialup connection with sbcglobal.....
can use SBC webmail
have checked pop and smtp connections with sbc
Sbc says they can't help don't have mac mail instructions
Can anyone help? Is there something we are missing?
What good are they if they can't help?
rosieagAuthentication my ISP set to None in Mail---and
tutorial has no such thing authentication for her in
server settings? Also, under advanced
authentication mine is Password and the tutorial has
........(for password) I assume. We entered her
password.
We know the ports are important. Hers are set to 25
and 25. SSL is not checked
Help me keep straight on your setting versus hers. For the sbcglobal, in Advanced the Port should be 110 -- this is for the Incoming POP3 server.
In the Server Settings for the Outgoing server, the Port should be 25, and the Authentication set to Password, and the Username entry should be the full email address (this is different for some ISP, but SBC instructs to use the full email address), and of course the Password. In both place where Username is required, it should be the entire email address for her sbcglobal.
Have I missed anything? Do you still have your setup working AOK?
Ernie
BTW, I am a 61 year old, grandfather, but perhaps a little geekier than some! -
Hello Gurus,
Please help me with the mail sending attachment(excel file) using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
Here is the actual problem.
I am using the FM SO_NEW_DOCUMENT_ATT_SEND_API1 in my prog.
My attachment(excel sheet which is taken from internal table) contains the 10 records with one header description and data related to that description.
I am able to send the attachment but the records in the attachment has more than 255 characters nearly 700 character length.
So I spilt up each internal table record(with structure type solisti1) into 3 internal table records and populated it.
It is showing the entire record in the attached file but I am not able to see some fields which are embeded deeply inside the cells.
And they are not having any proper allignment.
Please do help me.
Promise to reward points.
MacHere is the sample code....
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
Creating the document to be sent
DOC_CHNG-OBJ_NAME = 'OFFER'.
DOC_CHNG-OBJ_DESCR = 'Auction of a Picasso jr'.
OBJTXT = 'Reserve price : $250000'.
APPEND OBJTXT.
OBJTXT = 'A reproduction of the painting to be auctioned'.
APPEND OBJTXT.
OBJTXT = 'is enclosed as an attachment.'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
Creating the entry for the compressed document
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
Creating the document attachment
(Assume the data in OBJBIN are given in BMP format)
OBJBIN = ' \O/ '. APPEND OBJBIN.
OBJBIN = ' '. APPEND OBJBIN.
OBJBIN = ' / \ '. APPEND OBJBIN.
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'picasso.bmp'. APPEND OBJHEAD.
Creating the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'BMP'.
OBJPACK-OBJ_NAME = 'ATTACHMENT'.
OBJPACK-OBJ_DESCR = 'Reproduction object 138'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK..
Entering names in the distribution list
RECLIST-RECEIVER = '<name>@yahoo.com'.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
RECLIST-RECEIVER = 'DLI-NEUREICH'.
RECLIST-REC_TYPE = 'P'.
APPEND RECLIST.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
CASE SY-SUBRC.
WHEN 0.
WRITE: / 'Result of the send process:'.
LOOP AT RECLIST.
WRITE: / RECLIST-RECEIVER(48), ':'.
IF RECLIST-RETRN_CODE = 0.
WRITE 'sent successfully'.
ELSE.
WRITE 'not sent'.
ENDIF.
ENDLOOP.
WHEN 1.
WRITE:
/ 'no authorization to send to the specified number recipients!'.
WHEN 2.
WRITE: / 'document could not be sent to any of the recipient'.
WHEN 4.
WRITE: / 'no authorization to send !'.
WHEN OTHERS.
WRITE: / 'error occurred during sending !'.
ENDCASE.
Regards,
Pavan. -
We use SO_NEW_DOCUMENT_ATT_SEND_API1 to send e-mails to employees for various notifications. The e-mails go out through SCOT and are sent to our lotus notes.
We have a project being implemented, where the data we are sending in the note is kind of sensitive, so we'd like to see if we could send the e-mail as encrypted. Does anyone know if there is some parameter we can set upon sending that would encrypt the text in the e-mail for sending?FORM pssword_prot_encryptpdf .
DATA: BEGIN OF command_list OCCURS 0.
INCLUDE STRUCTURE sxpgcolist.
DATA: END OF command_list .
DATA: BEGIN OF exec_protocol OCCURS 0.
INCLUDE STRUCTURE btcxpm.
DATA: END OF exec_protocol.
DATA: status LIKE btcxp3-exitstat,
commandname LIKE sxpgcolist-name VALUE 'ZTEST',
sel_no LIKE sy-tabix.
* GET LIST OF EXTERNAL COMMANDS
CALL FUNCTION 'SXPG_COMMAND_LIST_GET'
EXPORTING
commandname = commandname
operatingsystem = sy-opsys
TABLES
command_list = command_list
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'SXPG_COMMAND_CHECK'
EXPORTING
commandname = command_list-name
operatingsystem = sy-opsys
EXCEPTIONS
no_permission = 1
command_not_found = 2
parameters_too_long = 3
security_risk = 4
wrong_check_call_interface = 5
x_error = 6
too_many_parameters = 7
parameter_expected = 8
illegal_command = 9
communication_failure = 10
system_failure = 11
OTHERS = 12.
CLEAR command_list.
REFRESH command_list.
DATA: v_dir_input TYPE sxpgcolist-parameters.
DATA: v_dir_input1 TYPE sxpgcolist-parameters.
break developer.
command_list-name = 'ZTEST'.
command_list-opsystem = 'Windows NT'.
CONCATENATE 'd:\pdf\' main_dtl-vbeln '.PDF' INTO name.
CONCATENATE 'cmd /c d:\pdf\encryptpdf.exe' '-i' name '-o ' name '-u' hdr-password INTO v_dir_input SEPARATED BY space .
READ TABLE command_list INDEX sel_no.
break developer.
CONCATENATE command_list-opcommand v_dir_input INTO command_list-opcommand SEPARATED BY space.
* CHECK AUTHORIZATION
command_list-addpar = 'X'.
APPEND command_list.
CONSTANTS: c_extcom TYPE sxpgcolist-name VALUE 'ZTEST',
c_oper TYPE syopsys VALUE 'Windows NT'.
DATA: t_result TYPE STANDARD TABLE OF btcxpm.
v_dir_input = command_list-opcommand.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = c_extcom
additional_parameters = v_dir_input
operatingsystem = c_oper
TABLES
exec_protocol = t_result
EXCEPTIONS
no_permission = 1
command_not_found = 2
parameters_too_long = 3
security_risk = 4
wrong_check_call_interface = 5
program_start_error = 6
program_termination_error = 7
x_error = 8
parameter_expected = 9
too_many_parameters = 10
illegal_command = 11
wrong_asynchronous_parameters = 12
cant_enq_tbtco_entry = 13
jobcount_generation_error = 14
OTHERS = 15.
ENDFORM. " PSSWORD_PROT -
How do I add an email address for mail?
I want to have different email addresses for different members of my family. Can I and how do i do it?
There are various e-mail services providers like Yahoo, Gmail, Aol, Outlook etc. You can go to their website and create an e-mail account for each of your family member (I recommend Gmail by Google). Once you have created all the accounts, you can add them to the mail app on the mac very easily. So, go and create e-mail accounts for your family members and then in the Mail app click Mail -> Add Account, select your e-mail service provider and follow the instructions on the screen.
-
Why we do not need sender agreement for Mail and SOAP adapter
Hi SDN,
I know, we do not need sender agreement for IDOC ,HTTP,XI adapters. As these three adapters will run in Integration engine of the abap stack.
<b>In our scenario if sender is other than IDOC or HTTP or XI .</b>
By Refering Sivamni's blog.
<b>/people/siva.maranani/blog/2005/05/25/understanding-message-flow-in-xi
message will be pickedup by communication channel with the help of sender agreement and prepare XI message header by performing cpa cache lookup. then message will go to module processor etc.
<b>In our scenario if sender is IDOC or HTTP or XI .</b>
As these 3 adapters are run in Integration engine.
Doubt 1:
how the integration engine will create the xi message header like sender interface sender system name etc...
Doubt 2:
I believe SOAP and mail adapter will run in adapter engine.but i came to know that we do not need sender agreement and sender comm channel for these two adapters too...then how the XI message header will create...
Please do correct me if i am wrong
and throw some light on the same..
Appreciate your help....
Regards,
Reehan.Reehan,
Thanks for pointing me to that link. Guess I was wrong .,But,let me try to put to you why you need a sender agreement for a Sender SOAP Adapter,
1. In the sender SOAP adapter , the Sender Interface and the Interface Namespace as provided in the fields Default Interface Name and InterfaceNamespace. The Name of the Sender Service is provided in the WSDL when you ceate the WSDL in the Integration Directory. So, as all details are available in either the Sender SOAP adapter or in the WSDL url you do not need a Sender Agreement. It is not obligatory but you can always create the Sender Agreement.
2. For the mail adapter , if you select the option XIPAYLOAD, you will have the option to mention the Interface Name and Interface Namespace under XI Parameters and so in this case as once again the details provided in the sender agreement are available in the Sender Adapter itself the sender agreement is not needed for the mail adapter when you have select option XIPAYLOAD.
If you have selected XIALL then you need a sender agreement.
Regards
Bhavesh -
Change sender address for reports in waas
Hi all
when schedule a report and send it by mail to us we receive a mail with sender [email protected], our customer wants to change this
i have checked the config properties in CM (not CLI) and looked after button of reports but i can't find an option to change this
please advise?It is not a configurable property today. Will be considered as an enhancement request for future releases.
-
Sateillite A200-1A9: Issue with sending/receiving E-mail using Windows Mail
Using Windows mail I have to close/open the programme to be able to send mails, they get stuck in the Outbox. By closing and reopening the programme the mail gets sent. Also the Blue figure 1 in brackets showning 1 unread mail in the Outbox is there all the time although there is no mails read or unread in the Outbox
Not a server problem as all mails are going/receiving fine on my desktop.
Pressing send and receive button does not help. although some of the time it will receive mails when pressing send/receive but will not send them
I do have Norton Internet security 2007 and am getting fed up with the continuing problems that this seems to cause over the period 2004-7.
Is there an issue with the Windows mail programme running with Vista that is knownI think I have found a solution
Please check this:
Windows Mail will not Send or Receive mails
http://support.toshiba-tro.de/kb0/TSB7701X30005R01.htm
It seems that the update of Software Desktop SMS to the newest version will help to sort out this problem. -
Problem when "Checking for Mail" using IMAP and POP
Hello,
I have an iPhone 3G running 2.0.1 and created 3 mail accounts (1 Gmail using IMAP, and 2 using POP).
When I first set up the phone 2 days ago the installer copied the settings from my Mac and emails on my iPhone showed up correctly.
Since yesterday something is screwed up because when I try to fetch new email I only see "Checking for Mail" at the bottom of the screen but nothing happens and new emails don't show up.
Any idea how to fix this problem?
Thanks!FYI you don't actually have to completely reboot the phone. From inside your email program, push and hold the HOME button for 7 or 8 seconds until it exits email and dumps you back at your home screen. That causes a hard-quit of the email program and will reset it. You should begin getting email again immediately after.
Here's hoping Apple fixes that anomaly on their next release... -
How send attachments to mail using oracle alerts
Hi All,
I am working on Oracle Alerts in oracle applications. how to send attachment to mail.
Thanks in Advance,
Reddy.
Edited by: user9540785 on Mar 22, 2009 4:48 AMAs a workaround, you can kick start a custom workflow in actions rather than sending mail. In that custom workflow you can send attachments as part of the notification to the respective recipients.
Thanks
Nagamohan
Maybe you are looking for
-
When I open a Yahoo email the page jumps down to the bottom of the page. Is this a Yahoo problem, Mozilla or neither? == This happened == Every time Firefox opened == last week
-
How to genrate Report for Result of SNP & PP/DS ?
Hi All, Currently i am working on SCM 5.0 Version. I need to prepare a Report for Product Wise Planned Order or Production Order & Resource Wise Planned Orders or production Orders. Can anyone tell me How can achive the above requirement? T
-
Background pictures for iPhone 3G
Is there any way of applying a background/wallpaper picture behind the icons? I know we have the background for when you open to phone, but it would be a really cool feature to be able to apply background/wallpaper behind the icons. Don't you guys ag
-
I use yahoo smtp. Broadband email service here in Canada by the cable provider monopoly....... Oh I digress Anyway, is there a way to create folders In iPad mail for smtp mail type providers? It doesn't appear that yahoo mail or Rogers webmail allow
-
HT201269 iphone disabled, how do I enable it
I have an iphone 3 and I tried my password too many times. My iphone is disabled. How do I enable it again?