Tracking Error in senting mail through SO_DOCUMENT_SEND_API1
Hi Gurus,
I am using the FM SO_DOCUMENT_SEND_API1 to sent mails via custom programs. In many cases, when email id's does not exist or mailbox full for the receipient ID, it is throwing error in SCOT. Is there any option through which I can track those mail id's which are failed from sending successfully in my program. Please advice.
Regards,
Harish Haridas.
If you have 3 recipients passed through RECEIVERS table to the function - then at the end of the function call - if the RECEIVERS table would contain only the successful receivers. Hence by comparing a before and after snapshot of the RECEIVERS table - you'll be able to identify which are the failed receivers.
Edited by: Aditya Laud on Mar 22, 2011 6:15 AM
Similar Messages
-
Error while sending mail through SMTP
Hi,
We are getting the following error while trying to send mail through SMTP.
'554 ERROR_MESSAGE_STATE: SMTP_NO_HANDLER( host:1-,subrc:0001)'
Please advice,
Regards,
SamHi All,
Configured SMTP as per the note 455140,i can able to send mails from SAP to the out side world,
mails in SAP.When i tried the test to check whether the SAP system is correctly set up to receive e-mails as per the note 607108, iam getting a connection closed message as below.
afgdev:pgdadm> telnet afgdev 2500
Trying...
Connected to afgdev.
Escape character is '^]'.
220 afgdev.abc.ae SAP 6.40(52) ESMTP service ready
helo afgdev
250 afgdev.abc.ae
mail from:<[email protected]>
250 Ok
rcpt to:<[email protected]>
250 Ok
data
354 Enter mail, end with "."
Hello,This is a test.
Connection closed.
afgdev:pgdadm>
rgds
Sam -
Sent mails (through Exchange) are not saved anywhere
Apple's Mail sends the mails normally but no sign of these mails can be found afterwards. Normally they would go to the Sent-mailbox. This behaviour started after the change to Mavericks. This problem occurs only when the mail server is Exchange.
I installed Mavericks and I am seeing similar problems with Exchange Mail, although after reading this post I just tested the Sent-Mail Issue, I thought I had the same problem, but noticed after I click Mailbox Synchronize the outgoing messages appeared in the Sent Folder. I don't recall having to do this before, maybe it is a preference setting?
The problem I am getting though is a stability one using Mail/Exchange- I send an email using Mail/Exchange and sometimes get a message say "failed to connct to server", I hit Re-Try and it sends on the second time. This is definitley an issue that only started after loading Mavericks.
OS X 10.9 Macbook Microsoft Office 360 Exchange -
Error: in sending mail through dynamics actions
Hi Friends,
I have a problem in sending mail through dynamics actions . In this we pass a subroutine in dynamics actions which send an mail when promotion action occured.
Problem is that sometimes it will send an mail or sometimes not. I have no idea to solve this problem.
Can anyone suggest me .
Thanks ,
Anish
Moderator message : Duplicate post locked. Continue with thread [send mail through dynamic actions|send mail through dynamic actions].
Edited by: Vinod Kumar on Sep 5, 2011 10:19 AMthis is where i created the keystore.jks file
I navigated to the location C:\Program Files\Java\jdk1.6.0_13\bin in command prompt and typed the following command to create the keystore
keytool -import -trustcacerts -alias root -file mail_test_com.crt -keystore keystore.jksI was asked to set the password for keystore and then i was asked the question "Trust this certificate? [no]:" for which i gave yes.
If this is not the right place to create the keystore.jks can you please tell me what is correct location to create the keystore file. -
Getting error while sending mail through javamail api
I can able to compile the following code successfully but while executing it showing the error
C:\Program Files\Java\javamail-1.4\demo>java msgsend -o [email protected] -M 203.112.158.188 [email protected]
Exception in thread "main" java.lang.NoClassDefFoundError: msgsend
import java.io.*;
import java.net.InetAddress;
import java.util.Properties;
import java.util.Date;
import javax.mail.*;
import javax.mail.internet.*;
public class msgsend {
public static void main(String[] argv) {
String to, subject = null, from = null,
cc = null, bcc = null, url = null;
String mailhost = "null";
String mailer = "msgsend";
String file = null;
String protocol = null, host = null, user = null, password = null;
String record = null; // name of folder in which to record mail
boolean debug = false;
BufferedReader in =
new BufferedReader(new InputStreamReader(System.in));
int optind;
for (optind = 0; optind < argv.length; optind++) {
if (argv[optind].equals("-T")) {
protocol = argv[++optind];
} else if (argv[optind].equals("-H")) {
host = argv[++optind];
} else if (argv[optind].equals("-U")) {
user = argv[++optind];
} else if (argv[optind].equals("-P")) {
password = argv[++optind];
} else if (argv[optind].equals("-M")) {
mailhost = argv[++optind];
} else if (argv[optind].equals("-f")) {
record = argv[++optind];
} else if (argv[optind].equals("-a")) {
file = argv[++optind];
} else if (argv[optind].equals("-s")) {
subject = argv[++optind];
} else if (argv[optind].equals("-o")) { // originator
from = argv[++optind];
} else if (argv[optind].equals("-c")) {
cc = argv[++optind];
} else if (argv[optind].equals("-b")) {
bcc = argv[++optind];
} else if (argv[optind].equals("-L")) {
url = argv[++optind];
} else if (argv[optind].equals("-d")) {
debug = true;
} else if (argv[optind].equals("--")) {
optind++;
break;
} else if (argv[optind].startsWith("-")) {
System.out.println(
"Usage: msgsend [[-L store-url] | [-T prot] [-H host] [-U user] [-P passwd]]");
System.out.println(
"\t[-s subject] [-o from-address] [-c cc-addresses] [-b bcc-addresses]");
System.out.println(
"\t[-f record-mailbox] [-M transport-host] [-a attach-file] [-d] [address]");
System.exit(1);
} else {
break;
try {
if (optind < argv.length) {
// XXX - concatenate all remaining arguments
to = argv[optind];
System.out.println("To: " + to);
} else {
System.out.print("To: ");
System.out.flush();
to = in.readLine();
if (subject == null) {
System.out.print("Subject: ");
System.out.flush();
subject = in.readLine();
} else {
System.out.println("Subject: " + subject);
Properties props = System.getProperties();
// XXX - could use Session.getTransport() and Transport.connect()
// XXX - assume we're using SMTP
if (mailhost != null)
props.put("mail.smtp.host", mailhost);
// Get a Session object
Session session = Session.getInstance(props, null);
if (debug)
session.setDebug(true);
// construct the message
Message msg = new MimeMessage(session);
if (from != null)
msg.setFrom(new InternetAddress(from));
else
msg.setFrom();
msg.setRecipients(Message.RecipientType.TO,
InternetAddress.parse(to, false));
if (cc != null)
msg.setRecipients(Message.RecipientType.CC,
InternetAddress.parse(cc, false));
if (bcc != null)
msg.setRecipients(Message.RecipientType.BCC,
InternetAddress.parse(bcc, false));
msg.setSubject(subject);
String text = collect(in);
if (file != null) {
// Attach the specified file.
// We need a multipart message to hold the attachment.
MimeBodyPart mbp1 = new MimeBodyPart();
mbp1.setText(text);
MimeBodyPart mbp2 = new MimeBodyPart();
mbp2.attachFile(file);
MimeMultipart mp = new MimeMultipart();
mp.addBodyPart(mbp1);
mp.addBodyPart(mbp2);
msg.setContent(mp);
} else {
// If the desired charset is known, you can use
// setText(text, charset)
msg.setText(text);
msg.setHeader("X-Mailer", mailer);
msg.setSentDate(new Date());
// send the thing off
Transport.send(msg);
System.out.println("\nMail was sent successfully.");
// Keep a copy, if requested.
if (record != null) {
// Get a Store object
Store store = null;
if (url != null) {
URLName urln = new URLName(url);
store = session.getStore(urln);
store.connect();
} else {
if (protocol != null)
store = session.getStore(protocol);
else
store = session.getStore();
// Connect
if (host != null || user != null || password != null)
store.connect(host, user, password);
else
store.connect();
// Get record Folder. Create if it does not exist.
Folder folder = store.getFolder(record);
if (folder == null) {
System.err.println("Can't get record folder.");
System.exit(1);
if (!folder.exists())
folder.create(Folder.HOLDS_MESSAGES);
Message[] msgs = new Message[1];
msgs[0] = msg;
folder.appendMessages(msgs);
System.out.println("Mail was recorded successfully.");
} catch (Exception e) {
e.printStackTrace();
public static String collect(BufferedReader in) throws IOException {
String line;
StringBuffer sb = new StringBuffer();
while ((line = in.readLine()) != null) {
sb.append(line);
sb.append("\n");
return sb.toString();
So please help me to resolve that error.The directory that contains msgsend.class (usually the current directory)
is not in your CLASSPATH setting. Be sure that "." is included as one of the
entries in CLASSPATH. -
Error in sending mails through Broadcasting wizard
Hi Friends,
I am trying to broadcast a report through broadcasting wizard via Email to ussers's personal mail IDs. But I am not able to successfully send the mail ..In Transaction SCOT I monitored and found that <b>SO_OBJECT_MIME_GET Exception 2</b> is coming . Could some one please tell me why this error is coming and whats the possible solution.
Thanks
AnuragHi Anurag,
try setting up the default domain in transaction SCOT.
SCOT --> Settings --> Default Domain
i think this should solve the problem..
if still no..Please refer to OSS notes: 671260, 487754, 806169
Do assign points if useful.
Regards,
Dhanya. -
Tracking error messages sent from OS X?
I am not using OS X Mountain Lion right now, but with the Notification Centre is there a section which shows you when a Crash Log has been sent? I'm also on the look out for software that can track all of the Crash Log's that have been sent from my computer, I know there is a manual way to do this here and that Notification Centre doesn't work this way, so perhaps there is some stand alone software which could do the same job?
Hello The1nk,
After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning Messages:
iOS: Troubleshooting Messages
http://support.apple.com/kb/ts2755
Thank you for contributing to Apple Support Communities.
Cheers,
BobbyD -
Syncing sent mail through the Blackberry device is a feature of BIS
We are using Blackberry Bold 9700 with BIS email plan instead of BES plan. But when we send the emails from Blackberry, and these sent emails doen't show in the Sent Items in the Microsoft Outlook. We have Exchange 2003 server and Outlook 2003.
Hi and Welcome to the Forums!
It depends on several factors. First, it depends on how your the email server to which your BB, via BIS, is interfaced...the capabilities (when configured correctly) will be governed by this KB:
KB05133Email reconciliation features for the BlackBerry Internet Service
Second, it depends on how your Outlook is interfaced to your email server. If it is functioning via Exchange protocols, then it should see whatever the server has for Sent Items. If it is running a different protocol, then it is possible that it is not capable of receiving Sent Items from the server.
Good luck!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Database mail is not sending mail through SMTP TLS
Hello,
I have strange issue with SQL 2012 and Database mail. For some reason server refusing to send email over SMTP TLS. The only error reported to log is below which is completely useless (shame on you Microsoft for that).
I verified that there
1. No networking issues between server and SMTP relay host (Installed Windows Mail and sent mail through it)
2. That account and password is right (verification same as above)
3. That mail engine itself is working (verified through plain SMTP relay through local box itself)
I made a network capture of the process as well and it showing SQL server making initial TLS connection successfully to SMTP relay box and then never sending any data over established TCP connection and eventually timinig out after 60s with no data being
sent).
Any ideas?
Date 1/4/2015 2:03:33 AM
Log Database Mail (Database Mail Log)
Log ID 268
Process ID 223804
Mail Item ID 125
Last Modified 1/4/2015 2:03:33 AM
Last Modified By sa
Message
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 2 (2015-01-04T02:03:33). Exception Message: Cannot send mails to mail server. (Failure sending mail.).I looked at both locations mentioned and there is nothing there to tell exactly what is the problem. Again I see on network capture that connection IS established, just no data is being sent.
Relay is done through AWS relay server so there is not an issue on their side. Again I tested this scenario via Windows Mail client installed directly on SQL server, so any issues on the other side (like connectivity, timeouts, AV interferences are ruled
out since Windows Mail works).
Email error log supposed to have details about failure in last brackets, the one which in my case contains fuzzy "Failure to send mail". It supposed to say "unable to establish connection", "timeout expired" etc if there were
any issues on the other side. I have found a lot of reports of those issues on this forum where issue is explicitly stated in error message. In my case there is ZERO information about the issue. Mark Russinovich has excellent presentations where he talks about
useless error messages and this is certainly one of them.
Failure sending mail. -
Need to know the event when an individual recipient is sent Mail
i can successfully sent mail through Java Mail API to multiple recipients but on display i want to show end-user progress like
" mail sent to recipient:ID (ith out of n recipients)"
I want to know if any event is fired when an individual recipient is sent MAIL/Message after calling Transport.sendMessage
I have looked TransportEvent but as per my knowledge that gets fired after finishing whole job.
Regards,
NadiaNo, there's no such event.
The way this normally works is that JavaMail sends the message to your mail server,
along with the list of all the recipients. The mail server accepts it, queues it, and
returns an acknowledgment to JavaMail and the connection with the mail server is
closed. The mail server then goes about sending the message to the recipients. -
How do you store "sent" mail locally and on the server?
Hello. This is a slightly lengthy...but hopefully someone can help!
I am using the Mail program in Tiger (Mac OS X 10.4.3) with an IMAP account. I am wondering how you set up the preferences so that the e-mails that you send (outgoing) are stored locally on my computer and also on the server (so that I can .
So far I have tried checking and unchecking the option to 'store mail on the server' (in the 'Mailbox Behavior' window of the Preference Box). When I uncheck the box, the sent mail is stored ONLY locally on my computer.
When I check the box so that the mail is stored on the server, I cannot view any copies of the sent mail on my computer, nor can I view the sent mail through my other school account (same account b/c it's IMAP).
My IMAP account is setup with my school, so I have a folder called 'Sent' that I have programmed so that copies of my sent mail are stored there (viewable locally on any computer that I log-in to). I formerly user Thunderbird (with Mozilla) and it allowed me to save sent mail into that same folder, but I am unable to do so with Mail in the Tiger program.
I hope this is understandable...anyone able to shed some light on this issue? Thanks!
PowerBook G4 Mac OS X (10.4.3)Hi tanjo,
This is a bit of a workaround, but you could set
mail.app to automatically blind copy to yourself any
messages you originate (and then use a rule to
automatically file these messages in a "sent" folder
of your choice).
A method to do setup this default bcc is on
MacOSXhints.com, in this article: Permanently add Reply To headers in
Mail.app. It references this command line:
defaults write com.apple.mail
UserHeaders '{"Bcc" = "[email protected]";
best of luck,
...ben
PB G4 15 1.67 GHz,
iBook SE 0.47 GHz Mac OS X (10.4.3)
Hi Ben,
Thank you very much for the tip. I'm going to give that a try. Happy Holidays!
--tanjo -
Stored reference of mail sent through "SO_DOCUMENT_SEND_API1"
Dear experts,
I am using FM "SO_DOCUMENT_SEND_API1" to send mails to external systems in a program for enduser. Now i want to trace which mails are send through this program. Is there any standard table where the reference for sent mails and its return code are stored ?
also, i am posting an external URL(POST method) using
CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL. I also want to trace the posted URL and its result at the end of a week or month. is there any standard for the same storing the details??
Thankx in advance.
Krishan Kumar birmiwala.Hi,
You can trace all the outgoing mails from the transaction SOST. i.e. internally search where this data is saved.
Here you can differentiate internet address / SAP user id / etc..
Specifically if you want to trace with respect to this program based on the date and user etc.. you can refer to the transaction STAD (Analysis by User), it will have all the info.
Find where internally in which table this data is saved.
Regards,
Santhosh. -
Is there anyone out there who have come across a 100 error code by trying to log into their e-mail through their internet provider? The error code means that you are trying to log in from another country. Is there something wrong with the settings???Please let me know if there is an answer out there. thank you
MicheleAs you can see below, when I right click, I have no such option. In the User Account Settings, I'm operating as the "System Administrator".
Any other suggestions? -
Error Occurred while sending mail through gmail account
Hello,
I am writing 1 demo appln which will send a mail from my gmail account. It will show error like "javax.mail.MessagingException: 530 5.5.1 Authentication Required f77sm3109311pyh"
Here is Code : -
package demo;
import java.util.Properties;
import javax.mail.Address;
import javax.mail.Authenticator;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
public class Demo {
* @param args
public static void main(String[] args) {
try
Properties properties=System.getProperties();
properties.put("mail.smtp.host","smtp.gmail.com");
properties.put("mail.smtp.auth","true");
properties.put("mail.from","[email protected]");
properties.put("mail.smtp.port","465");
properties.put("mail.smtp.starttls.enable","true");
properties.put("mail.smtp.socketFactory.port", "465");
properties.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
properties.put("mail.smtp.socketFactory.fallback", "false");
Authenticator auth = new PopupAuthenticator();
Session session = Session.getDefaultInstance(properties,auth);
session.setDebug(true);
// Define message
MimeMessage message = new MimeMessage(session);
message.addRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
message.setSubject("Hello JavaMail");
message.setText("Welcome to JavaMail");
message.saveChanges();
Address address[] = message.getAllRecipients();
Address a1 = address[0];
System.out.println("Recipient : "+a1.toString());
Transport.send(message, message.getAllRecipients());
catch(Exception e){e.printStackTrace();}
and code for PopupAuthenticator :-
package demo;
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;
import javax.swing.*;
import java.util.StringTokenizer;
public class PopupAuthenticator extends Authenticator
public PopupAuthenticator()
System.out.println("In Auth");
public PasswordAuthentication getPasswordAuthentication()
String username, password;
String result = JOptionPane.showInputDialog("Enter 'username,password'");
StringTokenizer st = new StringTokenizer(result, ",");
username = st.nextToken();
password = st.nextToken();
return new PasswordAuthentication(username, password);
But when i run this code i never get popup window asking for username/password and it throws follwing exception
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: 530 5.5.1 Authentication Required f77sm3109311pyh
at javax.mail.Transport.send0(Transport.java:204)
at javax.mail.Transport.send(Transport.java:88)
at demo.Demo.main(Demo.java:66)
may i know wats wrong wid my code? I am confussed about when getPasswordAuthentication () method will call?
please reply me at [email protected]
thnx in advance ..
-SushrutHi bshannon ,
Thnx ..
I have removed the popup code from my PopUpAuthanticer.java file
But i got similar error ....
Here is Debug message : -
In Auth
Recipient : [email protected]
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG: SMTPTransport trying to connect to host "smtp.gmail.com", port 465
DEBUG SMTP RCVD: 220 mx.google.com ESMTP y78sm4251719pyg
DEBUG SMTP SENT: helo sushrutr
DEBUG SMTP RCVD: 250 mx.google.com at your service
DEBUG: SMTPTransport connected to host "smtp.gmail.com", port: 465
DEBUG SMTP SENT: mail from: <[email protected]>
DEBUG SMTP RCVD: 530 5.5.1 Authentication Required y78sm4251719pyg
DEBUG SMTP SENT: quit
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: 530 5.5.1 Authentication Required y78sm4251719pyg
at javax.mail.Transport.send0(Transport.java:204)
at javax.mail.Transport.send(Transport.java:88)
at demo.Demo.main(Demo.java:53)
can u please tell me when getPasswordAuthentication() will call ? and who is going to call this ...
Thnx in advance ... -
Can a third person track on messages and calls sent/received through apple id
can a third person track on messages and calls sent/received through apple id
You're welcome.
If you think this is happening to you, change your Apple ID password.
Maybe you are looking for
-
Have a PANASONIC TX- 36PL30 36" which I think, but am not sure, has a "rgb scart". Does that mean I can use it with aTV, and would I need a "special" component to scart adapter for rgb signals, or is it ok with any brand as long as my tv has rgb scar
-
Mac Mini & compatible games with HD4000?
Hi, I'm looking at a Mac Mini mainly for work purpuses but would like to know if the following game titles i own are supprted by the HD4000 chipset: Half Life 2 Duke Nukem Forever Doom 3 Quake 4 Call Of Duty 2 Old games i know but they all played on
-
Hello, Could someone tell me the location of BI Pubs major log files. I am using BIP Enterprise Edition 10.1.3.2 Thanks, Matt Soukup
-
hi i have a function with 4 parameters to pass and no return values. how can i call it in SQLPLUS ? Regards
-
can ne body give me an example of using hash with source code I would like to use hash tables for storing passwords, Basically I am looking for a secure way to store users, and passwords Message was edited by: user448429