Problem sending Mails with attachment binary BlackBerry 4.5

Hallo,

my code well testet, sending binary content as an attachment no longer works on 4.5.0:

------------------------

settings specified in the signature of mtehod
String url = "blackberry20@test";
Byte [] requestdata / /... of the binary data (really!)

create new message
final Message message = New Message();

define the recipient (as it appears in the url)
message.addRecipients (Message.RecipientType.TO,
new address [] {new address (url, url)});
       
String msgID = (DeviceInfo.getDeviceId () + "_" + System.currentTimeMillis ()) .toUpperCase ();
message.setSubject (msgID);

create the body... empty text
Several multipart part = new Multipart();
TextBodyPart txtBody = new TextBodyPart (multipart);
txtBody.setContent("");
multipart.addBodyPart (txtBody);

create attachments and add
AttachmentPart SupportedAttachmentPart = new SupportedAttachmentPart (multipart);
attachmentPart.setContentType("application/octet-stream");
attachmentPart.setFilename (msgID);
attachmentPart.setContent (requestData);

multipart.addBodyPart (attachmentPart);
message.setContent (multipart);

Send mail in own thread
Thread thread = new Thread ('Send Mail Thread') {}

public void run() {}
try {}
Transport.Send (message);
} catch (Throwable e) {}
System.Err.println ("error sending message" + e.getClass () .getName () + "/" + e.getMessage ());
}
}
};
thread. Start();

------------------------

This code has been compiled with JDE 4.0 and worked fine on 4.0, 4.1, 4.2

It works on my 4.5.0.55 _not_ shrimp (BES 4.1.4) and on a "BOLD" customer (4.6.0.X/BES > = 4.1.4)

It seems to be an attachment API on 4.5.0, of the major changes that are not compatible with older versions.

-Are there workarounds?
-Are there examples how to do work on > = 4.5?
-How to be always compatible backword for 4.0, 4.1, 4.2?
-What impact have the BES/BIS-platform on these issues?
-Are there serious documentation out there how to set the ContentType, Filename, etc.?

Would be great if some have had a (customers get angry response

Thanx, Jens Kinzel

Hello Mark,

I tried the example excatly you mentioned: If the content was about 60Bytes.

The following code does NOT work on > = 4.5:
---------------------
public static sendHTMLMailRIMExample (String address) Sub throws {MessagingException}

create a multipart
Multipart MP = new Multipart();

data for the content of the file
FileData = string"just a simple test";
String messageData = "Mail attachment Demo";

create the file
SAP SupportedAttachmentPart = new SupportedAttachmentPart (mp, "text/html", "upploadare", fileData.getBytes ());

The PTB TextBodyPart = new TextBodyPart (mp, messageData);

Add the file to the multipart
mp.addBodyPart (BSC);
mp.addBodyPart (sap);

create a message in the sent items folder
Folder folders [] is Session.getDefaultInstance () .getStore () .list (Folder.SENT);.

Message message = new Message(folders[0]);

Add recipients to the message and send it

Address = new address (address, address);
[ToAdds] address = new address [1];
toAdds [0] = n;
message.addRecipients (Message.RecipientType.TO, toAdds);
message.setContent (mp);

Transport.Send (message);
}
--------------------

I found that the problem is a combination of Firmware and BES. Here are the relevant areas of the BES-Logfile:

Example 1: Mail is rejected
--------------
MAGT-Log:
[40000] (12/17 13:58:31.943): {0x14C8} [BENNETT] received datagram, Tag = 64192
[40700] (12/17 13:58:31.943): {0 x 1534} {[email protected]} received device package, size is 199, TransactionId = 1152541538, Tag = 64192, content type = CMIME, cmd = 0 x 3
[20212] (12/17 13:58:31.943): {0 x 1534} {[email protected]} StreamToMessage() failed, Tag = 64192
[40275] (12/17 13:58:31.943): {0 x 1534} {[email protected]} error in transaction of sending to the device for the transaction 1152541538, size = 40, TransactionId = 920681772, Tag = 140390
[40279] (12/17 13:58:31.943): {0 x 1534} {[email protected]} SubmitToRelaySendQ, Tag = 140390
[40000] (12/17 13:58:31.943): {0x14D0} [BENNETT] send data, Tag = 140390
[40279] (12/17 13:58:31.943): {0 x 1534} {[email protected]} SubmitToRelaySendQ, Tag = 64192
[40000] (12/17 13:58:31.943): {0x14D0} [BENNETT] send status DATA_ACCEPTED, Tag = 64192
[40000] (12/17 13:58:32.896): {0x14C8} [BENNETT] received State DELIVERED, Tag = 140390

