EMail without eWay (JCAPS 5.1.3)

Hi.
I want to send simple eMails directly coding it into the collaboration without building the whole eMail eWay structure. I expected it is possible to use the usual syntax
message.addRecipient( javax.mail.Message.RecipientType.TO, new javax.mail.internet.InternetAddress( "[email protected]" ) );for adding a recipient.
However, the JCAPS code completion tool suggests:
message.addRecipient( javax.mail.Message$RecipientType.TO, new javax.mail.internet.InternetAddress( "[email protected]" ) );This also is validated, but when building/compiling I get a syntax error message.
What to do?
Thanks in advance for your help.
Heiner.

Hi.
For those who might be interested in a "solution", the workaround which I found with a tip from Ben in the ITtoolbox forum:
1: define a subclass:
static class RecTyp extends javax.mail.Message.RecipientType
        RecTyp( String arg )
            super( arg );
    }2: use the subclass:
message.addRecipient( RecTyp.TO, new javax.mail.internet.InternetAddress( "[email protected]" ) );Regards, Heiner.

Similar Messages

  • HT4864 Thank you! This may sound lame but are these instructions for the blackberry? I'm receiving iCloud emails without problems on my MacBook Pro and I'd rather not mess w/ settings there.

    Thank you! This may sound lame but are these instructions for my blackberry? I'm receiving iCloud emails without problems on my MacBook Pro and I'd rather not mess w/ settings there. Thanks again!

    You don't need to start a new thread to continue a conversation, you can just tack onto the original one. The settings I referred you to are for the Blackberry, since that's the device which is not receiving mail: anything which is working can be left alone.

  • HT5621 How do I change my apple id email without a password

    How do I change my apple id email without the password? I really need help.

    You don't. You'll need the password to that Apple ID to get in and make any changes to the account. If you've forgotten the password, go here:
    https://iforgot.apple.com
    Regards.

  • How can I change my iCloud email without losing pictures and data

    HOw can I change me iCloud email without losing pictures and data

    If you sign out it will be removed from the phone (but not from the icloud account)
    What are you trying to achieve here, why change your email address?
    I just realised that I answered the wrong person.
    Jill, you should start your own thread.

  • How can I verify my iCloud account via email, when I can't access my icloud email without verifying my account?

    I have setup a new cloud ID.
    I now need to verify my account via email.
    How can I do this when I can't access my iCloud email without verifying account?

    Did you click the Verify Now link in the verification email from Apple (see image below)?  If not, make sure you are checking the email address you used to set up your iCloud account.  Also make sure you check the spam/junk folder as well as the inbox.  If it isn't there, go to https://appleid.apple.com, click Manage your Apple ID, sign in, click on Name, ID and Email addresses on the left, then to the right click Resend under your Primary Email Address to resend the verification email.

  • How can i print an email without printing the attachment?

    I just got my new macbook pro retina display.  I am using Mac mail and want to know how I can print an email without printing the attachement.  Any suggestions and solutions would be appreciated.

    Thank you for your suggestion.  But when I receive an email that has an attachment (shown by paperclip symbol) The email opens and shows the attachment(jpg picture) at the end of the email so when I go to print - the email pops up with the picture already opened inside the body of the email.  Can not figure out why this happens in mac mail.  when i used outlook in windows only email would show.  in order to see attachment you had to click on paperclip and only then would the attachment (picture apprear).
    Any other suggestions that I may could try would be appreciated. Thank you!  Gabriela

  • To send smartform output in an email without attachment

    Hi All,
      How to send smartform output in an email without attachment?
    Thanks & Regards,
    Mamta Gupta.

    Try this,
    DATA:
    ls_control_param TYPE ssfctrlop, "Control paramters
    ls_output_options TYPE ssfcompop. "Output options
    DATA:
    lv_ip_mailaddr TYPE so_name, "Address of a Mail Recipient
    lv_ip_type_id TYPE so_escape, "Recipient type
    ls_recipient_id TYPE swotobjid, "Structure for recvr obj ID
    ls_sender_id TYPE swotobjid. "Structure for sender obj id
    CONSTANTS:
    lc_ip_type_id TYPE so_escape VALUE 'U', "For internet address.
    lc_smartform TYPE tdsfname VALUE 'ZVSF_ASN_DELNOTE', "Smart form name
    lc_mail TYPE tddevice VALUE 'MAIL'. "Mail device
    Assign recipient
    lv_ip_mailaddr = gv_smtp_addr. "CSAM email id
    lv_ip_type_id = lc_ip_type_id. "External address
    Create Mail title
    CONCATENATE text-001
    nast-objky
    INTO ls_output_options-tdtitle.
    Create recipient object
    CALL FUNCTION 'CREATE_RECIPIENT_OBJ_PPF'
    EXPORTING
    ip_mailaddr = lv_ip_mailaddr
    ip_type_id = lv_ip_type_id
    IMPORTING
    ep_recipient_id = ls_recipient_id
    EXCEPTIONS
    invalid_recipient = 1
    OTHERS = 2.
    IF sy-subrc 0.
    cf_retcode = sy-subrc.
    PERFORM protocol_update.
    ENDIF.
    Get sender object id.
    CALL FUNCTION 'CREATE_SENDER_OBJECT_PPF'
    EXPORTING
    ip_sender = sy-uname
    IMPORTING
    ep_sender_id = ls_sender_id
    EXCEPTIONS
    invalid_sender = 1
    OTHERS = 2.
    IF sy-subrc 0.
    cf_retcode = sy-subrc.
    PERFORM protocol_update.
    ENDIF.
    Assign the smart form name
    w_ssfname = lc_smartform.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = w_ssfname
    IMPORTING
    fm_name = lf_fm_name
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3.
    IF sy-subrc 0.
    cf_retcode = sy-subrc.
    PERFORM protocol_update.
    ENDIF.
    For Print output:
    IF nast-nacha = '1'. "Print output
    ls_control_param-preview = 'X'.
    ls_control_param-no_dialog = 'X'.
    ENDIF.
    For Email output.
    IF nast-nacha = '2'. "Email
    Output options
    ls_output_options-tdteleland = gs_kna1-land1.
    ls_output_options-tdtelenum = gs_kna1-telfx.
    ls_output_options-tdfaxuser = sy-uname.
    ls_output_options-BCS_COMMIT = 'X'.
    ls_control_param-device = lc_mail.
    ENDIF.
    dynamically call Fm behind the Smart form
    CALL FUNCTION lf_fm_name
    EXPORTING
    control_parameters = ls_control_param
    mail_recipient = ls_recipient_id
    mail_sender = ls_sender_id
    output_options = ls_output_options
    user_settings = ' '
    TABLES
    delivery = gt_delivery
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    IF sy-subrc 0.
    cf_retcode = sy-subrc.
    PERFORM protocol_update.
    ENDIF.
    Regards,
    Joan

  • Sharepoint 2013 document library incoming email without attachment not firing event and not getting email

    sharepoint document library incoming email without attachment not firing event and not getting email
    If email contains attachment it works. Is there any setting in document library that will allow emails and eventhandler to fire with out attachment?
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    What is the purpose of email sent to document library if no attachment. What document library will do what that email if it cant find attachment to save and create a spdoc object. If you want to store email/communication body then opt for site mailbox
    app.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How to attach files in email without embedding them

    I am using an Imac with lion that is only a few days old.  How can I attach a file to an email without embedding it.  I spoke to apple care and they said after I attach the file to right click on the embedded image and and then click on view as an attachment. I have tried that many times but people still receive the emails with the image embedded.  I switched from a PC and have found that many simple things I used to be able to do on a PC are not so simple on a mac.  I called apple care 5 times about different issues and the geniuses did not know how to resolve the issue.    If this one doesn't get resolved this is going back for a refund.

    I haven\'t seen how a mac is easier to use than a pc wrote:
    How can I attach a file to an email without embedding it.
    Technically, you can't, at least if you are using SMTP to send the email. All except plain text attachments in emails using that standard are actually embedded in the message for transmission, separated by MIME tags that suggest how the receiving email client application (called "mail user agents" in the specs) should handle it.
    The content-disposition tag tells the client app if a part was intended to be displayed inline (embedded) or as a separate attachment. Unfortunately, the majority of client apps do not fully follow those suggestions & make their own determination of what to display inline or as separate attachments.
    So the best you can do is make sure the message as composed uses the appropriate content-disposition tag & hope that the receiving client app honors it. If you are using Apple's Mail.app try Don Archibald's suggestion, or putting all the attachments at the very end of your message (which may require not using a sig).
    But this won't always work since the receiving app may ignore your efforts.

  • TS3276 how do I send photos in email without them being embedded in the email (and therefore un-downloadable)?

    How can I send photos in an email without them being embedded (and therefore un-downloadable)?

    They are still attachments, even though you see the embedded version (which can be turned off by rightclicking the embedded attachment and choosing 'View as Icon')

  • How can I add an attachment to an email without showing it in the body of the email?

    How can I add an attachment to an email without showing it in the body of the email?

    1. You must open attachment first
    2. Tap the square with arrow on top right and select mail
    3. Compose your email

  • After settings update can,t delete email without opening it

    After settings update can,t delete email without opening it

    In your mail list, do you see the word 'edit'? If you choose that then you can select whatever mails you want gone and delete them at once.

  • Is there any easy way to send free invoice via email without my credit info

    Is there any easy way to send free invoice via email without my credit info?

    Depends upon what you mean by 'it failed'. If it's that you are getting a message to contact iTunes Support then no, you will have to contact them (the 48 hours should be the maximum time that it takes for them to reply).

  • Submit via email without an email program

    I want to submit via email without an email program like in windows using the maildoc()  it uses outlook but i want to make it more universal(for use on computers where outlook, iMail, or some sort of program set up to send and multi-OS) where it will login to my own SMTP server to send the whole pdf as an attachment. I am using Acrobat X Pro

    You can't set up a form to do that, but you can set it up so that it submits to a web server, which can do the job of forwarding it along in an email. You just need to program the web server to do so.

  • How do I delete email without opening it?

    I can't seem to delete an email without opening it, and I'm worried about malware and all that. How do I delete an email without it getting opened? I've tried selecting it with another message and then deleting the group, but it still opens. Someone told me to double-click the separator bar between the preview and message panes, but nothing happens when I do that.
    I am a new Mac user, only been at this a few weeks, so please bear with me and use small words. Thank you for helping a noob.

    Tuttle's tip of putting your arrow icon in the middle of a message and dragging to the trash is a good one.
    If your concern is that selecting an email will trigger hidden tags in html messages giving the sender the opportunity to see if you clicked on their email then your point is valid.
    Apple Mail defaults to loading remote images in HTML based email.  You can turn this setting off by going to the menubar and choosing Mail > Preferences.  Chose the Viewing option and turn off "Display remote images in HTML messages."
    Now when you delete a message it won't matter if you selected it or not.
    - Stephen
    http://learni.st/users/Riptide360/boards/69477-optimizing-apple-mail

