Sending the email from the sap gateway

hi,
           Any body please help me how to send the email from the sap end. what is the funcion module used for that one what the parameters need to pass for that function module.

Hi, check if below code is helpful
Variables for EMAIL functionality
DATA: maildata   LIKE sodocchgi1.
DATA: mailpack   LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
DATA: mailhead   LIKE solisti1 OCCURS 1 WITH HEADER LINE.
DATA: mailbin    LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: mailtxt    LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: mailrec    LIKE somlrec90 OCCURS 0  WITH HEADER LINE.
DATA: solisti1   LIKE solisti1 OCCURS 0 WITH HEADER LINE.
PERFORM send_form_via_email.
      FORM  SEND_FORM_VIA_EMAIL                                      *
FORM  send_form_via_email.
  CLEAR:    maildata, mailtxt, mailbin, mailpack, mailhead, mailrec.
  REFRESH:  mailtxt, mailbin, mailpack, mailhead, mailrec.
Creation of the document to be sent File Name
  maildata-obj_name = 'TEST'.
Mail Subject
  maildata-obj_descr = 'Subject'.
Mail Contents
  mailtxt-line = 'Here is your file'.
  APPEND mailtxt.
Prepare Packing List
  PERFORM prepare_packing_list.
Set recipient - email address here!!!
  mailrec-receiver = '[email protected]'.
  mailrec-rec_type  = 'U'.
  APPEND mailrec.
Sending the document
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data              = maildata
      put_in_outbox              = 'X'
    TABLES
      packing_list               = mailpack
      object_header              = mailhead
      contents_bin               = mailbin
      contents_txt               = mailtxt
      receivers                  = mailrec
    EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      operation_no_authorization = 4
      OTHERS                     = 99.
ENDFORM.                    "send_form_via_email
     Form  PREPARE_PACKING_LIST
FORM prepare_packing_list.
  CLEAR:    mailpack, mailbin, mailhead.
  REFRESH:  mailpack, mailbin, mailhead.
  DESCRIBE TABLE mailtxt LINES tab_lines.
  READ TABLE mailtxt INDEX tab_lines.
  maildata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( mailtxt ).
Creation of the entry for the compressed document
  CLEAR mailpack-transf_bin.
  mailpack-head_start = 1.
  mailpack-head_num = 0.
  mailpack-body_start = 1.
  mailpack-body_num = tab_lines.
  mailpack-doc_type = 'RAW'.
  APPEND mailpack.
  mailhead = 'TEST.TXT'.
  APPEND mailhead.
File 1
  mailbin = 'This is file 1'.
  APPEND mailbin.
  DESCRIBE TABLE mailbin LINES tab_lines.
  mailpack-transf_bin = 'X'.
  mailpack-head_start = 1.
  mailpack-head_num = 1.
  mailpack-body_start = 1.
  mailpack-body_num = tab_lines.
  mailpack-doc_type = 'TXT'.
  mailpack-obj_name = 'TEST1'.
  mailpack-obj_descr = 'Subject'.
  mailpack-doc_size = tab_lines * 255.
  APPEND mailpack.
*File 2
  mailbin = 'This is file 2'.
  APPEND mailbin.
  DATA: start TYPE i.
  DATA: end TYPE i.
  start = tab_lines + 1.
  DESCRIBE TABLE mailbin LINES end.
  mailpack-transf_bin = 'X'.
  mailpack-head_start = 1.
  mailpack-head_num = 1.
  mailpack-body_start = start.
  mailpack-body_num = end.
  mailpack-doc_type = 'TXT'.
  mailpack-obj_name = 'TEST2'.
  mailpack-obj_descr = 'Subject'.
  mailpack-doc_size = tab_lines * 255.
  APPEND mailpack.
ENDFORM.                    "prepare_packing_list