DISP-Log
[30222] (12/17 13:58:31.943): {0 x 1104} {myBlackBerry} MFH: contentType = CMIME, sizeOTA = 172, sizeOTW = 162, TransactionId = 1152541538, Tag = 1705182
[30308] (12/17 13:58:31.943): {0 x 1104} [BIPPa] {myBlackBerry} transfer data to BES Agent (S10096620_001), size = 199, intTag = 64192, Tag = 1705182
[30311] (12/17 13:58:31.943): {0x110C} {myBlackBerry} Forwarding status of relay, intTag = 64192, Tag = 1705182, Status = 1
[30368] (12/17 13:58:32.896): {0 x 1110} {myBlackBerry} package was delivered to the device, Tag = 233560
[30388] (12/17 13:58:32.896): {0 x 1110} [BIPPa] {myBlackBerry} status transfer to BES Agent (S10096620_001), intTag = 140390, extTag = 233560

ALRT-Log
[30000] (12/17 13:58:31.990): {0x5F4} EventLog::ThreadProc: received notification, treatment...
[30000] (12/17 13:58:31.990): {0x5F4} [Alarm::ActivateAlarm] alarm Queuing: | BlackBerry messaging Agent Agent of S-05-005 1 (S-05-005 applications event log). 2008-12-17 13:58:31 (AFFF4EF4)-> {[email protected]} StreamToMessage() failed, Tag = 64192
[30000] (12/17 13:58:31.990): {0x5C0} Alarm::ThreadProc: received an alarm message
------------------

Example 2: The mail is sent
------------------
MAGT-Log
[40000] (12/17 14:11:33.109): {0x14C8} [BENNETT] received datagram, Tag = 64209
[40700] (12/17 14:11:33.109): {0 x 1540} {[email protected]} received device package, size is 243, TransactionId = 201738721, = 64209, content type Tag = CMIME, cmd = 0 x 3
[30112] (12/17 14:11:33.125): {0 x 1540} {[email protected]} receipt message to the device, RefId = 1323541580, Tag 64209, TransactionId = 201738721 =
[40292] (12/17 14:11:33.687): {0 x 1540} {[email protected]} E-mail message sent to device, Tag = 64209
[40279] (12/17 14:11:33.687): {0 x 1540} {[email protected]} SubmitToRelaySendQ, Tag = 64209
[40000] (12/17 14:11:33.687): {0x14D0} [BENNETT] send status DATA_ACCEPTED, Tag = 64209
-------------------------

After fiddling around with the structure of the MIME multipart-message Types, I found a solution that works for me:

-------------------------
' Private Sub sendRequest (String url, byte [] requestData) get {MessagingException}

create new message
final Message message = New Message();

define the recipient (as it appears in the url)
message.addRecipients (Message.RecipientType.TO,
new address [] {new address (url, url)});

create topic: device over the current timestamp
String msgID = ("DATA"_System.currentTimeMillis ()) .toUpperCase ();
message.setSubject (msgID);

create the body... a text
Several multipart part = new Multipart();
TextBodyPart txtBody = new TextBodyPart (multipart);
txtBody.setContent (msgID);
multipart.addBodyPart (txtBody);

create attachments and add
AttachmentPart SupportedAttachmentPart = new SupportedAttachmentPart (multipart);
attachmentPart.setContentType("text/xml");

attachmentPart.setContent (requestData);
attachmentPart.setFilename (msgID + ".xml");
multipart.addBodyPart (attachmentPart);
message.setContent (multipart);
   
Transport.Send (message);
}
------------------------

Let me say thank you for your ideas a Council. From my side, the problem is closed so far-
even though im not sure if it will work for all environments.

I'm not shure where the initial problem was (Firmware / BES - combination?) or something else.

Thank you

Jens Kinzel
LÍNEAS Informationstechnik GmbH
D-38122 Braunschweig, Germany

