Problem with relaying in JavaMail

Hi all,
I am having what seems to be a common problem with people attempting to send emails using JavaMail. I always get the following error....
class javax.mail.SendFailedException: 550 relaying mail to compuserve.com is not allowed.
I have done some research and I understand that most ISP's will not allow relaying through their servers for spamming reasons. Some people seem to have asked this question before but never been able to get an answer. What can be done to overcome this problem??? I need to send automated emails to people buying stuff from our website. I want to do this by reading the info from a database and sending them a personalised email based on the info in the database.
Please help,
Bow_wow.

You are running all your mail through Exchange on the server? Whose server is this, yours? If it is yours, then you should be able to configure it to accept relaying from the machine where you are trying to send the e-mails from. If it is somebody else's, then talk to them about accepting relaying from your IP address.

Similar Messages

  • I have a problem with relaying.

    I have a mail server with SUN One Messaging Server 6.0. This server has two inerfaces (local interface and interface with real IP address). We have two networks (local and some PC with real IP addresses).
    My mapping file contained:
    INTERNAL_IP
    $(REAL_IP_NET/28) $Y
    127.0.0.1 $Y
    * $N
    I have changed INTERNAL_IP:
    INTERNAL_IP
    $(REAL_IP_NET/28) $Y
    $(LOCAL_IP_NET/24) $Y
    127.0.0.1 $Y
    * $N
    Why only users in REAL_IP_NET can send e-mails outside our domain? If user in LOCAL_IP_NET send an e-mail, this user get the error "Relaying not allowed".
    After modification of INTERNAL_IP I have tried to run "imsimta cnbuild" but this command finished with the following error:
    "19:40:29.16: Error in mm_init -- illegal character ".in channel name or channel keyword -- line #19 in file IMTA_CONFIG_FILE"
    My imta.cnf contains the following lines by default (in part I : rewrite rules):
    .ims-ms-daemon $U%$H.ims-ms-daemon@ims-ms-daemon
    .native-daemon $U%$H.native-daemon@native-daemon
    .pipe-daemon $U%$H.pipe-daemon@pipe-daemon
    Why it happens?
    I have tried to restart Messaging Server after modification of INTERNAL_IP, it restarted without errors but my problem with relaying wasn't fixed.

    Apparently you have some kind of syntax error at or about line 19. This could be an extra blank line or other problem.
    The error may be above line 19. None of what I seehere appear to be errors.
    Until you're able to compile the configuration, your changes to mappings will take effect.

  • Problem with Relay Mulitplexer Module Programming

    Sir,
    I loaded a following vi from example code library.I am using Relay Switch Card(NI 2503) and DMM(NI 4060) for Measurement.
    Switch_SCANNER_with_DMM_Handshaking.vi, This vi is same as shown in Relay Switch software manual. In this vi, It demands niDMM configure Measurement.vi and niDMM Configure Meas Complete Dest.vi
    These vis are not in old and new driver of this module, I used niDMM configure.vi and
    niDMM Configure Meas Complete.vi instead of that vi by seeing same node. Then after execution of program , Its showing error in niDMM Configure Multi point.vi
    Error Code is : BFFA0010
    Because in diagram there is shown TTL1 in sample trigger node and in given vi (niDMM Configure Multi point.vithere is only o
    ne option shown Immediate.
    so please solve these problems and how these vi which are not with driver, will be used or from where i can download these vi.
    Regards,
    Jitendra
    HAL Korwa

    Hi,
    Can you have a look at the PBO event? I guess after the PAI of the Screens, Sy-Ucomm values are not getting changed and it is retaining the same values. And hence it is triggering the same Screen again and again.
    You can simply put a debug point and can have a look at the logic flow.
    Hope this will help.
    Thanks,
    Samantak.

  • JavaMail Problem with Outgoing Mail

    Hi, I's using a J2EE web application that makes use of JavaMail and an SMTP mail server to send outgoing mails and POP3 mail server to recieve mails.
    Everything is going fine with the POP3 mail server the application is able to recieve mails, and parse them.
    But I have problem with the outgoing mails, The application is successfuly sending mails through the SMTP mail server to addresses inside my organization, but failing the relay them to external addresses.
    Example: The application is successfuly sending mails to [email protected], but failing sendimg mails to [email protected]
    PS: the Address I configured the application to send emails from, can send mails to external users.
    I'm using Microsoft Exchange Server.

    Yeah man, I know. But the thing is am not familiar
    with the Microsoft Exchange Server configuration. And
    I guess my problem is a configureation problem.Then maybe a Java forum isn't the best place to be looking for help, innit? :-)
    Any
    expertise with Exchange Server ?Somewhere between "zero" and "none whatsoever."

  • Problem with Javamail in Red Hat

    Good afternoon.
    I have a problem with javamail in Red Hat.
    When i send a email in windows with my application, works well. But in Red Hat no works.
    Gives the following error:
    Java.lang.ClassCastException .... gnu.mail.handler.TextPlain
    Does anyone know that happens?

    You have much to learn. This is the wrong forum for most of it.
    You should be able to use the package manager in Linux to
    uninstall the Gnu version. Then read this:
    [http://java.sun.com/products/javamail/FAQ.html#install|http://java.sun.com/products/javamail/FAQ.html#install]

  • I have an Ipad 2 and are having problems sending out emails in one of my email address. I always get a message reading the email was not sent because the server does not allow relaying. This is an email account POP3. I have no such problem with gmail.

    I have an Ipad 2 and are having problems sending out emails in one of my email address. This is a POP3 email Account? I always get a message reading that the email was not sent because the server does not allow relaying. I have no such problem with gmail. What could be the problem and how do I resolve this. Is it about settings?
    Richard.

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

  • Problem with sending large HTML files as attachment using JavaMail 1.2

    Hi dear fellows, i am currently working on posting Emails with attachments using JavaMail 1.2. i succeeded in sending many mimetypes of files as attachments except for .htm and .html files. when large HTML files (say, >100 kB) serve as attachements, the mail is posted on mail server, but not properly posted since only the first small part of the file is writted into mail server but the latter part of the attachment file is missing.
    is that a bug of JavaMail??? are there any fellows encountering similar problem as i did??? any suggestions for me to proceed? hopefully i made myself clear...
    Many thanks in advance,
    Fatty

    i've sort of found the cause for that, it is because when the stream write to the mail server, unfortunately there is a "." in a single line. so the server refuse to take any more inputs.
    so do i have to remove all the "." in the file manually to avoid this disaster? any suggestions??
    Fatty

  • Exchange 2010 : Doubt with recipient type and problem with disappearance of the original recipient in the mail relay

    Hello. First of all, thank you very much for your attention.
    After that, I will expose the problem:
    I have a user domain called "comercial" with a corresponding mailbox "[email protected]"
    . This user
    has assigned multiple emails such as "[email protected]", "[email protected]", "[email protected]" , having as default   email "[email protected] ".
    On
    the other hand,
    another domain user
    called
    "menganito" with it's mailbox  "[email protected]" account, also has a few mail accounts "[email protected]", "[email protected]", " [email protected]"
    ...having
    as default   email "[email protected]
    The user "Comercial" is forwarding
    all of it's mails to the user "menganito".
    The problem is that "menganito" is not receiving the exact
    "comercial"
    sender email, but the email which appears by default ("[email protected]").
    "Menganito" would like to know
    from which email exactly the mails he is receiving have been sent ("[email protected]",
    or "[email protected]"
    or "[email protected]"). 
    Also, he would like to knowthe email of the original sender (from the outside of the domain) whom the user "Comercial"
    have received the email from.
    In another type of email servers (Kerio,...)
    this is not a problem, because forwarding by
    defaultis always showing
    the original sender and original receiver.
    Maybe the problem comes from the recipient type I'm using.
    Should I use another type of recipient? should I use a transport rule?
    Any idea ? Thanks again in advance.

    Hi Simon. First of all thanks for your answer.
    This happens with all accounts. I tried with news accounts and different browsers for OWA and Outlook anywhere and happens the same. Is not a cache problem
    The problem is
    when "[email protected]"(default
    and set as default answer
    account by
    exchange)
    receives
    a message in  "[email protected]" when
    forwards to "Menganito"
    this message will appear from"[email protected]"
    instead of "[email protected]".
    This happens with all accounts.
    I can understand that i can't avoid
    default reply address on the same
    domain, but also with different domains happens
    the same?
    The platform is only one clean and updated server 2012 as dc and another clean and updated server 2012 with exchange 2010 sp3 directly and after rollup 4 for exchange SP3, no previous versions and servicepacks of exchange 2010 was installed before. Before
    install exchange 2010 sp3, i installed all the filterpacks (3) and .net 3.5 and all updates that i finded for 2012 server (i tried for 2 days): No more updates for sure.  After, in powershell, i put this:
    Add-WindowsFeature NET-Framework-Core,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,Web-Mgmt-Tools,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,Web-Asp-Net,Web-Client-Auth,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Logging,Web-Http-Redirect,Web-Http-Tracing,Web-ISAPI-Filter,Web-Request-Monitor,Web-Static-Content,Web-WMI,RPC-Over-HTTP-Proxy
    -Restart
    The machine and exchange works good (i3 with 4gb ram, and raid 1 1tb of HD) and the organization only has 15 mailboxes. No problems with even viewer and all is correct.
    Thanks again.

  • Problems with Javamail Attachments

    Hi,
    i've got a major problem with my application and i can't find the answer. Whenever i'm trying to send an attachment i have this error :
    javax.mail.internet.ParseException
    at javax.mail.internet.ParameterList.<init>(ParameterList.java:77)
    at javax.mail.internet.ContentDisposition.<init>(ContentDisposition.java:69)
    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1104)
    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:824)
    at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:215)
    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1056)
    at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1914)
    at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1895)
    at javax.mail.Transport.send(Transport.java:79)
    at Send$5.run(Send.java:209)
    at java.lang.Thread.run(Thread.java:536)
    Interactive Session Ended
    My source code is :
    public class DemoSend implements ActionListener{
    public void actionPerformed(ActionEvent evt) {
    try {
    final Properties props = System.getProperties();
    props.put("mail.host", hostField.getText());
    final Session mailConnection = Session.getDefaultInstance(props, null);
    final MimeMessage msg = new MimeMessage(mailConnection);
    final Address to = new InternetAddress(toField.getText());
    final Address from = new InternetAddress(fromField.getText());
    msg.setContent(message.getText(), "text/plain");
    msg.setFrom(from);
    msg.setRecipient(Message.RecipientType.TO, to);
    msg.setSubject(subjectField.getText());
    msg.setSentDate(new java.util.Date());
    final MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText(message.getText());
    final MimeBodyPart mbp2 = new MimeBodyPart();
    mbp2.setDisposition(mbp2.ATTACHMENT);
    final FileDataSource fds=new FileDataSource(FileName);
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setFileName(fds.getName());
    final Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    mp.addBodyPart(mbp2);
    msg.setSentDate(new Date());
    msg.setContent(mp);
    Runnable r = new Runnable() {
    public void run() {
    try {
    Transport.send(msg);
    JOptionPane.showMessageDialog(null," Your message has been sent successfuly","G T P Email Client",JOptionPane.INFORMATION_MESSAGE);
    catch (Exception e) {
    e.printStackTrace();
    JOptionPane.showMessageDialog(null," -- E r r o r -- Your message has not been sent!!!!! ","G T P Email Client",JOptionPane.INFORMATION_MESSAGE);
    Thread t = new Thread(r);
    t.start();
    message.setText("");
    catch (Exception e) {
    e.printStackTrace();
    and i define at the beggining the string FileName
    public static String FileName = new String();
    and thats for the attach button
    attachButton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    if (fc == null) {
    fc = new JFileChooser();
    fc.addChoosableFileFilter(new ImageFilter());
    fc.setAcceptAllFileFilterUsed(true);
    fc.setFileView(new ImageFileView());
    fc.setAccessory(new ImagePreview(fc));
    fc.setMultiSelectionEnabled(true);
    int returnVal = fc.showDialog(Send.this,"Attach File");
    fc.getSelectedFile();
    File file = fc.getSelectedFile();
    It would be a great help if you can can help me find an answer to my problem.
    Thanks in advance.

    I tried to set a specific file for the FileChooser but again the same results.I tried without the preview classes again the same mistake.But when i tried without the JFileChooser it worked, but i must use a JFileChooser in order to choose a file to attach.I used a simple FileChooser and again the same mistakes.I don't know where the mistake is.
    I will be grateful if you can help me out,this is an emergency it is for my project and i'm desperate.
    I include the whole class.
    Thanks again and sorry for the long message.
    I hope you have some free time to help me out.
    Thanks again
    import java.awt.*;
    import javax.swing.JFileChooser.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import javax.activation.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.util.Properties;
    public class Send extends JFrame {
         public static void main(String[] args) throws Exception{
              Send client = new Send();
              client.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              client.show();
         public static JLabel fromLabel = new JLabel("From: ");
              public static JLabel toLabel = new JLabel("To: ");
              public static JLabel hostLabel = new JLabel("SMTP Server: ");
              public static JLabel subjectLabel = new JLabel("Subject: ");
              public static JTextField fromField = new JTextField(40);
              public static JTextField toField = new JTextField(40);
              public static JTextField hostField = new JTextField(40);
              public static JTextField subjectField = new JTextField(40);
              public static JTextArea message = new JTextArea(40, 80);
              public static JScrollPane jsp = new JScrollPane(message);
         public static JButton sendButton = new JButton("Send Message");
         public static JButton clearButton = new JButton("Clear");
         public static JButton attachButton = new JButton("Attach File");
         public static JButton adbButton = new JButton("AddressBook");
         public static JFileChooser fc;
         public static String FileName = new String();
         public Send() {
              super("SMTP Send email");
              Container contentPane = this.getContentPane();
              contentPane.setLayout(new BorderLayout());
              JPanel labels = new JPanel();
              labels.setLayout(new GridLayout(4, 1));
              labels.add(hostLabel);
              JPanel fields = new JPanel();
              fields.setLayout(new GridLayout(4, 1));
              final String host = System.getProperty("mail.host", hostField.getText());
              hostField.setText(host);
              fields.add(hostField);
              final String to = System.getProperty("mail.to", toField.getText());
              labels.add(toLabel);
              fields.add(toField);
              final String from = System.getProperty("mail.from", fromField.getText());
              fromField.setText(from);
              labels.add(fromLabel);
              fields.add(fromField);
              labels.add(subjectLabel);
              fields.add(subjectField);
              Box north = Box.createHorizontalBox();
              north.add(labels);
              north.add(fields);
              north.add(attachButton);
              north.add(adbButton);
              contentPane.add(north, BorderLayout.NORTH);
              message.setFont(new Font("Arial", Font.PLAIN, 12));
              contentPane.add(jsp, BorderLayout.CENTER);
              JPanel south = new JPanel(new FlowLayout());
              south.setLayout(new FlowLayout(FlowLayout.CENTER));
              south.add(sendButton);
              south.add(clearButton);
              contentPane.add(south, BorderLayout.SOUTH);
              this.pack();
              adbButton.addActionListener(new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             AddressBook adbook = new AddressBook();                     
              clearButton.addActionListener(new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             fromField.setText("");
                             toField.setText("");      
                             hostField.setText("");     
                             subjectField.setText("");
                             message.setText("");
              attachButton.addActionListener(new ActionListener()
                             public void actionPerformed(ActionEvent e)
    if (fc == null) {
                             fc = new JFileChooser();
                                  fc.addChoosableFileFilter(new ImageFilter());
                                  fc.setAcceptAllFileFilterUsed(true);
                                  fc.setFileView(new ImageFileView());
                                  fc.setAccessory(new ImagePreview(fc));
                                  fc.setMultiSelectionEnabled(true);
                             int returnVal = fc.showDialog(Send.this,"Attach File");
                             File file= fc.getSelectedFile();
                             //fc.getSelectedFile();
                             /* JFileChooser fc = new JFileChooser();
                             int retval = fc.showOpenDialog(Send.this);
                        fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
                        fc.setMultiSelectionEnabled(true);
                        File file = fc.getSelectedFile();*/
              DemoSend handler = new DemoSend();
              sendButton.addActionListener(handler);
              addWindowListener(new WindowAdapter()
                        public void windowClosing (WindowEvent e)
              setSize (600, 500);
              show();
         public class DemoSend implements ActionListener{
              public void actionPerformed(ActionEvent evt) {
                   try {
                        final Properties props = new Properties();
                        props.put("mail.host", hostField.getText());
                        final Session mailConnection = Session.getDefaultInstance(props, null);
                        final MimeMessage msg = new MimeMessage(mailConnection);
                        final Address to = new InternetAddress(toField.getText());
                        final Address from = new InternetAddress(fromField.getText());
                        //msg.setContent(message.getText(), "Content-Transfer-Encoding ,base64");
                        msg.setFrom(from);
                        msg.setRecipient(Message.RecipientType.TO, to);
                        msg.setSubject(subjectField.getText());
                        msg.setSentDate(new java.util.Date());
                        final MimeBodyPart mbp1 = new MimeBodyPart();
                        final MimeBodyPart mbp2 = new MimeBodyPart();
                        mbp1.setContent("Content-Transfer-Encoding", "base64");
                        mbp1.setText(message.getText());
                        //if (!FileName.equals("")) {     
                        mbp2.setDisposition(mbp2.ATTACHMENT);
                        mbp2.setContent("Content-Transfer-Encoding", "base64");
                        final FileDataSource fds=new FileDataSource(FileName);
                        mbp2.setDataHandler(new DataHandler(fds));
                        mbp2.setFileName(fds.getName());
                        final Multipart mp = new MimeMultipart();
                        mp.addBodyPart(mbp1);
                        //if (!FileName.equals("")) {
                        mp.addBodyPart(mbp2);
                        msg.setSentDate(new Date());
                        msg.setHeader("Content-Type", "multipart/mixed");
                        msg.setContent(mp);
                        Runnable r = new Runnable() {
                             public void run() {
                                  try {
                                       Transport.send(msg);
                                       JOptionPane.showMessageDialog(null," Your message has been sent successfuly","G T P Email Client",JOptionPane.INFORMATION_MESSAGE);
                                  catch (Exception e) {
                                       e.printStackTrace();
                                       JOptionPane.showMessageDialog(null," -- E r r o r -- Your message has not been sent!!!!! ","G T P Email Client",JOptionPane.INFORMATION_MESSAGE);
                        Thread t = new Thread(r);
                        t.start();
                   catch (Exception e) {
                        e.printStackTrace();
    }

  • On my iPad I have installed the update ios 7.0.4 and now I can't send emails from the mail app is it just me or a problem with the update?

    On my iPad I have updated the software to iOS 7.0.4 and now I can't send any emails from the mail app.  Is this me or the update?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    The iPad's Mail app has no provisions for creating groups. However, you can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Problem with Send and Receive Emal In SAP System

    Hi gurus!
    I have a following quote:
    Dear !
    I have a problem with send and receive email in SAP system following :
    I want to test send and receive email in local network at my company. I
    had two server
    Server 1 : I setup Exchange Mail Server 2007 with domain controller is
    fes.com
    Server 2 : I setup SAP ERP ECC 6.0
    On Server 1 : I created 2 account ( u1Afes.com and u2Afes.com ) and then I tested send and receive email between u1 and u2 in local network through Microsoft Outlook 2007 -> OK
    and then
    On Server 2: I had configured send and receive email on SAP system
    through tcode SBWP, SCOT and SOST as Note 455140 - "Configuration of
    e-mail, fax, paging or SMS using SMTP"
    for example :
    I logged in SAP system with user Basis01 (with email u1Afes.com ) -> then,using tcode SBWP -> new message -> send to u2Afes.com with Internet Mail type and then status message with green light -> sending ok
    and then I have used Microsoft Outlook 2007, I logged with account u2 ->check email -> Ok. I saw message which send from u1
    Finally, My problem is how can receive mail in SAP system without using Microsoft Outlook
    For example:
    Login system SAP with Basis01 account (with  u1Afes.com ) -> tcode SBWP ->New Message -> send to u2Afes.com
    and then
    Login system SAP with Basis02 account (with u2Afes.com ) -> tcode ??? ->
    To receive email from Basis01 (with u1Afes.com )
    Please help me now
    Thanks
    I replace "@" with "A" because of banning email of this forum.
    This quote is about sending email in local network. And we can't receive any email from the outside email address. Addition if I wanna send email to internal email in Internet (we've just tried with email address in local network) What should I config in SAP and Exchange ?
    By the way, Is SAP Server IP added to Relay Agent for sending or receiving mail ?
    Regards
    An NLP
    Edited by: An NLP on Apr 6, 2010 7:03 PM

    Hi,
    This problem is a classic problem of mail routing via Exchange. Exchange like most mail servers use the domain part of the email address as a means to route mails. So I will make an assumption that your main company mail addrss is "User @ fes.com".
    So when you send a mail to the "User @ fes.com mail" address the mail is delivered to your Outlook mail address as this is the default route for company.
    (Q) So how do you get your Exchange server to relay the mail into the sending SAP system?
    (A) The easiest way would be to setup and unique mail domain for your SAP system. I always recommend "user @ client.sid.company.com" which in your case would be "u1 @ 100.PRD.fes.com". You can then instruct Exchange to send any emails addressed to 100.PRD.fes.com domain to your SAP system. Also using this format of address you can configure multiple mail connections into multiple SAP systems.
    (A) Another answer would be to enter the "Full" email address (LOcal and Domain part of address) into the routing rule for Exchange e.g. "U1 @ fes.com" so that all emails addressed to this user will be delivered into SAP. However this method requires a lot of Admin as you will have to update Exchange with ALL email address that need to receive emails. Also if your corporate mail address is "U1 @ fes.com" then all mails will be forwarded to SAP.
    I would definitely NOT recommend this method but the decision is up to you.
    P.S. The IP address of the SAP system is entered into the mail header of the email. This is standard practice in SMTP relay. You can suppress this header in Exchange
    Hope this helps
    Michael

  • Problem with unicode in MIME text/html

    Hi;
    I have a java program that sends email by sending it to our exchange server using SMTP. The email has both a To and a Bcc in the single email sent.
    The bcc addressee receives the email fine.
    The to address however has a problem with chars that are > 0x7f in the html. The html uses utf-8. But the displayed characters look as though the utf-8 part was ignored.
    Also weird, if I go to view, options in Outlook for the bcc email (which is good) it shows:
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----=_Part_0_32437168.1135634913407"
    Return-Path: [email protected]
    X-OriginalArrivalTime: 26 Dec 2005 22:08:33.0366 (UTC) FILETIME=[E94D1F60:01C60A68]
    ------=_Part_0_32437168.1135634913407
    Content-Type: text/plain; charset=Cp1252
    Content-Transfer-Encoding: quoted-printable
    ------=_Part_0_32437168.1135634913407
    Content-Type: text/html; charset=Cp1252
    Content-Transfer-Encoding: quoted-printable
    ------=_Part_0_32437168.1135634913407--
    But for the to email (which has the problem), it only shows:
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----=_Part_0_32437168.1135634913407"
    Return-Path: [email protected]
    X-OriginalArrivalTime: 26 Dec 2005 22:08:33.0366 (UTC) FILETIME=[E94D1F60:01C60A68]
    Does javamail do anything weird when it gets an email with a to and a bcc and split it up wrong? I just download and installed the latest mail.jar and activation.jar.
    thanks - dave

    OK...this didnt quite cure it for me...but having done this AND then this...
    MimeBodyPart htmlText = new MimeBodyPart();
    final String htmlStuff = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
    + "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
    + "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">"
    + "<head>"
    + "<title>Stuff.</title>"
    + "<meta http-equiv=\"Content-Type\" content=\"application/xhtml+xml; charset=utf-8\"/>"
    + "</head><body>"
    + "<p>Currency Symbols: \u00A3\u00A2\u20A3\u20AC$<p>"
    + "</body></html>";
    DataSource htmlSource = new DataSource()
    private String stuff = htmlStuff;
    private Charset cset = Charset.forName("utf-8");
    public String getContentType() { return "text/html"; };
    public java.io.InputStream getInputStream() throws IOException
    return new ByteArrayInputStream(cset.encode(stuff).array());
    public String getName()
    return null;
    public OutputStream getOutputStream() throws IOException
    throw new IOException();
    htmlText.setDataHandler(new DataHandler(htmlSource));
    htmlText.addHeader("Content-Transfer-Encoding","base64");
    This works for me as shown by the Unicode chars in the html.
    If you intend to take this to production create a decent external DataHandler class and avoid the use of the anonymous class - which then avoids the need for the final String and the string can come from anywhere then.
    Hope this helps,
    Barry

  • HT201401 My iphone is dead is from singapore and i leave in greece and i have problem with support in greece what i can do

    Hello i have big problem i am seaman and i traveling arround the world i buy apple staff all the time from iphone 3g -3gs - 4- 5 i pad 1-2 macbook pro retina now i planing to buy imac my problem i have before one problem with my laptop and apple direct fix it to me and also buy it from singapore now i have problem with my mobile iphone 5 32gb i buy it also from singapore and i leave in greece i join to arrmy and no posible to use my mobile for 5 days the buttery come down and at last when i take off from army go back see my mobile empty put it on plug try to recharge but nothing fully dead not start no charge what i can do i speak with apple in greece and say me we check the problem but maybe you must send in singapore etc the problem i buy the iphone same price from greece no any change i have worldwide quaranty what i can do so i dont buy apple again only from greece is not possible i buy all my staff like this because i know if i have problem the apple have the best service but after that i very sad relay i dont know what i can do and in 5 months i lost 800 euro ... pls tell me what i can do
    thx for your time

    The iPhone warranty has never been International.
    Take the iPhone back to the country of origin or mail it to someone you know there and have them take it in for service.

  • OS X 10.5.x AirPort Dropout Issue - Problem with Apple

    I am posting this as a new topic in the hope that Apple will take urgent action to resolve these AirPort dropout issues with OS X 10.5.x.
    Yesterday, I installed setup a new 40GB partition on my firewire drive and installed OS X 10.5.2 (from my original installation dvd) and did all updates (via Software Update) to arrive at an up-to-date OS X 10.5.5. Only stock standard OS X 10.5.5 installed now.
    Some interesting observations along the way:
    1. After installing 10.5.2 the AirPort network kept dropping out or stalling.
    2. Installed following updates:
    - AirPort Utility (5.3.2)
    - QuickTime (7.5.5)
    - iLife Support (8.3)
    - iTunes (8.0)
    - Remote Desktop Client Update (3.2.2)
    - Java For Mac OS X 10.5 Update 1 (1.0)
    I did not update to OS X 10.5.5 at this time.
    3. Restarted and AirPort network stable and fast.
    4. Ran Software Update again - installed:
    - Front Row Update (2.1.6)
    - Mac OS X Update Combined (10.5.5)
    5. Restarted and AirPort network stable and fast.
    6. Ran Software Update again - all software up to date.
    7. Repaired permissions with Disk Utility.
    Everything has been going fine with connections to the internet with Safari - until this morning.
    My 'clean' OS X 10.5.5 installation is now suffering from the same AirPort network dropouts - no 3rd party applications installed. Ran OK for a day, but after being shutdown for 5 or 6 hours, the problem arose following startup this morning.
    Conclusion:
    1. AirPort problem with OS X 10.5.x; or
    2. AirPort problem with new 17" MBP; or
    3. Problem with AEB 802.11n (gagabit ethernet); or
    4. Problem with DSL modem or ISP connection.
    Comments on item 1 - think I have conclusively eliminated 3rd party software.
    Comment on item 2 - no problems indicated by TechTool Delux or TechTool Pro 4; works OK via ethernet connection.
    Comment on item 3 - previously did factory reset and textbook setup on AEB. Connection via AEB 802.11g relay and remote work fine.
    Comment on item 4 - fact that other computers connect OK and this computer can connect OK via ethernet rules out problems with DSL modem and ISP.
    Draw your own conclusions, but I am now certain the problem is clearly with Apple.

    Hello,
    looks same to me.
    the log says:
    kernel AirPort: Link Down on en1
    kernel unable to collect channel list from hal;(...)
    my AEB is just 2 ms away from the MacBookPro, the AEB is brand new.
    In the moment I have an ethernet cable going from the router through the house, because the AEB is unrelyable. I used all the tricks people posted and said it would solve the problem, which is not the case for me. Dropouts just continue.
    With the old ufo-style extreme there was no problem at all.
    So please Airport developers put effort to solve the problem and suffering of users.
    thanks

  • Problem with non-ASCII file name in content disposition header

    Hi All,
    I am facing some problems with the non-ASCII file name incase of content-disposition header. I read from the RFC 2183 that if the file name contains non-ASCII characters then the same should be encoded before sending to browser. I did the same but realized 2 problems:
    1. The name of the file is truncated in case the file name is slightly long for e.g. �����������j�b�g��������������������������.txt
    2. Also when the same file is opened in notepad, the title is showing encoded name %E6%9C%80%E4%B8%8A%E4%BD%8D.....
    Overall, I feel that the browser is not understanding or responding to the encoded header values.
    Is there any solution to this problem? I am using Microsoft IE 6.0.
    The code snippet is given below:
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              String fileName = "�����������j�b�g��������������������������.txt";          
              fileName = URLEncoder.encode(fileName, "UTF-8");
              resp.setCharacterEncoding("UTF-8");
              resp.setHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\"");
              resp.setContentType("application/download-binary");
              String s = "This is inside txt file";
              resp.getOutputStream().write(s.getBytes("UTF-8"));
              return;
         }Any help or pointer would be highly appreciated.
    Thanks and Regards,
    Ashish

    The MIME standards for non-ASCII filenames are not widely implemented.
    Many mailers use an ad hoc method for encoding filenames. JavaMail
    supports both methods, but you need to set properties, such as the
    mail.mime.encodefilename property. See the JavaMail javadocs for
    the javax.mail.internet package.

Maybe you are looking for