Maybe you are looking for

  • Update Z97 Gaming 5 BIOS

    Hi, I recently have acquired this motherboard and come with BIOS v1.0 (build date: 08/2014) My system specs are: i5 4690k msi z97 gaming 5 ATI radeon hd5750 HyperX Savage 16gb ram 1600Mhz SSD 850 EVO 250Gb HDD Samsung 750Gb sometime the system is uns

  • How to create MAC JNI call to launch the native email client

    How to write JNI code to call native default email client on MAC OSX and add attachment in that email client. Thanks plz help in this regard.

  • Connecting to a WPA2 Wifi network

    I am trying to connect to a wifi access point at work. we have WPA2 security enabled. My phone finds the network but when I enter the password it always says that I have entered the incorrect password. We have changed the password and tried multiple

  • Shortcut to Show iTunes when Minimized?

    Hi everyone. Okay, since I updated iTunes (7.0.2) in the past couple months, I can't seem to figure this out. If I minimize or hide iTunes, how can I call it back to show on my screen using my keyboard, without having to use my mouse to open it by cl

  • Help:: Tracking the change history for a BP

    Hi All.. I really need ur help.. Somebody please.. I'm making a prog. to update BP (TCODE: BP) & it run well. But now, i'm getting to make report for change history in BP. As for it, i look up it in table CDHDR & CDPOS, but i didn't find it :(. I use