Tags: BlackBerry Developers

Similar Questions

  • Create a trigger that send mail with attachment after insertion of a line in Oracle APEX

    I want to create an insert after trigger on a table that is to send a mail with an attachment. Here is my code.

    CREATE OR REPLACE TRIGGER tr_feedback

    AFTER INSERT on REVIEWS

    FOR EACH LINE

    DECLARE

    l_id NUMBER;

    BEGIN

    l_id: = APEX_MAIL. SEND)

                    p_to        => ' [email protected] ',

    P_FROM = >: NEW. E-mail

    p_subj = >: NEW. Object

    p_body = > "Please see the attachment."

    p_body_html = > ' review of < b > please < /b > the attachment ")

    APEX_MAIL. ADD_ATTACHMENT (p_mail_id = > l_id,)

    p_attachment = >: NEW. FILE,

    p_filename = >: NEW. FILE NAME,

    p_mime_type = >: NEW. MIME);

    END;

    But when I insert data, I get the following error:

    ORA-20022: Null value provided for the parameter p_filename.

    ORA-06512: at "APEX_040200.WWV_FLOW_MAIL", line 1070

    ORA-06512: at "APEX_040200.WWV_FLOW_MAIL_API", line 141

    ORA-06512: at "TR_FEEDBACK", line 11

    ORA-04088: error during execution of trigger 'TR_FEEDBACK '.

    Now, how can I fix that? Thanks in advance.

    Agree with the above.  Triggers (ab) should not be used in this way.  Nontransactional process should not be based on a transactional trigger.  These processes are part of the business logic and should be at the level of the company of codification (Summit, you can add a process to be executed once the completed insertion)

  • Cannot send mail with attachment from message reads the operation failed an object could not be found

    Unable to send an email with a photo attachment. Once all the steps to configure the e-mail was followed and press on send, the message reads 'the operation failed.  An object cannot be found.

    Hello

    Welcome to the Microsoft Answers site. Please take a look at the following address:
    http://support.Microsoft.com/kb/312354/en-us
    If only it was not fixed, so it's more probablyy caused by an Antivirus/Firewall. Symantec Antivirus seems to cause this issue often (as well as other AVs). In this case, try to disable the mailscanner in your Antivirus and see if that solves the problem. Or disable the Antivirus add-ins related via Outlook. See here how to proceed:
    http://Office.Microsoft.com/en-us/Outlook-help/enable-or-disable-add-ins-in-Office-programs-HA010034127.aspx#BM9

    I hope this helps.

  • Sending mail with attachment

    Hello

    I'm trying to create applications with shipment.

    Watch it (Ariane Mail Apex wire)

    https://Apex.Oracle.com/pls/Apex/f?p=71697:2

    I have a problem with attachments. I know how to add attachments via the BLOB of a table or the FILES of APEX APPLICATION column.

    But my question is:

    Is it possible this scenario:

    1. on Page 4, that I push the attachment button

    2. I'm redirected in operating system (system files) in localhost and I can choose a single file

    3. I go back to Page 4 and the Send button.

    Thank you

    Ziut

    Well, one issue at a time...

    I have now modified your code to DO NOT need this table in your schema.  We select the data in the flow and insert it in a collection, so in theory, it traverses the collection and must manage several attached files...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • error in sending mails with attachments

    Hai friends, windows mail works fine for me, but I still have problem sending mail with attachments.

    When we send an attachment then windows Messaging mail tell our mail sending successfully, but it is stored in the Outbox & mail does not reach the destination. can we have the solution to this.

    Hi Sammy Anderson,

    Thanks for joining us out on the Microsoft Community forums.

    According to the description, you are experiencing problems sending mails with attachments. Please answer a few questions to refine the question.

    1. are you using Windows Live Mail to send and receive messages or are you referring to the mail application?

    2. do you get an error message?

    3. are you aware of changes to the computer before the show?

    If you are Windows Mail app, you can consult this article and also run the app troubleshooting utility that is provided in the notes.

    What to do if you have problems with a soft

    http://Windows.Microsoft.com/is-is/Windows-8/what-troubleshoot-problems-app

    If the problem is with Windows Live Mail, you can post the question in another Department for assistance.

    http://answers.Microsoft.com/en-us/windowslive/Forum/email

    Hope this information helps. Get back to us if you have more queries about Windows.

  • How to send a mail with attachment

    Hi friends,

    I am using soa 11.1.1.6
    Jdev 11.1.1.6
    WebLogic:-11.1.1.6

    I want generated e-mail with attachment in BPEL 11 g. Here's what I did in my bpel process

    Create processes bpel from simple Hello world.

    In the e-mail activity below details are given

    < name of scope = "Email1" >
    < bpelx:annotation >
    < bpelx:pattern = "bpelx:email" patternName > < / bpelx:pattern >
    < / bpelx:annotation >
    < variables >
    < variable name = "varNotificationReq".
    messageType = "ns1:EmailNotificationRequest" / >
    < variable name = "varNotificationResponse".
    messageType = "ns1:ArrayOfResponse" / >
    < variable name = "NotificationServiceFaultVariable".
    messageType = "ns1:NotificationServiceErrorMessage" / >
    < / variables >
    < name of sequence = sequence of '1' >
    < assign the name = "EmailParamsAssign" >
    < copy >
    < expression = "string ('Default')" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload / ns1:FromAccountName" / >
    < / copy >
    < copy >
    < expression = "" string ()"/ >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload / ns1:Bcc" / >
    < / copy >
    < copy >
    < from expression = "string ('[email protected]')" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload / ns1:Cc" / >
    < / copy >
    < copy >
    < expression = "" string ()"/ >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload / ns1:ReplyToAddress" / >
    < / copy >
    < copy >
    < expression = "string ('testing')" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload / ns1:Subject" / >
    < / copy >
    < copy >
    < from expression = "string ('[email protected]')" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload/ns1: to" / >
    < / copy >
    < copy >
    < delivery > < xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" > < MimeType xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" > multipart/mixed < / MimeType > < ContentBody xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" > < MultiPart xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" > < BodyPart xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" > < MimeType xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" / > < ContentBody xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" / > < BodyPartName xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" / > < / BodyPart > < BodyPart xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" > < MimeType xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" / > < ContentBody xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" / > < BodyPartName xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" / > < / BodyPart > < / MultiPart > < / ContentBody > < / content / > < / from >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = ' / EmailPayload/ns1: Content "/ >
    < / copy >
    < copy >
    < from expression = "string (" text/html; Charset = UTF-8 ")" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload/ns1: Content / ns1:ContentBody / ns1:MultiPart / ns1:BodyPart [1] / ns1:MimeType" / >
    < / copy >
    < copy >
    < from expression = "" Hi"" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload/ns1: Content / ns1:ContentBody / ns1:MultiPart / ns1:BodyPart [1] / ns1:ContentBody" / >
    < / copy >
    < copy >
    < expression = "string (' application/xml'); "/ >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload/ns1: Content / ns1:ContentBody / ns1:MultiPart / ns1:BodyPart [2] / ns1:MimeType" / >
    < / copy >
    < copy >
    < expression = "string ('result.xml')" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload/ns1: Content / ns1:ContentBody / ns1:MultiPart / ns1:BodyPart [2] / ns1:BodyPartName" / >
    < / copy >
    < copy >
    < expression = "bpws:getVariableData('outputVariable','payload','/client:processResponse/client:result')" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload/ns1: Content / ns1:ContentBody / ns1:MultiPart / ns1:BodyPart [2] / ns1:ContentBody" / >
    < / copy >
    < / assign >
    < call name = "InvokeNotificationService".
    portType = "ns1:NotificationService."
    partnerLink = "NotificationService1."
    variableentree = "varNotificationReq".
    outputVariable = "varNotificationResponse."
    operation = "sendEmailNotification" / >
    < / sequence >
    < / scope >


    I'm able to generate E-mail with an attachment, but I do not see that the xml data in the attached file yet the file size is 64 b.

    I think I need to convert the data before sending it as an attachment. Could someone help me please by generating the XML.

    Kind regards
    Tarak

    Hi Tarak,

    You need not specify the MIME Type such as application/xml you don't read a .xml file.

    I'm assuming you are trying to send the result with its XML form variable in the attachment. So, follow the following steps to achieve the same (basically only first steps as my blog).

    -Open the e-mail from the Design view activity and go to the Attachments tab
    -Define the MIME Type such as text/plain; (no need to set as xml) and the name of the attachment as result.xml (what you do already)
    -The content to write this:

    ora:getContentAsString(bpws:getVariableData('outputVariable','payload'))
    

    ora: getContentAsString() function returns you the resulting data in its xml form.

    Be sure to check changes to the source code also like my Jdeveloper, they don't think is in Design view. Test and let me know if the problem persists.

    Kind regards
    Neeraj Sehgal

  • How to send a mail with attachment no matter what file use the invoke in os 6.0?

    Hello

    There is some issue that how to send a mail with attachment to use the invoke method in os 6.0?

    "I use the Transport at this time mail send successfully, but I use the invoke to throw this error time these error ismail service does not support these tyes of change of parts joined the send using field or remove attachments ' so how do?

    Thank you

    Hi, rishabh

    Thanks.i got the solution and super work Super-Duper hit.

    Thnaks,

    Umang.

  • Cannot send mail with windows mail. Get the pop-up Windows security.

    Cannot send mail with Windows Mail. Get the pop-up Windows security.

    Password and username are all correct. POP and SMTP everything is correct. If I remove all virus blocker, always get Windows security pop up asking for password and username; I type in it and click on the option to remember, but the window appears several times without sending a message. Error message box is empty.
    No problem on the end of e-mail servers. Equipped with Windows Vista.
    I deleted the Windows Mail disabled account, rebooted with the new account and the same problem.
    Can I receive the mail, but Windows Security blocking my attempts to send and don't remember the password and username that I type.
    Help!

    This kind of behavior is very often due to antivirus.  You are using.  If its McAfee or Norton get rid of them completely.   There are others who are also incompatible.  Everything you try, make sure that the analysis of e-mail is disabled.   You can also try to repair the database and see if that helps (see www.oehelp.com/WMUtil/).  And see also www.oehelp.com/OETips.aspx#3

    Steve

  • When I try to send an e-mail with attached pictures, I am told that the photos will not appear in the e-mail message.

    When I try to send an e-mail with pictures, a pop-up window appears when I hit SEND and says that the photos will not appear in the e-mail message.  How can I fix it?

    original title: e-mail problems.

    Hello

    I suggest that ask you your question on the following link.

    http://answers.Microsoft.com/en-us/windowslive

  • Sending mail with an attachment using UTL_SMTP

    Hi all

    I'm working on a PL/SQL code, where do I send a mail with an attachment using UTL_SMTP. I use the following code, I changed the value of p_to and p_from

    DECLARE

    l_mail_conn UTL_SMTP.connection;

    l_boundary VARCHAR2 (50): = '-= * #abc1234321cba #* =';

    l_step PLS_INTEGER: = 12000; -Make sure you define a multiple of 3 would not exceed the 24573

    p_to VARCHAR2 (100): = ' [email protected] ';

    p_from VARCHAR2 (100): = ' [email protected] ';

    p_subject VARCHAR2 (100): = "UPLOAD of FILE MAIL."

    p_text_msg VARCHAR2 (100): = 'it is a system generated email';

    p_attach_name VARCHAR2 (100);

    p_attach_mime VARCHAR2 (100);

    p_attach_blob BLOB;

    p_smtp_host VARCHAR2 (100): = 'localhost ';

    p_smtp_port NUMBER: = 25;

    BEGIN

    l_mail_conn: = UTL_SMTP.open_connection (p_smtp_host, p_smtp_port);

    UTL_SMTP. HELO (l_mail_conn, p_smtp_host);

    UTL_SMTP.mail (l_mail_conn, p_from);

    UTL_SMTP. RCPT (l_mail_conn, p_to);

    UTL_SMTP.open_data (l_mail_conn);

    UTL_SMTP.write_data (l_mail_conn, ' Date: ' |) TO_CHAR (SYSDATE, ' ' DD-MON-YYYY HH24:MI:SS) | UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' from: ' | p_to |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' from: ' | p_from |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' subject: ' | p_subject |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Reply-To: ' | p_from |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, "MIME-Version: 1.0 ' |") UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Content-Type: multipart/mixed; limit = "" | ") l_boundary | '"' || UTL_TCP. CRLF. UTL_TCP. CRLF);

    IF p_text_msg IS NOT NULL THEN

    UTL_SMTP.write_data (l_mail_conn, '-' | l_boundary |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Content-Type: text/plain; charset = "iso-8859-1" ' |) UTL_TCP. CRLF. UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, p_text_msg);

    UTL_SMTP.write_data (l_mail_conn, UTL_TCP.crlf |) UTL_TCP. CRLF);

    END IF;

    IF p_attach_name IS NOT NULL THEN

    FOR I IN (SELECT *)

    OF xx_mail_test_table

    WHERE ROWNUM = 1

    ORDER BY last_update_date DESC) LOOP

    UTL_SMTP.write_data (l_mail_conn, '-' | l_boundary |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Content-Type: ' | p_attach_mime |) '; name =' ' | I.FILE_NAME | '"' || UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, "Content-Transfer-Encoding: base64' |") UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Content-Disposition: attachment; filename = "" | ") I.FILE_NAME | '"' || UTL_TCP. CRLF. UTL_TCP. CRLF);

    FOR J FROM 0... TRUNC ((DBMS_LOB. GetLength (I.file_name) - 1) / l_step) LOOP

    UTL_SMTP.write_data (l_mail_conn, UTL_RAW.cast_to_varchar2 (UTL_ENCODE.base64_encode (DBMS_LOB.substr (I.FILE_NAME, l_step, J * l_step + 1)));)

    END LOOP;

    UTL_SMTP.write_data (l_mail_conn, UTL_TCP.crlf |) UTL_TCP. CRLF);

    END LOOP;

    END IF;

    UTL_SMTP.write_data (l_mail_conn, '-' | l_boundary |) '--' || UTL_TCP. CRLF);

    UTL_SMTP.close_data (l_mail_conn);

    UTL_SMTP. Quit (l_mail_conn);

    EXCEPTION

    WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN

    UTL_SMTP. Quit (l_mail_conn);

    lift;

    WHILE OTHERS THEN

    dbms_output.put_line (SQLERRM);

    END;

    This is when I execute the block that I get 2 mails to the same but there are some attachments, I checked the table and he gave.

    Could someone help me as to where I'm wrong?

    Create the raw DATA for the SMTP protocol can be tricky.

    I cheat and use a package that has been designed to do easily.

    APEX_MAIL

    MK

  • How to 'Submit' = send a w / hyperlink vs e-mail with attachment?

    Is it possible to make a submit button iniate:

    -an e-mail with a hyperlink to the shape (the file is stored on a network drive)

    Instead of

    -an email, including a copy of the file of the form as an attachment

    ?

    Thank you

    You can add hyperlinks to an e-mail message created in Acrobat. You can add the URL

    like plain text, though.

    In addition, the sending of an email without the file as an attachment is possible in

    Acrobat, not in the drive. Use app.mailMsg () to do this.

  • Mail with attachment

    Hi all

    I am doing a simple job and he poses problem, and hoping that you can help.

    Here's my forced.
    1. search for a file in a directory
    1A. If the file is not their nothing to treat
    2. If the file is to send them an email with the file as an attachment
    3. After you have sent the e-mail attach this file to another location.



    If the file is not IT gives them an error saying no file found and does not mail which is ok for me.

    But my problem is that even if the file is wrong with their computer. It is sending the mail without an attachment and it does not move the file to another location.


    Here are the steps that I do
    1 ODIFILEWAIT
    OdiFileWait "-ACTION = NONE" "-DIR = D:\Logs" "-MODEL = Test * .csv" "-CASESENS = NO '"-OVERWRITE = YES ""-FILECOUNT = 1 ""-TIMEOUT = 3000 ""-POLLINT = 1000 ""-HEADER = 0 ""-KEEP_FIRST_HEADER = YES ""-NOFILE_ERROR = YES "" "" ""»

    2 send an email
    "OdiSendMail"-MAILHOST = mail.mail.com ""[email protected]""-SUBJECT = Test files ""[email protected]"«-ATTACH=D:\Logs\Test*.csv."


    3. control of the OS
    Moving D:\Logs\*.csv D:\Archive


    Please let me if I do something wrong.

    K

    You use an Agent to run this package? If so, the agent must have visibility to the paths that you mentioned in the order.

    OdiSendMail can send multiple pieces attached and is case-insensitive for filenames are running in the environment Windows.

  • SMTP E-mail with attachment file - table error

    Hi, I am trying to send an e-mail with an attached file. The file I want to include is generated by the function "write into the file of measure" with a file specified by the user to input path. When I try to connect the path to the file in VI of attachments SMTP, I get an error saying that the source is a path, but the sink is looking for a 1 d of the pathnames table. Is it possible to convert the path to the original file in a table of paths, or another method to attach the file?

    I also tried using the old "SMTP send Email with attachments" feature by converting the path of the file in a string, and takes as the path of attachment, but he also didn't work.

    Thank you!

    With the help of the tool table of generation in the tables menu should do exactly what you are looking for.

  • Cannot send mail with Windows Live Mail on Windows 7

    All of a sudden, my phone can't send email on Windows Live Mail 2012 in Windows 7.  The Office of the home network has the same WLM 2012 with same port settings, etc.  There is no problem in creating and sending with the office.  I tried the repair program, but it did not help, even if he said that the repair was successful.  When I try to open the window to create an email, a window opens but then greys out with the message popping up saying that Windows Live Mail has suddenly stopped working.  Then it crashes.  I have no problem receiving mail.

    Incoming Port 995 with require a verified secure connection.

    Outgoing Port 465 with require a verified secure connection.  (identical to the office that has no problem)

    I just used a restore point and that seemed to fix the problem.

  • Sending mail with OS 4.2, extracted code.

    Hello

    I found some code snippets that show me how to send an email using the blackberry 4.2 API or higher.

    Y at - there someone who can help me find a code snippet or he can share with us?

    Do I need to know the SMTP host, username, password, server port, ecc in my software to send an email, or I can get these data from the phone?

    Help, please.

    Here's some code I've used in the past:

    try {}
    A session = Session.getDefaultInstance ();
    Store store = null;
    Transport tp = null;

    If (session! = null) {}
    Store = session.getStore ();
    TP = session.getTransport ();
    }

    Sting emailAddress = "UPGRADE EMAIL ADDRESS HERE";

    If ((magasin! = null) & (tp! = null)) {}
    E-mail message = New Message();
    If (emailAddress! = null &! emailAddress.equals("")) {}
    System.out.println ("emailAddress ===>" + emailAddress);
    email.addRecipient (Message.RecipientType.TO, new address)
    emailAddress, emailAddress));
    }

    Void String = null;

    content = "PUT YOUR BODY TEXT HERE";

    void = "SET TOPIC HERE";

    email.setSubject (sub);
    email.setContent (happy);
    TP. Send (email);
    System.out.println ("inside the sendEmail (/success)");

    } else {}
    retVal = false;
    ("System.out.println("[SendEmail/SendEmail ()] Email not configured, cannot send email ');
    }

    } catch (Exception e) {}
    retVal = false;
    System.out.println ("email");
    }