Similar Messages

  • TS3899 When sending email from the Mail App or through other Apps, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design.

    When sending email from the Mail App or through other Apps on my iPad, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design, especially since I had already checked the From: address.
    iPad 4 running iOS 8.1.3

    3rd party email addresses have to be deleted on every synmced mac product, although I have 1and1.co.uk and my imac updatetes the mails in that account from mac mail.
    Yahoo etc is a 2 step deleting process but good to get your emails pushed when on the go.
    LJ
    http://www.facebook.com/The.Cowboy.Party

  • Sending encrypted emails from the iPad is not working

    I can't get sending encrypted emails working on my iPad3 running iOS 8.0.2
    Let me explain what I did:
    1. I created S/MIME certificates for 2 email addresses on my iMac in Keychain Access. One email address exists only on the iMac the other only on the iPad.
    2. I set "When using this certificate" to "Always Trust" in both certificates.
    3. I exported 1 S/MIME certificate (p12) and installed it on the iPad. Then I deleted this certificate and its private&public keys in iMac Keychain Access
    4. I exchanged public certificates between the 2 devices. I installed one certificate in iMac Keychain Access and the other in iPad/Settings/General/Profiles.
    5. On the iMac in the iPad certificate I set "When using this certificate" to "Always Trust"
    6. I tested whether I can send and receive signed and/or encrypted emails
    Results:
    1. From the iMac I can send signed and/or encrypted emails to the iPad.
        On the iPad I can read the encrypted emails. The signature is not trusted
    2. On the iPad I can send signed messages to the iMac. On the iMac the signature is trusted.
        I cannot send encrypted emails from the iPad to the iMac. The iPad doesn't know about the public certificate in iPad/Settings/General/Profiles
    So much for the straight forward part. Now it gets a bit more complicated and confusing.
    1. I deleted the iMac certificate in the iPad/Settings/General/Profiles. Then in iPad Mail I opened the signed mail coming from the iMac.
        I viewed the untrusted certificate in Mail and installed it. From this point on all signed emails from the iMac are trusted.
        Strangely the by this method installed certificate doesn't appear in iPad/Settings/General/Profiles.
        Furthermore I still cannot send encrypted messages to the iMac. This certificate installation seems to be used only to check trust worthiness of the signature.
        Installing on top the iMac public certificate in iPad/Settings/General/Profiles doesn't enable to send encrypted messages from the iPad either.
    To be sure that this problem relates to the iPad certificate management and is not related to an error by me I did the following:
    1. I transferred a p12 file for a certificate that I created in my iMac to a PC running Windows7.
    2. I transferred a p12 file plus its public key (.pem) that I created in my iMac to another iMac into Keychain Access. (I have not tested if the pem is needed).
    3. On the other iMac and the PC I made sure that the certificates are trusted.
        On the PC that means in the Certificate Manager the p12 needs to be in the "Personal" folder and in the "Trusted Root Certification Authorities" folder.
        The public keys need to be in the "Trusted People" folder and the "Other People" folder. One can just copy/paste the certificates.
    4. In both cases I deleted the certificate and public/private keys on my iMac.
    5. I exchanged public certificates between the devices.
    6. I tested exchanging signed and/or encrypted emails between my iMac and the PC and my iMac and the other iMac.
    Result:
    1. I can send signed and/or encrypted emails to the other iMac and the PC
    2. The PC and the other iMac trust the signature from my iMac and can read the encrypted emails
    3. My iMac can read encrypted emails from the PC and the other iMac
    4. My iMac trusts emails with signatures from the PC and the other iMac.
    Everything is working as it should.
    After the above test I wanted to see whether I can set up encrypted email exchange between the iPad and the PC. Strangely iPad Mail recognized the public certificate from the PC installed in iPad/Settings/General/Profiles and allowed me to send an encrypted email to the PC. However, on the PC I was unable to read the encrypted email. And the other way around, encrypted emails send from the PC to the iPad cannot be read on the iPad.
    My conclusion from all this testing is that iPad mail encryption is still "under construction".

    I was able to resolve the above described problem to some degree. Setting up sending and receiving encrypted emails between iOS and OSX I have working.
    What is still not working is reading encrypted emails on the iPad/iOS8 received from Windows 7 PC. And sending encrypted emails to Windows 7 PC.
    The details about how I solved part of the problem are described here.

  • Is there a way to send an email from the web gallery module

    Hi all,
    does anyone know if there is a way to send an email from the webmodule, for example to send the link where the gallery was posted?
    Thanks for any help.
    Bart

    I'm certainly not aware of any way, thus my post here (please cast a vote):
    http://feedback.photoshop.com/photoshop_family/topics/lightroom_sdk_email_support
    I don't know if you could get away with using LrHttp to open a mailto link.
    The only other option I know is to send data to your web server and have it send SMTP.

  • Send an email from the portal

    How do I send an email from the portal?
    Is there support for the IMAP protocol?
    Thank you for any and all help,
    Geoffrey

    WLS has support for the JavaMail standard. That's SMTP on the send side and
    IMAP (or others like POP3) on the receive side. Portal does not have the end
    all, be all IMAP client nor does it have a full featured SMTP client to compose
    mail but the sample portlets have a start.
    Geoffrey wrote:
    How do I send an email from the portal?
    Is there support for the IMAP protocol?
    scott dunbar
    bea systems, inc.
    boulder, co, usa

  • Adobe Creative Cloud Muse: Why I don't receive anymore the email from the forms I created in several websites?

    Adobe Creative Cloud Muse: Why I don't receive anymore the email from the forms I created in several websites?

    Hello Sanjit,
    thank you for replying.
    I had the problem on this website, I have two forms, one simple and the other more sofisticated:
    www.oeso.org
    (at the bottom I have a simple contact form) and
    I created also a form on www.oeso.org/new-membership.html
    but i didn't receive any reply so
    I put the form on my website (architecturevisualdesign.ch) in a hidden form:
    http://architecturevisualdesign.ch/oeso-new-membership.html
    and here I receive the OESO New Membership Form Submission reply.
    Thank you for your help.
    Best regards,
    Nicole
    2014-09-09 11:17 GMT+02:00 Sanjit_Das <[email protected]>:
    Adobe Creative Cloud Muse: Why I don't receive anymore the email from the forms I created in several websites?
    created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion
    Please provide the site url in question , also have you hosted the site on Business Catalyst ?
    Emails can land to spam/junk folders so you should also check the folders.
    Thanks,
    Sanjit
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6713391#6713391
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • I have accidentally deleted the trash bin in my mailbox and can no longer move any deleted mail into the trash.  I thought I was removing all the emails from the trash but somehow managed to delete the bin instead.  Does anyone know who to reinstate it?

    I have accidentally deleted the trash bin in my mailbox and can no longer move any deleted mail into the trash.  I thought I was removing all the emails from the trash bin but somehow managed to delete the bin instead.  Does anyone know who to reinstate the bin?

    You are running 10.6.8? If yes, I assume you have your install disks? As the trash bin is part of Mail app and that is an integral part of the OS, the only way I know to get it back is to reinstall the OS. You won't lose any files, just reinstall the OS over the top of the current system.

  • Delete an email from the pc,  does not delete the email from the iPad.

    Hi
    When I Delete an email from the pc,  does not delete the email from the iPad.  I'm not able to find a setting to fix this.  Does it mean I have to manually delete the emails from the iPad? 
    Thank you in advance for your help.

    Thanks, I was told that my Yahoo account has to be setup on the Mac as a POP account.  Can you please let me know what the difference is (in simple terms) between IMAP and POP? 

  • I deleted my old Email account because I wanted to create a new one, and I did. However, when ever I send an Email from the Mail app on my laptop it says the Email was sent from my old Email and I just can not get rid of it.

    I deleted my old Email and only used my new Email to set up the Mail app on my laptop. And the old Email is completely dead, hotmail.com says the Email no longer excists when I try to sign back in to it however my Emails remain saying 'Sent from Jordan [*old Email*].
    I can't find a solution!!

    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact AppleCare(or Apple ID Support), upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

  • Sending an Email from the app along with table data

    Hi All,
    I would like to send an email from my app. I tried to put in the field attachment SQL this query: select * from Table_Name where id = (select max(id) from Table_Name) but it did not work. It showed me this error:
    1 error has occurred
    Wrong number of columns selected in the SQL query. See Help of attribute for details.
    I would like to send an email every time the user insert a row with that row in the email... How can I do that?
    Thank You.

    What I would suggest is the following:
    Build an After Insert Trigger on the table in question. In this trigger build a string with ALL the columns that are being inserted into the table. Then you will need to build some local variable to submit your mail. You will send your e-mail via UTIL_SMTP mail, since you may NOT always being in an APEX application when the table is updated..
    Ask away if you have more questions..
    Thank you,
    Tony Miller
    Webster, TX
    I am a Ranger! We walk in the dark places no others will enter! We stand on the bridge and no one may pass! We live for the One, we die for the One!
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Cannot send some emails from the address book. Comcast says it is not a server problem.

    Keep getting this message when trying to send a group email from the address book -"The size of the message you are trying to send exceeds a temporary size limit of the server. The message was not sent, try to reduce the message size or wait some time and try again. The server responded: 4.1.1... temporary failure."
    Comcast has checked it - the issue is not the server they say. This problem just started 4 days ago. It appears other people have this problem on the thunderbird forum and it has not been resolved yet.

    The Comcast server is issuing the error message. Have them explain how this is not their problem.

  • How to send an email from the database

    i have create a post insert trigger at the database level for the emp table and that trigger call a procedure and that procedure send a email to the new employee, i the trigger send the firt name , second name , last name and the email address to the procedure .so my questions is about the command that will send the email to the new employee ,and the send email will look like this
    Dear "fist name "second name" "last name"
    welocme to..........................................................

    This thread could help answer some of your questions:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2391265038428
    C.

  • Can I use iCloud to copy all the emails from the iPhone to Windows Live Mail on my PC?

    My Windows 8 OS got trashed and I had to "refresh" it which involved losing all my Windows Live Mail emails (i.e. *.eml files in %AppData%). I have a backup from 18 months ago and most of my recent emails are on my phone.
    Is there a way I can copy (en masse) the emails from my iPhone to my Windows Live Mail on my PC?
    Thanks in advance.
    Andy

    Please ignore this question. Or tell me how to delete it.

  • Sending  a  Email  from the  webdynpro application

    Hi Guys,
                 I   am having  one requirement in my application .ie. Email  to the  specified  Id .
    As  per   my reqirement  i am having  4  fields  in my  UI page.
    Task Id              : T001 
    Assigned to       : ratnakar   
    Mail id               : [email protected]
    Task Description : Test Area
    Submit : Save(Button)
    when i  click  the  Save button the    Email has to reach the  specified id with the  task description.
    could  any  body  please help  how to proceed .........
    Thanks  and Regards
    Ratnakar reddy

    Hi  Guys,
         Some body  sugested me  to use the  javaMail  api .. i donot  exactly how to use  it in the  webdynpro application. some where i got the  below  code ...
    InitialContext ctx = new InitialContext();
    Properties props = new Properties();
    props.put("mail.smtp.host","Message server");
    Session sess = Session.getInstance(props);
    Message message = new MimeMessage(sess);
         message.setFrom(new InternetAddress(wdContext.currentContextElement().getFrom()));
         String recepient = wdContext.currentContextElement().getTo();
         message.setRecipient(Message.RecipientType.TO, new InternetAddress(recepient));
         String subject = wdContext.currentContextElement().getSubject();
         message.setSubject(subject);
         String content = wdContext.currentContextElement().getMessage();
         message.setContent(content,"text/plain");
    //       Send the message
         Transport.send(message);
    if i use the above same code  i am not able resolve  some errors with  the  session and   internetAddress. becuse  there are  no   supporting Imports  to  handle them even if used the  Organise imports.
            i am  very new  to  this  mailing concept  can any body  give me a    step by step process  ...to  send the mail to the  specified in the  user interface.
    Thanks and regards
    Ratnakar

  • How to change the email from the iCloud account info?

    HOw to change the email set in the iCloud account info? My Apple ID is different from my icloud account I like to keep same email for both.
    please help with the steps.
    thanks

    You can change the non-Apple address which forms your ID to another non-Apple address at http://appleid.apple.com . However you cannot make your @icloud.com address into your ID address.

