Sending email from BSP
Hi,
In my project, I have a task that after clicking a button say "SendEmail", mail has to be sent to the customer.
How can I do this??
Any ideas plz....
Thanks,
Ravindra.
Hi ravindra,
first u need to configuration in TX SCOT.
u can check documentation at
http://help.sap.com/saphelp_webas620sp25/helpdata/en/58/97c43af280463ee10000000a114084/
content.htm
next, plz check oss note 455140 for SMTP setup.
so i think the following link will be helpful for u to send mails from BSP.
Sending Emails from a BSP Application
Hope it will help u.
Regards,
Ankur
Message was edited by: Ankur Jain
Similar Messages
-
Hi All
i need to send an email from BSP application when check box is clicked .
I have the details such as pernr of an employeee by using this i need to retrieve email id of that employee and have to send an email to that employee with some text
1. How to retireve email id of an employee using pernr
2.How to send email from bsp application
ThanksHi ,
<b>To get the Email for the given PERNR:</b>
* Get the Communication detail from Infotype 0105
SELECT
USRID_LONG
FROM PA0105 INTO
RECEIVER_EMAIL
WHERE PERNR = PERNR AND
BEGDA <= SY-DATLO AND
ENDDA >= SY-DATLO AND
SUBTY = '0010'
<b>Look at this code which will send a email from BSP..</b>
DATA:
SEND_REQUEST TYPE REF TO CL_BCS,
DOCUMENT TYPE REF TO CL_DOCUMENT_BCS,
SENDER TYPE REF TO CL_SAPUSER_BCS,
RECIPIENT TYPE REF TO IF_RECIPIENT_BCS,
EXCEPTION_INFO TYPE REF TO IF_OS_EXCEPTION_INFO,
BCS_EXCEPTION TYPE REF TO CX_BCS,
WA_MESSAGE TYPE BAPIRET2.
DATA:
LEN TYPE I,
TEXTLENGTH TYPE SO_OBJ_LEN,
ITAB_MESSAGE TYPE SOLI_TAB,
WA_SOLI TYPE SOLI.
*Load class defnitions
CLASS CL_CAM_ADDRESS_BCS DEFINITION LOAD.
CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.
* Create persistent send request
TRY.
SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
* Format the message content to be sent into internal table
IF NOT MESSAGE IS INITIAL.
WA_SOLI-LINE = MESSAGE.
APPEND WA_SOLI TO ITAB_MESSAGE.
ELSE.
WA_MESSAGE-MESSAGE = `Enter some Message and then Click "Send Your Message" button.`.
APPEND WA_MESSAGE TO RETURN.
ERROR = 'X'.
RETURN.
ENDIF.
LEN = STRLEN( MESSAGE ).
TEXTLENGTH = LEN.
* Create document
CALL METHOD CL_DOCUMENT_BCS=>CREATE_DOCUMENT
EXPORTING
I_TYPE = 'RAW'
I_SUBJECT = SUBJECT
I_LENGTH = TEXTLENGTH
I_TEXT = ITAB_MESSAGE
RECEIVING
RESULT = DOCUMENT.
* Add document to send request
CALL METHOD SEND_REQUEST->SET_DOCUMENT
EXPORTING
I_DOCUMENT = DOCUMENT.
* Get sender object
CALL METHOD CL_SAPUSER_BCS=>CREATE
EXPORTING
I_USER = SY-UNAME
RECEIVING
RESULT = SENDER.
* Add sender
CALL METHOD SEND_REQUEST->SET_SENDER
EXPORTING
I_SENDER = SENDER.
* Create recipient
CALL METHOD CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS
EXPORTING
I_ADDRESS_STRING = RECEIVER
RECEIVING
RESULT = RECIPIENT.
* Add recipient with its respective attributes to send request
CALL METHOD SEND_REQUEST->ADD_RECIPIENT
EXPORTING
I_RECIPIENT = RECIPIENT
I_EXPRESS = ' '
I_COPY = ' '
I_BLIND_COPY = ' '.
SEND_REQUEST->SET_SEND_IMMEDIATELY( 'X' ).
* Send document
CALL METHOD SEND_REQUEST->SEND
RECEIVING
RESULT = SENT.
IF SENT IS NOT INITIAL.
COMMIT WORK.
WA_MESSAGE-MESSAGE = 'Your Message sent Successfully!!!'.
APPEND WA_MESSAGE TO RETURN.
ELSE.
ERROR = 'X'.
WA_MESSAGE-MESSAGE = 'Your Message could not be sent. Please try again later'.
APPEND WA_MESSAGE TO RETURN.
ENDIF.
CATCH CX_ADDRESS_BCS .
CATCH CX_SEND_REQ_BCS.
CATCH CX_DOCUMENT_BCS.
WA_MESSAGE-MESSAGE = 'Your Message could not be sent. Please try again later'.
APPEND WA_MESSAGE TO RETURN.
ERROR = 'X'.
ENDTRY.
Raja T -
hi ,
I have a requirement that when I click on a button a mail must be send .
I am using MVC and need to use the FM SO_NEW_DOCUMENT_SEND_API1 .
I have created a view with a text area and a button.Its attribute is an instance of a model class that has a string attribute to get the text input.The sender will be manually entered in the method that calls the FM.
My problem is how to declare the variables that has to be passed to the FM.How the message is put into the table.Please dont giver any links as I have already checked previous threads.
Thanks,
Raju.Refer this link..
Re: Sending An email from BSP
<b>Note:</b> Here is the corrected link what Dezso Pap has posted above:
/people/dezso.pap/blog/2006/03/28/send-mail-fax-with-100-lines-from-a-bsp-application
<i>* Reward each useful answer</i>
Raja T
P.S: Pls close your previous thread..https://www.sdn.sap.com/irj/sdn/profile?userid=3572236
Message was edited by:
Raja Thangamani -
Cannot send email from yahoo account on iPhone 5
I just got an iPhone5 and I couldn't set up my Yahoo email as "yahoo"--it would not allow me to complete the process despot multiple attempts. I had to set it up as an "other" account. I can receive and read emails on my phone, but when I reply those messages will not send. They go to the outbox and an error message pops up that says" the email account has been rejected by the server" Does anyone have advice on either issue: setting up yahoo properly and/or sending email from phone?
outgoing mail server
SMTP - Yahoo! SMTP Server
primary server
Yahoo! SMTP server - ON
server port 465
That's what I have for my yahoo account. -
Cannot send email from non .mac server
I am only able to send/reply emails using my .mac address. My 2 other server addresses keep giving me the following message.
"Cannot send mail. One of the recipient addresses was invalid".
How can I fix this?You should be able to send email from Safari, however I do wonder why you wish to do this and whether there is something inherently wrong with using your mail app and your iCloud address.
-
Cannot send email from MobileMe account
Apple recently pushed out an update to the MobileMe calendar. Since upgrading my account, I am unable to send emails from Firefox4 (current version) in Windows. The page sits indefinitely at a loading screen. Apple Support won't help because it isn't an issue with Safari. Anyone else have this issue?
When using the MobileMe account preset to create the account, the SMTP server is created with 587 as the SMTP server port, which can't be changed when using the MM account preset to create the account.
-
Cannot send email from an iPhone to a Outlook group.
Hi,
My question is simple and I'd like an exactly same answer : Can iPhone users send emails from their iPhone's to one or more groups created in Outlook?
This is my situation: our organization is using iPhone to provide email, calendar, contact, task etc. to some of their employees. We are using Airwatch MDM Agent on user's iPhone because we have an Airwatch server in place. I have an user and she has an iPhone 5 and she has created some groups in Outlook but these groups are not reflected in her Contacts in the iPhone. I have update her phone with the latest update, although I was almost sure that this was not the issue, then I've found some interesting posts on internet saying that this was a known problem for the users with the previous iOS but I thought this might has been corrected with the iOS, apparently not.
Also I've tried ''the trick'' that is posted on several forums with the iCloud but neither so it's working. I am looking for a straight answer, if this works or not on iPhone's?
Thanks,
Sebastian.There indeed ARE apps in the app store that will do what you want. Just search and find the one that best fits your needs.
-
Cannot send email from scanned pages
I am having trouble with the updated HP remote app on Ipad, since the update I can scan the pages in, but then cannot send them via email. This is qute important because i work remotley from the office and rely on getting my design drawings in on a nightly basis
please helpcannot send email from scanned pages
-
Cannot send email from ipad?
I can receive, but cannot send emails from my iPad. Always get message that I have wrong user name or password.
Then make sure that the settings are correct in your email account.
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. -
Cannot send email from Exchange 2007 to Exchange 2013
Hello Anyone,
Anyone can help? I've prepare MS Exchange 2013 already, for Migration MS Exchange 2007 and I got the issue.
My issue is I can't send email from Exchange 2007 to Exchagen 2013, but for Exchange 2013 can send email to Exchange 2007,
is my issue only internal email for external email both Exchange server is working fine.
Regards,
EakkasakThanks for your reply, when I send email from Exchange 2007 to Exchange 2013 I'm get the error message below.
Delivery is delayed to these recipients or distribution lists:
Eakkasak Buajan
Subject:
This message has not yet been delivered. Microsoft Exchange will continue to try delivering the message on your behalf.
Delivery of this message will be attempted until 8/29/2014 8:30:29 PM (GMT+07:00) Bangkok, Hanoi, Jakarta. Microsoft Exchange will notify you if the message can't be delivered by that time."
I'm already tick "Exchange server Authentication" in the Default Receive connector properties of Exchange 2013"
I'm restart services and restart all Exchange Server but doesn't work.
Thanks,
Eakkasak
Sent by Microsoft Exchange Server 2007 -
Cannot send email from my mobileme on iphone 3g
Suddenly coudn't access my mobileme email account. So I changed my password; and since I couldn't send email from my iphone 3G
I can send/receive emails from icloud webpage or Thunderbird.
Any clues?outgoing mail server
SMTP - Yahoo! SMTP Server
primary server
Yahoo! SMTP server - ON
server port 465
That's what I have for my yahoo account. -
Cannot send email from Iphone. A setting is off.
What are the correct settings to send email from my aol account that's included in my I Cloud acct. any suggestions???? Thanks Sue
Read this
How do I set up AOL Mail on my iPhone or iPod Touch? - AOL Help -
Why can't i send email from my outbox? Mail is blocked from coming in also.
Check your settings, maybe the mail index is at fault.
Setup Wizard and troubleshooting tips:
http://www.apple.com/support/mail
Also has a link to Mail community section. -
Cannot send email from Exchange 2007 to Exchange 2013 - Coexistence
Existing Exchange 2007 SP3 1 MBX, 2 CAS/HT, 2 ET servers.
I have added an Exchange 2013 server with MBX/CAS role.
Email will flow from Ex2013 server no problem. Mail from Ex2007 systems cannot deliver to Ex2013 boxes, it dies in queue with a 4.4.7 expired message after issuing a delay message.
I can telnet to ports 25, 587,717,465,475, and 2525 from Ex2007 HT role to new Exchange 2013 server. I can send email from Ex2007 HT role server to new Exchange 2013 server using telnet to port 25.
A ‘get-mailbox’ from the Ex2007 HT role server returns the server and database properly on the test users on Exchange 2013 server.
The only strange thing I am seeing is from the Ex2007 systems, a ‘get-exchange server’ command shows the new Ex2013 server as role ‘16439’ which looks to perhaps be normal.
Why is email not flowing to the new users on Exchange 2013?You should have exchange server authentication ticked in Default Receive connector in Exchange2007.
Exchange 2007 and Exchange 2013 in the same subnet/network. if not please check any spam agent running between the networks. Are you running antispam on Exchange2013 ?
MAS -
Cannot Send Email from SAP Business One
Hi Experts
I have configured SAP Email Services from the Mailer Service and Customer can send emails all the while,
Now I have an Issue for One User,
Iam using the Same Machine, Same Database with Manager Login, I can send Email from SAP with Attachments
But When I use another Super user the system is not delivering the Email and it Goes to the Sent box (but not delivered)
Have anyone encountered the Issue before
Please hep to solve this issue permanently
Thanks and Regards
Vinodh Kumar MohanHi Vinodh Kumar Mohan,
If the email can be found in Sent box, it must be delivered already.
The problem could be on the email recipient side. It may go to the junk mail.
Thanks,
Gordon
Maybe you are looking for
-
How to change the text in Footer
Hi SAP Gurus, Am not ABAP expert, currently I have one change request that we have one SAP form. in that Form we have Footer window to print the footer in the out put, currently my requiremtn is i need to delete some of the lines in the footer text
-
Connecting Mac Pro with GeForce GT120 to monitor and TV at same time
Hi - I just want to know in advance of buying the latest 8 core Mac Pro with a single NVIDIA GeForce GT120 graphics card, will this connect to both my apple cinema display 20'' and my Panasonic Viera LCD TV's 'PC Input' at the same time? From what I
-
I've been searching and searching for a better solution to put my MacBook into external monitor mode. As in when I plug my external monitor in, only that monitor comes on and the MacBook's monitor switches off, all with out me having to first close t
-
Java.lang.StringIndexOutOfBoundsException: String index out of range: -2
Hello, I have a question about this error: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -2 I am doing my java development in IBM Rationale eclipse. I am compiling and running everything just fine. W
-
E-Recruitment Applications in Websphere Portal
Hi, We have a requirement wherein we need to have E recruitmtnt applications in IBM Websphere Portal.I have gone through few documents and i am not clear how to move forward.Could anyone suggest some best way to achieve this. 1.If we do Integration b