Maybe you are looking for

  • I have an outdated Java plugin (1.6.0_43) that will not turn on, get the error window

    I have to use an outdated Java plug-in in order to use a system on my desk. The Java plug-in is 1.6.0_43. I have the plug-in installed in my java, but whenever I try to open the site I went to the window of the image as an attachment. How can I make

  • Satellite 5200 701: what software allows the Fn key

    Hellodoes anyone remember what software allows 2 uses the Fn key on the laptop.for example: Fn + F6 or F7 I lost the original cd of Toshiba Software and can not find the right software, it is operational. Thx for any helpRob

  • Uninstall Messenger VAIO?

    REony Vaio model VPCEG1BFX Do I need Vaio Messenger? Sony says that "If you uninstall VAIO Messenger and the associated service, you won't able to receive critical messages from Sony on your computer." They also specify if extended service warranties

  • Missing Windows application key

    Hello Is the X 1 keyboard lack the application Windows key? Instead, they put a "Print screen" key instead. Anyone know how to recover the application Windows key? Thank you, jeremy

  • Replace PDF files

    How is it, my PDF files, which was in Adobe reader and attachments that I receive now come in Microsoft Windows Photo Gallery instead of the Adobe Reader.  That has changed this last week and it baffles me, because I did not change anything.  The fil