Maybe you are looking for

  • HT1918 How do I delete credit card information on file?  There is no "None" button on payment information page.

    I'm trying to delete credit card information on the account and only have my son use itunes gift card, but I do not see a "None" button as payment options either on his phone or when I log onto account on the computer. It won't let me delete credit c

  • How to find the xml elements in Indesign pages

    i imported the xml file in vb.net. now i want to find the number of pages and no. of elements. i found out it. but i was not able to find which elements are placed in which page. i want that information. plz kindly help. i am using vb.net.<br />for e

  • Process chains:error in ods

    Hi, I am experimenting and learning how to create process chains on my own.  I took ODs as process type and ran it. The last processcame out as red.  The error says, <b>Delete init. request REQU_4N73RNLEHQ5F9CW523WV7OUN9 before running init. again wi

  • Essbase 9.3.1.3 Client Installation Error

    We have a handful of users who are experiencing the following error message when launching Excel.      Failed in GCSetLocale().  Please contact your database administrator for more information.* The issues persists on both Office 2003 and Office 2007

  • My coding execution is slow due to Group function

    Hai All I have genetating an attendace function by day today process My coding is declare bar_code varchar2(25); in_time varchar2(25); out_time varchar2(25); Cursor c1 is Select BARCODE,BARDATE,BARTIME From temp_attendance group by barcode,bardate,ba