Sending an email with attachments in Java using FileUpload UI Element
Hello Experts,
I'm using NWDS 7.01 SP6.
I have an application that has a FileUpload ui element. The elements resource property is bound to a context node of type Resource from the Local Dictionary from uielementsdefinitions.
The question I have is, how can I take the uploaded file from the context, and attach it to an email using the javax.mail.* api?
Do I need to store it somewhere first or can it be taken directly from the context attribute? If I need to store it, where do I store it?
Any help or suggestions are appreciated.
Thanks
MM
Hello Experts,
I'm using NWDS 7.01 SP6.
I have an application that has a FileUpload ui element. The elements resource property is bound to a context node of type Resource from the Local Dictionary from uielementsdefinitions.
The question I have is, how can I take the uploaded file from the context, and attach it to an email using the javax.mail.* api?
Do I need to store it somewhere first or can it be taken directly from the context attribute? If I need to store it, where do I store it?
Any help or suggestions are appreciated.
Thanks
MM
Similar Messages
-
When I send an email with attachments and open them on my ipad some of them open but others do not
When I send an email with attachments and open them on my ipad some of them open but others do not
What are the types that won't open?
Do you have an App that can open those types of files? -
Why can't I send an email with attachments?
I've been trying to send an email with a biology review on it so that my mom can print it out but it keeps telling me that I can't send the email. The exact message is "To send this message, delete the current attachments and attach them again." I've done that ad it's still not working and giving me the same message. What do I do??
jo1retired,
Being able to send and receive email on your smartphone is one of the more important pieces to having a phone. We can certainly help you get everything up and running on the phone for you. Have you ever been able to send email from your cell phone? Do you have any other email accounts on the LG phone? Please share some additional information so that we can assist.
CandiceH_VZW
Follow us on Twitter @VZWSupport -
How to extract email with attachments from outlook using java
anybody please suggest a solution to the above problem. the program needs to store the attachments from the mails of outlook automatically into the hard disk
anybody please suggest a solution to the above
problem. the program needs to store the attachments
from the mails of outlook automatically into the hard
diskBest done by not using Java but anything from C++ to VB and reading the Outlook API. -
Safari Quits When Trying to Send an Email With Attachments
I use gmail to send attachments. Now whenever i try to send an message that has an attachment, it quits unexpectedly. This is the only problem i have with Safari. I created another account to check if the problem is in the account itself but Safari didn't exist in the new account (it shows a question mark as an icon for Safari).
ThanxNaif MG wrote:
I created another account to check if the problem is in the account itself but Safari didn't exist in the new account (it shows a question mark as an icon for Safari).
If Safari is in its default location in the Applications folder, this shouldn't happen. I'm guessing you moved it from that location, either into another folder or a subfolder of the Applications folder. Move it back into the Applications folder and this part of the problem should be solved. -
On my imax, all of a sudden I am unable to send original emails with attachments of any size. I can attached the file but when I try to transmit, it will not go.
Also, if I am emailing back and forth, once there gets to be several threads, it will no longer transmit. Any suggestions. I am using gmail in the apple mail systemMike,
Are any of your other applications going wonky, or is it just Logic?
I'm afraid I've never heard of this particular problem before, but if it were happening to me the first thing I would do is delete my "com.apple.logic.express.plist" file in Library>Preferences, then repair permissions in Disc Utility, and finally restart my computer. Then I would launch Logic and see if the problem has been corrected. It's amazing how much these two steps can accomplish.
If that doesn't resolve the issue I would launch Logic and go to Preferences>Audio Units Manager to see if all my plug-ins are properly validated. -
How to send Email with attachments
Hi im Trying to send a file as attachment using EMail Activity operator.
Can we do it using Email activity? If yes, then how can we do it? If no, then please tell me about any other method using which i can send a email with attachments.
Regards
VibhutiBetter late than never, a comprehensive demo on the topic:
REM
REM maildemo.sql - A PL/SQL package to demonstrate how to use the UTL_SMTP
REM package to send emails in ASCII and non-ASCII character sets, emails
REM with text or binary attachments.
REM
REM Note: this package relies on the UTL_ENCODE PL/SQL package in Oracle 9i.
CREATE OR REPLACE PACKAGE demo_mail IS
----------------------- Customizable Section -----------------------
-- Customize the SMTP host, port and your domain name below.
smtp_host VARCHAR2(256) := 'smtp-server.some-company.com';
smtp_port PLS_INTEGER := 25;
smtp_domain VARCHAR2(256) := 'some-company.com';
-- Customize the signature that will appear in the email's MIME header.
-- Useful for versioning.
MAILER_ID CONSTANT VARCHAR2(256) := 'Mailer by Oracle UTL_SMTP';
--------------------- End Customizable Section ---------------------
-- A unique string that demarcates boundaries of parts in a multi-part email
-- The string should not appear inside the body of any part of the email.
-- Customize this if needed or generate this randomly dynamically.
BOUNDARY CONSTANT VARCHAR2(256) := '-----7D81B75CCC90D2974F7A1CBD';
FIRST_BOUNDARY CONSTANT VARCHAR2(256) := '--' || BOUNDARY || utl_tcp.CRLF;
LAST_BOUNDARY CONSTANT VARCHAR2(256) := '--' || BOUNDARY || '--' ||
utl_tcp.CRLF;
-- A MIME type that denotes multi-part email (MIME) messages.
MULTIPART_MIME_TYPE CONSTANT VARCHAR2(256) := 'multipart/mixed; boundary="'||
BOUNDARY || '"';
MAX_BASE64_LINE_WIDTH CONSTANT PLS_INTEGER := 76 / 4 * 3;
-- A simple email API for sending email in plain text in a single call.
-- The format of an email address is one of these:
-- someone@some-domain
-- "Someone at some domain" <someone@some-domain>
-- Someone at some domain <someone@some-domain>
-- The recipients is a list of email addresses separated by
-- either a "," or a ";"
PROCEDURE mail(sender IN VARCHAR2,
recipients IN VARCHAR2,
subject IN VARCHAR2,
message IN VARCHAR2);
-- Extended email API to send email in HTML or plain text with no size limit.
-- First, begin the email by begin_mail(). Then, call write_text() repeatedly
-- to send email in ASCII piece-by-piece. Or, call write_mb_text() to send
-- email in non-ASCII or multi-byte character set. End the email with
-- end_mail().
FUNCTION begin_mail(sender IN VARCHAR2,
recipients IN VARCHAR2,
subject IN VARCHAR2,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
priority IN PLS_INTEGER DEFAULT NULL)
RETURN utl_smtp.connection;
-- Write email body in ASCII
PROCEDURE write_text(conn IN OUT NOCOPY utl_smtp.connection,
message IN VARCHAR2);
-- Write email body in non-ASCII (including multi-byte). The email body
-- will be sent in the database character set.
PROCEDURE write_mb_text(conn IN OUT NOCOPY utl_smtp.connection,
message IN VARCHAR2);
-- Write email body in binary
PROCEDURE write_raw(conn IN OUT NOCOPY utl_smtp.connection,
message IN RAW);
-- APIs to send email with attachments. Attachments are sent by sending
-- emails in "multipart/mixed" MIME format. Specify that MIME format when
-- beginning an email with begin_mail().
-- Send a single text attachment.
PROCEDURE attach_text(conn IN OUT NOCOPY utl_smtp.connection,
data IN VARCHAR2,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
inline IN BOOLEAN DEFAULT TRUE,
filename IN VARCHAR2 DEFAULT NULL,
last IN BOOLEAN DEFAULT FALSE);
-- Send a binary attachment. The attachment will be encoded in Base-64
-- encoding format.
PROCEDURE attach_base64(conn IN OUT NOCOPY utl_smtp.connection,
data IN RAW,
mime_type IN VARCHAR2 DEFAULT 'application/octet',
inline IN BOOLEAN DEFAULT TRUE,
filename IN VARCHAR2 DEFAULT NULL,
last IN BOOLEAN DEFAULT FALSE);
-- Send an attachment with no size limit. First, begin the attachment
-- with begin_attachment(). Then, call write_text repeatedly to send
-- the attachment piece-by-piece. If the attachment is text-based but
-- in non-ASCII or multi-byte character set, use write_mb_text() instead.
-- To send binary attachment, the binary content should first be
-- encoded in Base-64 encoding format using the demo package for 8i,
-- or the native one in 9i. End the attachment with end_attachment.
PROCEDURE begin_attachment(conn IN OUT NOCOPY utl_smtp.connection,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
inline IN BOOLEAN DEFAULT TRUE,
filename IN VARCHAR2 DEFAULT NULL,
transfer_enc IN VARCHAR2 DEFAULT NULL);
-- End the attachment.
PROCEDURE end_attachment(conn IN OUT NOCOPY utl_smtp.connection,
last IN BOOLEAN DEFAULT FALSE);
-- End the email.
PROCEDURE end_mail(conn IN OUT NOCOPY utl_smtp.connection);
-- Extended email API to send multiple emails in a session for better
-- performance. First, begin an email session with begin_session.
-- Then, begin each email with a session by calling begin_mail_in_session
-- instead of begin_mail. End the email with end_mail_in_session instead
-- of end_mail. End the email session by end_session.
FUNCTION begin_session RETURN utl_smtp.connection;
-- Begin an email in a session.
PROCEDURE begin_mail_in_session(conn IN OUT NOCOPY utl_smtp.connection,
sender IN VARCHAR2,
recipients IN VARCHAR2,
subject IN VARCHAR2,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
priority IN PLS_INTEGER DEFAULT NULL);
-- End an email in a session.
PROCEDURE end_mail_in_session(conn IN OUT NOCOPY utl_smtp.connection);
-- End an email session.
PROCEDURE end_session(conn IN OUT NOCOPY utl_smtp.connection);
END;
CREATE OR REPLACE PACKAGE BODY demo_mail IS
-- Return the next email address in the list of email addresses, separated
-- by either a "," or a ";". The format of mailbox may be in one of these:
-- someone@some-domain
-- "Someone at some domain" <someone@some-domain>
-- Someone at some domain <someone@some-domain>
FUNCTION get_address(addr_list IN OUT VARCHAR2) RETURN VARCHAR2 IS
addr VARCHAR2(256);
i pls_integer;
FUNCTION lookup_unquoted_char(str IN VARCHAR2,
chrs IN VARCHAR2) RETURN pls_integer AS
c VARCHAR2(5);
i pls_integer;
len pls_integer;
inside_quote BOOLEAN;
BEGIN
inside_quote := false;
i := 1;
len := length(str);
WHILE (i <= len) LOOP
c := substr(str, i, 1);
IF (inside_quote) THEN
IF (c = '"') THEN
inside_quote := false;
ELSIF (c = '\') THEN
i := i + 1; -- Skip the quote character
END IF;
GOTO next_char;
END IF;
IF (c = '"') THEN
inside_quote := true;
GOTO next_char;
END IF;
IF (instr(chrs, c) >= 1) THEN
RETURN i;
END IF;
<<next_char>>
i := i + 1;
END LOOP;
RETURN 0;
END;
BEGIN
addr_list := ltrim(addr_list);
i := lookup_unquoted_char(addr_list, ',;');
IF (i >= 1) THEN
addr := substr(addr_list, 1, i - 1);
addr_list := substr(addr_list, i + 1);
ELSE
addr := addr_list;
addr_list := '';
END IF;
i := lookup_unquoted_char(addr, '<');
IF (i >= 1) THEN
addr := substr(addr, i + 1);
i := instr(addr, '>');
IF (i >= 1) THEN
addr := substr(addr, 1, i - 1);
END IF;
END IF;
RETURN addr;
END;
-- Write a MIME header
PROCEDURE write_mime_header(conn IN OUT NOCOPY utl_smtp.connection,
name IN VARCHAR2,
value IN VARCHAR2) IS
BEGIN
utl_smtp.write_data(conn, name || ': ' || value || utl_tcp.CRLF);
END;
-- Mark a message-part boundary. Set <last> to TRUE for the last boundary.
PROCEDURE write_boundary(conn IN OUT NOCOPY utl_smtp.connection,
last IN BOOLEAN DEFAULT FALSE) AS
BEGIN
IF (last) THEN
utl_smtp.write_data(conn, LAST_BOUNDARY);
ELSE
utl_smtp.write_data(conn, FIRST_BOUNDARY);
END IF;
END;
PROCEDURE mail(sender IN VARCHAR2,
recipients IN VARCHAR2,
subject IN VARCHAR2,
message IN VARCHAR2) IS
conn utl_smtp.connection;
BEGIN
conn := begin_mail(sender, recipients, subject);
write_text(conn, message);
end_mail(conn);
END;
FUNCTION begin_mail(sender IN VARCHAR2,
recipients IN VARCHAR2,
subject IN VARCHAR2,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
priority IN PLS_INTEGER DEFAULT NULL)
RETURN utl_smtp.connection IS
conn utl_smtp.connection;
BEGIN
conn := begin_session;
begin_mail_in_session(conn, sender, recipients, subject, mime_type,
priority);
RETURN conn;
END;
PROCEDURE write_text(conn IN OUT NOCOPY utl_smtp.connection,
message IN VARCHAR2) IS
BEGIN
utl_smtp.write_data(conn, message);
END;
PROCEDURE write_mb_text(conn IN OUT NOCOPY utl_smtp.connection,
message IN VARCHAR2) IS
BEGIN
utl_smtp.write_raw_data(conn, utl_raw.cast_to_raw(message));
END;
PROCEDURE write_raw(conn IN OUT NOCOPY utl_smtp.connection,
message IN RAW) IS
BEGIN
utl_smtp.write_raw_data(conn, message);
END;
PROCEDURE attach_text(conn IN OUT NOCOPY utl_smtp.connection,
data IN VARCHAR2,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
inline IN BOOLEAN DEFAULT TRUE,
filename IN VARCHAR2 DEFAULT NULL,
last IN BOOLEAN DEFAULT FALSE) IS
BEGIN
begin_attachment(conn, mime_type, inline, filename);
write_text(conn, data);
end_attachment(conn, last);
END;
PROCEDURE attach_base64(conn IN OUT NOCOPY utl_smtp.connection,
data IN RAW,
mime_type IN VARCHAR2 DEFAULT 'application/octet',
inline IN BOOLEAN DEFAULT TRUE,
filename IN VARCHAR2 DEFAULT NULL,
last IN BOOLEAN DEFAULT FALSE) IS
i PLS_INTEGER;
len PLS_INTEGER;
BEGIN
begin_attachment(conn, mime_type, inline, filename, 'base64');
-- Split the Base64-encoded attachment into multiple lines
i := 1;
len := utl_raw.length(data);
WHILE (i < len) LOOP
IF (i + MAX_BASE64_LINE_WIDTH < len) THEN
utl_smtp.write_raw_data(conn,
utl_encode.base64_encode(utl_raw.substr(data, i,
MAX_BASE64_LINE_WIDTH)));
ELSE
utl_smtp.write_raw_data(conn,
utl_encode.base64_encode(utl_raw.substr(data, i)));
END IF;
utl_smtp.write_data(conn, utl_tcp.CRLF);
i := i + MAX_BASE64_LINE_WIDTH;
END LOOP;
end_attachment(conn, last);
END;
PROCEDURE begin_attachment(conn IN OUT NOCOPY utl_smtp.connection,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
inline IN BOOLEAN DEFAULT TRUE,
filename IN VARCHAR2 DEFAULT NULL,
transfer_enc IN VARCHAR2 DEFAULT NULL) IS
BEGIN
write_boundary(conn);
write_mime_header(conn, 'Content-Type', mime_type);
IF (filename IS NOT NULL) THEN
IF (inline) THEN
write_mime_header(conn, 'Content-Disposition',
'inline; filename="'||filename||'"');
ELSE
write_mime_header(conn, 'Content-Disposition',
'attachment; filename="'||filename||'"');
END IF;
END IF;
IF (transfer_enc IS NOT NULL) THEN
write_mime_header(conn, 'Content-Transfer-Encoding', transfer_enc);
END IF;
utl_smtp.write_data(conn, utl_tcp.CRLF);
END;
PROCEDURE end_attachment(conn IN OUT NOCOPY utl_smtp.connection,
last IN BOOLEAN DEFAULT FALSE) IS
BEGIN
utl_smtp.write_data(conn, utl_tcp.CRLF);
IF (last) THEN
write_boundary(conn, last);
END IF;
END;
PROCEDURE end_mail(conn IN OUT NOCOPY utl_smtp.connection) IS
BEGIN
end_mail_in_session(conn);
end_session(conn);
END;
FUNCTION begin_session RETURN utl_smtp.connection IS
conn utl_smtp.connection;
BEGIN
-- open SMTP connection
conn := utl_smtp.open_connection(smtp_host, smtp_port);
utl_smtp.helo(conn, smtp_domain);
RETURN conn;
END;
PROCEDURE begin_mail_in_session(conn IN OUT NOCOPY utl_smtp.connection,
sender IN VARCHAR2,
recipients IN VARCHAR2,
subject IN VARCHAR2,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
priority IN PLS_INTEGER DEFAULT NULL) IS
my_recipients VARCHAR2(32767) := recipients;
my_sender VARCHAR2(32767) := sender;
BEGIN
-- Specify sender's address (our server allows bogus address
-- as long as it is a full email address ([email protected]).
utl_smtp.mail(conn, get_address(my_sender));
-- Specify recipient(s) of the email.
WHILE (my_recipients IS NOT NULL) LOOP
utl_smtp.rcpt(conn, get_address(my_recipients));
END LOOP;
-- Start body of email
utl_smtp.open_data(conn);
-- Set "From" MIME header
write_mime_header(conn, 'From', sender);
-- Set "To" MIME header
write_mime_header(conn, 'To', recipients);
-- Set "Subject" MIME header
write_mime_header(conn, 'Subject', subject);
-- Set "Content-Type" MIME header
write_mime_header(conn, 'Content-Type', mime_type);
-- Set "X-Mailer" MIME header
write_mime_header(conn, 'X-Mailer', MAILER_ID);
-- Set priority:
-- High Normal Low
-- 1 2 3 4 5
IF (priority IS NOT NULL) THEN
write_mime_header(conn, 'X-Priority', priority);
END IF;
-- Send an empty line to denotes end of MIME headers and
-- beginning of message body.
utl_smtp.write_data(conn, utl_tcp.CRLF);
IF (mime_type LIKE 'multipart/mixed%') THEN
write_text(conn, 'This is a multi-part message in MIME format.' ||
utl_tcp.crlf);
END IF;
END;
PROCEDURE end_mail_in_session(conn IN OUT NOCOPY utl_smtp.connection) IS
BEGIN
utl_smtp.close_data(conn);
END;
PROCEDURE end_session(conn IN OUT NOCOPY utl_smtp.connection) IS
BEGIN
utl_smtp.quit(conn);
END;
END;
/ -
Functionality to send email with attachments.(all types ot attachments)
Hi experts,
I have an requirement to modify the existing workflow to include the new part/functionality to send the email with attachments.
I mean, the existing workflow is sending only the notification as of now, the new requirement was i need to add the new functionalaity such a way the email functionality needs to be enabled so that the receiver who is receiving the notification will also get the email as well along with the attachments.
Note* Attachment could be of any types like pdf,tex,word etc...
Please suggest will it be possible to achieve this functionalites?
Any sample code will be a great help for me.
Thanks in advance,
Thiru.You can send attachments in email notification by defining message attributes of type document. Oracle Workflow supports document types called "PL/SQL" documents, "PL/SQL CLOB" documents, and "PL/SQL BLOB" documents.
You can go through the below document for defining documents.
http://www-apps.us.oracle.com/wf/doc/wfr1213/wfdg/html/T361836T362168.htm#2807860 -
Email not in sent box when I send email with attachments in Word.
Several times, I've noticed that when I send an email with attachments in Word = .doc format, I don't find the emails in my Sent Box…Why?
Then this sounds like a problem at the receiving end. More information is needed.
-
SOA Suite 11g - Email with attachments (Attachment from SOAP attachment)
Hello,
Can any one please help as to how I can do the following in Oracle SOA 11g:
Using a BPEL process how can I send an Email with attachments where the attachment itself is coming from a SOAP attachment.
The back ground is that we have portal sites from where the users can upload a document and then from their a SOA service is invoked and the attachment would be passed as (SOAP attachments) and then emails have to be send to users containing this uploaded document as the attachment.
Thanks.
feel free to email me [email protected]Yes, I need all supported standards and their version of SOA Suite 11g because my customer wants to upgrade from 10g to 11g, especially all supported standards and version number of OBPM 11g and OBPM 10g.
A people has pasted all support standards and version number of OBPM 10g. I get a standard list of OSB.
OBPM 11g supports:
BPEL
xml 1.0
Servlet 2.3\JSP1.2 (J2EE 1.2),
Servlet 2.4\JSP2.0(J2EE 1.4),
Servlet 2.5\JSP2.1(Java EE 1.5)
UDDI
SOAP
WSDL
WS-BPEL for People
XML Schema
XPDL
SOAP
XQuery
XLIFF
XSL map
XSLT
UML
Ant
EJB 2.1, JPA/EJB 3.0
JAAS
Spring
JAXB 1.0, JAXB 2.0
XHTML
HTML
JSP
JSF
JSR-168
XSQL
WS-Policy
But I cannot find the document about version number of the above standards -
How do I send an email with an attachment larger than 20mb
I am using exchange 2013 and I have users that when they send any emails with attachments over 20mb, it fails.
How do I change the setting to allow up to 30mb attachments in size? I've googled this, but to no avail.
In ECP, I looked under mailflow and then rules, but I don't have any rules there. I tried creating one, but I can't because I don't have the enterprise CALs I guess is what it's telling me.
Any help would be appreciated.
DanHello Everyone, I've already tried everything that was suggested, I changed everything to 50 or 60 MB.
The user settings is unlimited. For testing, I changed my own account to 100mb.
Still the same error message.
[PS] C:\Windows\system32>get-transportconfig
AddressBookPolicyRoutingEnabled
: False
AnonymousSenderToRecipientRatePerHour : 1800
ClearCategories
: True
ConvertDisclaimerWrapperToEml
: False
DSNConversionMode
: UseExchangeDSNs
EnableJournalArchive
: False
ExternalDelayDsnEnabled
: True
ExternalDsnDefaultLanguage
ExternalDsnLanguageDetectionEnabled : True
ExternalDsnMaxMessageAttachSize
: 50 MB (52,428,800 bytes)
ExternalDsnReportingAuthority
ExternalDsnSendHtml
: True
ExternalPostmasterAddress
GenerateCopyOfDSNFor
: {5.4.8, 5.4.6, 5.4.4, 5.2.4, 5.2.0, 5.1.4}
HygieneSuite
: Standard
InternalDelayDsnEnabled :
True
InternalDsnDefaultLanguage
InternalDsnLanguageDetectionEnabled : True
InternalDsnMaxMessageAttachSize
: 50 MB (52,428,800 bytes)
InternalDsnReportingAuthority
InternalDsnSendHtml
: True
InternalSMTPServers
JournalingReportNdrTo
: <>
LegacyJournalingMigrationEnabled
: False
LegacyArchiveJournalingEnabled
: False
LegacyArchiveLiveJournalingEnabled : False
RedirectUnprovisionedUserMessagesForLegacyArchiveJournaling : False
RedirectDLMessagesForLegacyArchiveJournaling : False
MaxDumpsterSizePerDatabase
: 33 MB (34,603,008 bytes)
MaxDumpsterTime
: 7.00:00:00
MaxReceiveSize
: 60 MB (62,914,560 bytes)
MaxRecipientEnvelopeLimit
: 5000
MaxRetriesForLocalSiteShadow
: 2
MaxRetriesForRemoteSiteShadow :
4
MaxSendSize
: 60 MB (62,914,560 bytes)
MigrationEnabled
: False
OpenDomainRoutingEnabled
: False
RejectMessageOnShadowFailure
: False
Rfc2231EncodingEnabled
: False
SafetyNetHoldTime
: 2.00:00:00
ShadowHeartbeatFrequency
: 00:02:00
ShadowMessageAutoDiscardInterval
: 2.00:00:00
ShadowMessagePreferenceSetting
: PreferRemote
ShadowRedundancyEnabled
: True
ShadowResubmitTimeSpan :
03:00:00
SupervisionTags
: {Reject, Allow}
TLSReceiveDomainSecureList
TLSSendDomainSecureList
VerifySecureSubmitEnabled
: False
VoicemailJournalingEnabled
: True
HeaderPromotionModeSetting
: NoCreate
Xexch50Enabled
: True
[PS] C:\Windows\system32>
[PS] C:\Windows\system32>get-receiveconnector | fl maxmessagesize
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
[PS] C:\Windows\system32>
[PS] C:\Windows\system32>get-sendconnector | fl maxmessagesize
MaxMessageSize : 60 MB (62,914,560 bytes)
MaxMessageSize : 65 MB (68,157,440 bytes)
[PS] C:\Windows\system32>
[PS] C:\Windows\system32>get-transportconfig | fl externaldsnmaxmessageattachsize
ExternalDsnMaxMessageAttachSize : 50 MB (52,428,800 bytes)
[PS] C:\Windows\system32>
[PS] C:\Windows\system32>get-transportconfig | fl internaldsnmaxmessageattachsize
InternalDsnMaxMessageAttachSize : 50 MB (52,428,800 bytes)
[PS] C:\Windows\system32>
[PS] C:\Windows\system32>get-transportconfig | fl maxsendsize
MaxSendSize : 60 MB (62,914,560 bytes)
[PS] C:\Windows\system32>
Is there any other setting you want to see? Is there another configuration change I missed?
Dan -
How to use Java with PL/SQL commands to send an email with attachment
Apologizes in advance if this is the wrong place to ask the question.
I need to use Java with PL/SQL commands to send an email with attachment. My java application runs from the command line and does some magic to gather info from an Oracle 11g db. If the DB has sendmail configured, I'd like to send the results of the data gathering as an attachment to the email addresses. I'm not sure how to do this. I've been reading up on on PL/SQL can send email with UTL_SMTP - with attachments. I'm just not sure how to translate that into being triggered by my Java application. Any suggestions or pointers on what I should read would be appreciated.
Background - I've been programming in Java for 10+ years, but this is my first time using databases. I also have been on these forums for a long time, but lost my profile when it was switched to Oracle.
Thanks for all help.user13726880 wrote:
The original requirements were put together and given to me, an Oracle newbie. They expected the Java app to use something intrinsic to Oracle and Unix sendmail. To solve my problem, I use a JDBC connection to run some SQL commands. I take that data, format it and send the results by email to the user. By default the requirement is to send it as an HTML attachment using Unix 'sendmail'. So I do that using Runtime exec. I have also added JavaMail functionality as an alternative to sendmail. It works great and as expected.Sounds like a reasonable solution.
Note however that PL/SQL itself can send email. And PL/SQL can call unix sendmail too.
However myself I would have done it in java with JavaMail. -
Send emails with attachments residing in the network
Hi All,
My requirement is to send email with attachments. I am using javamail and it works fine only if the attachment resides in the local machine.
If the attachment resides in the network [the folder is shared by the user], the application gives me IOException.
Please help. Let me know if I am not clear.Please find the trace below . Also I am able to browse the share but haven't tried writing a test app.
javax.mail.MessagingException: IOException while sending message
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:595)
at javax.mail.Transport.send0(Transport.java:169)
at javax.mail.Transport.send(Transport.java:98)
at SendEmail.sendMail(SendEmail.java:66)
at FetchDetails.fetchResultSet(FetchDetails.java:69)
at FetchDetails.<init>(FetchDetails.java:36)
at Index.main(Index.java:3)
Caused by: java.io.FileNotFoundException: \xxx.xxx.xx.xxx\dinesh\dialog.gif (The
system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at javax.activation.FileDataSource.getInputStream(FileDataSource.java:80
at javax.activation.DataHandler.writeTo(DataHandler.java:287)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1248)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:747)
at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:361)
at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:85
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:83
9)
at javax.activation.DataHandler.writeTo(DataHandler.java:295)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1248)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1673)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:555)
... 6 more
Cant send mail. IOException while sending message -
Sometimes Mail is slow emptying trash folder or sending emails with attachments
This happens occasionally- but enough to be an annoyance!
I am about to send an email using Mail to an address, and I wait very patiently while the Mail program makes a copy, communicates with server, then finally sends the email. Sometimes, to send an email with a simple attachment, this can take as long as three to four minutes!
Another related problem is Emptying the Trash folder.
Sometimes it takes an inordinate amount of time to do this, and other times such "deletion" takes mere few seconds.
I wonder what it is I'm doing wrong.''jbugler [[#question-1058767|said]]''
<blockquote>
Hi
The context of this question is:
* I've had an Apple iMac for just over 3 years;
* and I've been using their 'Mail' application to send/receive emails;
* but not infrequently, when I send an email with one or more attachments all of the email doesn't get to the recipient;
* and after working with Apple and getting nowhere;
* I'm now using Thunderbird instead of Mail.
I like Thunderbird, but I've noticed that if I send an email with an attachment (an example is an email I've just sent with a 2.6MB attachment), it takes a while to both (a) first send and then (b) copy the email to my 'send' folder.
Are there any 'settings' changes I can make to speed things up, or do I just need a bigger machine? (I've noticed that over the 3+ years I've had the iMac, it's got progressively slower and slower.)
Regards
John Bugler
</blockquote>
Many thanks -
One sender sent me 3 emails, two with attachments and one without attachment. I could see all the emails on my Blackberry but I didn't see emails with attachments on my computer. thanks for the help.
I would think this is an issue with your email provider, not the BlackBerry. What email service do you use?
1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!
Maybe you are looking for
-
Late 2013 MacBook Pro Yosemite Video Flicker
I have three of the same computer and have only noticed this problem on one of them, the screen seems to flicker black during normal operations. I am not moving the unit at all, the screen lid is staying open, so I do not think it is the video cable
-
Back-up disc for downloaded Logic Pro 9?
I'm asking this question a different way as the answer I got was not complete....I downloaded Logic Pro 9; I want to make a back-up disc; how do I make sure I include all the program files (including all the extras)? How do I locate all the right fil
-
Show/hide based on Multiple selections in a select box
In my http header I have the following code... it works great as long as only one value is selected: if you highlight the ARRAMO value the DUNS field appears... if you highlight anything else the DUNS field disappears... but if I highlight both ARRAM
-
I upgraded by iPhone 4 to IOS 5 and added iCloud. Now I cannot access my Gmail account. It was there before the upgrade, now it's gone. I have tried to re-add the account, but it does not work. The same thing has happened to my iPad2. I have los
-
How can I create a new DB with Oracle XE ?
Hi I'm a newbie with XE. I'd like to migrate an MS SQL Server DB to XE. How do I go about it ? Thanks for help. Bernard