Sending mail from servers with non-ASCII names

As part of an effort to internationalize our product we're testing on machines with host names that include non-ASCII characters (accented e's and whatnot). When trying to send mail from these machines we're getting:
javax.mail.MessagingException: 501 5.5.4 Invalid Address
at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1634)
at com.sun.mail.smtp.SMTPTransport.helo(SMTPTransport.java:1068)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:458)
at javax.mail.Service.connect(Service.java:291)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)
at javax.mail.Transport.send0(Transport.java:190)
at javax.mail.Transport.send(Transport.java:120)
at msgsendsample.main(msgsendsample.java:86)
Looking at a network trace I see the EHLO command being sent as
EHLO test[0xe9][0xdf]\r\n
where the machine name is testéß. From a Unicode table 0xe9 0xdf = é ß.
I found a reference from RFC 5336 (SMTP Extension for Internationalized Email Addresses) that says the hostname in the EHLO must be in the form of ACE (ASCII-compatible encoding) labels:
3.7.1. The Initial SMTP Exchange
When an SMTP connection is opened, the server normally sends a
"greeting" response consisting of the 220 response code and some
information. The client then sends the EHLO command. Since the
client cannot know whether the server supports UTF8SMTP until after
it receives the response from EHLO, any domain names that appear in
this dialogue, or in responses to EHLO, MUST be in the hostname form,
i.e., internationalized ones MUST be in the form of ACE labels.
ACE encoding for my machine would be: java.net.IDN.toASCII("test4éß") --> "xn--testss-eva".
I'm not sure if this RFC applies in this case - I didn't know anything about the guts of SMTP until yesterday - but it makes sense that you'd need to escape the hostname in the EHLO until you can negotiate capabilities.
Looking at the JavaMail API it seems that if I were to call SMTPTransport.helo(String domain) myself without going through the higher-level Transport class that maybe I could work around the issue, but I haven't looked into it enough to know if that's feasible.
Is anyone familiar with this problem? I'm using JavaMail 1.4.2 on Windows 2003 and Exchange as my SMTP server.
thanks,
Eric

Same problem here (or at least in part). Some .mac folders did no longer show any messages, while they were there and could be seen online and with Thunderbird. After your remark I changed the name of a folder which contained a "´" and now it works. It is really strange because there is another folder with a "¨" in it which does not work (I will test if the name change works with this folder as well in a minute) whilst there is another one with such name which works fine. The update really messed up Mail and in Dutch we just use such characters so Mail without supporting them will be rather useless for me...

Similar Messages

  • Mail IMAP after 10.5.2 can't read ANY mails in boxes with non-ascii names

    I have Mail with IMAP that connects to a regular MAC OS X Tiger server running IMAP.
    After upgrading to 10.5.2 on the client, Mail can no longer read ANY mails at all in any mailbox whose path contains a non-ascii character!
    Hence: If a box is called 'Övrigt', it only lists the mails in the mail box, but it will not show any of the contents of any of the mails! Hence, I cannot access any of these mails! Catastrophic!
    I have to downgrade to 10.5.1, unless someone knows of a workaround.

    Same problem here (or at least in part). Some .mac folders did no longer show any messages, while they were there and could be seen online and with Thunderbird. After your remark I changed the name of a folder which contained a "´" and now it works. It is really strange because there is another folder with a "¨" in it which does not work (I will test if the name change works with this folder as well in a minute) whilst there is another one with such name which works fine. The update really messed up Mail and in Dutch we just use such characters so Mail without supporting them will be rather useless for me...

  • Problem in sending mail from database with attachment

    Hi All,
    I amd using forms10g,oracle10g
    I am facing a error while running a procedure to send mail from db
    procedure is:
    declare
    ErrorMessage VARCHAR2(4000);
    ErrorStatus NUMBER;
    -- enable SQL*PLUS output;
    --SET SERVEROUTPUT ON
    -- redirect java output into SQL*PLUS buffer;
    --exec dbms_java.set_output(5000);
    BEGIN
    ErrorStatus := SendMailJPkg.SendMail(
    SMTPServerName => '192.168.4.2',
    Sender => '[email protected]',
    Recipient => '[email protected]',
    CcRecipient => '',
    BccRecipient => '',
    Subject => 'hth106: Test JavaMail',
    Body => 'This is the body: Hello, this is a test that spans 2 lines',
    AuthReqdYNNum => 1,
    UserID => 'jagan',
    Password => 'songbirds',
    ErrorMessage => ErrorMessage,
    Attachments => SendMailJPkg.ATTACHMENTS_LIST('C:\oramail\MHTHSO_GEN45.html')
    END;
    while running this procedure i am receiving following error
    "ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.IncompatibleClassChangeError"
    but the same procedure sending mail from all other user in the same database
    I am very myuch confused.i have given the all rights
    below mentioned rights are given .it is working in all other user on the same db except this user "hth106". And all the othere things are compared between working user and this hth106 user every things are same.But i am receiving error when i sending mail with attachment if the mail is sending without attachement it is working fine
    below rights are given to this user
    1.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read');
    2.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','write');
    3.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','connect');
    4.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','resolve');
    5.exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','read');
    exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','write');
    6.call dbms_java.grant_permission('HTH106','java.net.SocketPermission','HTHDS01','resolve');
    7.call dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read,write');
    7.call dbms_java.grant_permission('HTH106', 'java.io.FilePermission','C:\oramail\*','read');
    please advise me to proceed further
    Thanks in advance
    Thanks ,
    Antony

    With respects to the following:
    The bit you'll have most diffulty with is the attachment, because you can't be sure that
    the directory path specified is one that the database can read from. You can probably
    resolve this by using some java to move the file to a directory which utl_file can see.Another alternative is to specify a location on then database server where all file attachments MUST be copied to and the define and Oracle DIRECTORY (CREATE OR REPLACE DIRECTORY [dir_name] AS '/dir/name/on/files/system';) that references this location. When you attach a file to an email, then you only have to refer to the DIRECTORY for the file location.
    Just my 2 cents on the topic. :-)
    Craig...

  • Can't send mail to people with "åäö" in their names

    This possible bug seems ridiculous, but it should be easy to reproduce, if it indeed is a bug.
    I've got a Scandinavian letter Ä in my name. If I try to send mail with my real name OR to an address that has a firstname/lastname with ÅÄÖ in them, the mail won't leave the iPhone. I see the progress bar "Sending..." but it won't move. There's no error message. I simply end up with an unsent mail (which, btw, I haven't find a way to delete. There's no Outbox folder in the phone.)
    The mail works fine, if I send mail to names that use A instead of Ä, that is, convert the names to ASCII. It doesn't matter which SMTP server I use, as long as the server itself works. It's the same (mis)behavior with MobileMe, Gmail and the local 3G operator.
    Can someone else reproduce this? For example, set your email account to:
    Föö Bär <[email protected]>
    or try sending mail to that address from your iPhone.
    Thanks for any ideas or confirmations.

    Looking at the XCode Organizer's logs for the iPhone, here's what it says when trying to send mail to people who have "åäö" in their name:
    For Gmail with SSL: Thu Jul 17 20:56:59 unknown MobileMail[111] <Warning>: Exception raised while processing message body loading queue: * -[NSConcreteData initWithContentsOfFile:options:error:]: nil file argument
    For my ISP's smtp server without SSL: Thu Jul 17 20:53:25 unknown MobileMail[111] <Warning>: ERROR: The connection to the server "(null)" failed.
    For MobileMe's smtp server with SSL: Thu Jul 17 20:58:27 unknown MobileMail[111] <Warning>: ERROR: The recipient "<i've hidden my email address...>" was rejected by the server.
    Note: all those servers do send mail = work just fine, if I don't send email to addresses that have "åäö" in them. But in real life that's hard, because the Reply button automatically grabs the recipient's name from the From field. And often the +original sender+ has sent the mail with his/her real name = with Scandinavic letters. Replying to that mail gets stuck.

  • Sending mail from my personal email domain name.

    Hi,
    I'm fairly new to Macs and OSX and can't work out how to configure my mail properly. My mail works fine with my [email protected] email address, connecting to my mac mail and happily sends and receives messages.
    I also have my own domain name which I have configured to forward all email to it to my user@mac .com. So far so good, but how can I have the ability to send email from my personal email domain and send it through the mac mail. My domain doesn't have it's own mail server etc.. it just forwards mail.
    I would like to be able to have the option to send mail either from my [email protected] or my [email protected]
    Hope this makes sense and many thanks in advance.
    Alan

    Go to your email settings and remove email integration and then reintegrate the ID again.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • How to send mail from linux with .txt file as attachment ..

    I want to send email from linux box and in the body of the email i want to have the content of dblog.txt file.
    I want dglob.txt file content to be part of the mail body.
    Thanks in advance!!

    Apr 29 15:19:35 lctwprddb01 sendmail[1616]: m3TJJZ4k001616: to=[email protected], ctladdr=oracle (500/500), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30109, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m3TJJZhB001617 Message accepted for delivery)
    Apr 29 16:04:52 lctwprddb01 sendmail[1422]: m3TIP6LJ031388: to=<[email protected]>, ctladdr=<[email protected]> (500/500), delay=01:39:46, xdelay=00:48:01, mailer=esmtp, pri=120423, relay=cluster2a.us.messagelabs.com. [216.82.249.211], dsn=4.0.0, stat=Deferred: Connection timed out with cluster2a.us.messagelabs.com.
    Apr 29 16:07:36 lctwprddb01 sendmail[1619]: m3TJJZhB001617: to=<[email protected]>, ctladdr=<[email protected]> (500/500), delay=00:48:01, xdelay=00:48:01, mailer=esmtp, pri=120425, relay=cluster2a.us.messagelabs.com. [216.82.248.44], dsn=4.0.0, stat=Deferred: Connection timed out with cluster2a.us.messagelabs.com.
    Apr 29 16:07:52 lctwprddb01 sendmail[1627]: m3TILs2r031176: to=<[email protected]>, ctladdr=<[email protected]> (500/500), delay=01:45:58, xdelay=00:48:01, mailer=esmtp, pri=120429, relay=cluster2a.us.messagelabs.com. [216.82.248.45], dsn=4.0.0, stat=Deferred: Connection timed out with cluster2a.us.messagelabs.com.

  • Send Mail from workflow with a Long URL

    Hello,
    My problem is that when an email gets generated from the workflow in my application, the generated url is quite long. As a result the link is not completely underlined in the email. I know there are limitations discussed in SAP note 363986. But does anybody know a workaround using aliases for the URL? and an example for the same would be great.
    Regards,
    Manoj.
    Message was edited by:
            Manoj Vudathala

    Hello!
    I had the same requirements a while ago and even sent OSS note because customer insisted - even though I informed about the known restrictions.
    Well, SAP replied back that the restrictions are still valid and we tried to use alias and splitting email to multiple container elements but still did not work!
    Using send mail step will simply not work with long URL's!
    But there is a work around if the requirement is business critical - you can create a smartform that has the email text and then pass the URL to the smartform. Smartforms can handle the long URL. You can then trigger a method in your workflow that will send the smartform as email. Hope that gives you an idea!
    Harald

  • File upload with non-ascii name

    I'm designing a system that includes file-uploads. My problem is that any non-ascii chars in the filename are encoded strangely when saved. &auml; is encoded to a&#778; etc.
    I use Tomcat with the -Dfile.encoding="UTF-8" in the Catalina file. I get the same result despite method; my own implementation, apache commons or Javazoom's uploadBean. All the JSP charset parameters are set.
    Any ideas?

    Hi amitads,
    I'm sure u've used Java enough. Also, u must have learned about the \ (backslash) escape character ?
    So, if u want to include a string like a single quote, u can write \' and for a double quote u can write \".
    Try this ... I'm sure it will help.
    Keep me posted.
    Cheers !!
    Sherbir.

  • Send mail from report with DESNAME and DESFORMAT

    j have tried to send a mail from a report to "outlook express" passing as parameters the email of the user to send the mail.
    i have passed as parameter list :
    DESCNAME = [email protected]
    DESFORMAT = mail
    but aoutlook express don't start.
    It start only if i press the icon "mail" on report, and don't put the email adress in the "send to" field....
    There is a reason or there is an error or it is impossible ????
    Than'k from "il vampiro italiano"

    Hello Mike,
    In order to mail a report from Reports Builder 6i using the system's default MAPI client, you would need to set DESTYPE=MAIL, DESNAME=<email address of recipient> and DESFORMAT=<format of report output>.
    Thanks,
    The Oracle Reports Team.

  • Sending mail from servers at work

    I'm having trouble sending mail when I'm connected to the wireless network at work. I am very unfamiliar with networks and such so I haven't tried anything to remedy the problem. When I send an email, I get a message that says the server isn't available. I'm provided with a list of alternatives but I end up just selecting "Try Later". Any help with this is much appreciated.

    I'm having trouble sending mail when I'm connected to the wireless network at work. I am very unfamiliar with networks and such so I haven't tried anything to remedy the problem. When I send an email, I get a message that says the server isn't available. I'm provided with a list of alternatives but I end up just selecting "Try Later". Any help with this is much appreciated.

  • Sending mail from plsql with attachement

    Hi Friends,
    i wanted to prepare an excel report and send that by email useing PLSQL .
    i know the inbuild packages UTL_FILE and UTL_SMTP can do this job . But my DBA not allowing me to do this . My DBA adviced me to do this work with in database by inplementing BLOB.
    I have never come accross to this task with in database , ( preparing the excel file and attaching that with mail and send it to users ) ??.
    can some one share tips & sample codes if any ???
    Thank You,
    Raj.

    First thing is Excel is Microsoft Specific and cant be created using UTL_FILE. May be as Excel supports CSV you can create CSV file using UTL_FILE.
    Next BLOB is a datatype like CHAR or VARCHAR2. You can store data in it. Thats all nothing much. With BLOB you can store an excel file. BLOB can't create or send it via EMail.
    So it would be better you talk to your DBA asking him to give more details.
    Thanks,
    Karthick.

  • Sending mail from iPhoto with signatures

    I spent a lot of time setting up my signatures which include small jpg's.
    When I send my photos via iPhoto, the jpg's are dropped and it says "unknown" in place of the image I want.
    How can I correct this so that my jpg's are included in my mail via iPhoto?

    First thing is Excel is Microsoft Specific and cant be created using UTL_FILE. May be as Excel supports CSV you can create CSV file using UTL_FILE.
    Next BLOB is a datatype like CHAR or VARCHAR2. You can store data in it. Thats all nothing much. With BLOB you can store an excel file. BLOB can't create or send it via EMail.
    So it would be better you talk to your DBA asking him to give more details.
    Thanks,
    Karthick.

  • Changing Sender Details in Sending mails from SAP

    Hi All,
           I am getting request from legacy system to send mail from along with document. So i am creating the document and attaching   that to send request then the system automatically taking the user login eamil ID as sender Email ID.But My requirement is i have to change the sender email ID as the what ever the email ID i got from legacy system.
    In this i am using class :: CL_SAPUSER_BCS
    Please help me if any implemented this earlier.
    Thanks
    Anil d

    I am using object oriented approach and this is my modified code
    Intially SAP using the following code
        Sender details; Usually user name
         WA_SENDER0 = CL_SAPUSER_BCS=>CREATE( SY-UNAME ).
         call method WA_SENDREQ->SET_SENDER
           exporting
             I_SENDER = WA_SENDER0.
    but i hv commented this one and added my code.then also i can't able to send mails from this class.
    V_SENDER = 'abc.yahoo.com'.
    data: SENDER type ref to CL_CAM_ADDRESS_BCS.
    SENDER = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( V_SENDER ).
    call method WA_SENDREQ->SET_SENDER
    exporting
    I_SENDER = SENDER.
    Thanks

  • Sending mail from non-BT accounts

    I have email accounts with Apple (mobileMe), my own domain (hosted by Verio) and another of my own domains (hosted by Network Solutions) - as well as the BTinternet.com email account. 
    Until today, all four accounts were set up on my email client (Apple Mail) to use their own respective SMTP servers for outgoing mail, and all four have worked fine in this way for literally years. 
    This morning, I started getting error messages trying to send mail from the domain hosted by Verio ("cannot send message using the server [my own domain's SMTP server]").
    In the end, I followed the steps outlined in a thread on this forum to "add" the account to BTYahoo, verify it, and change the email client settings to use BT's SMTP server. So now it works fine.
    What I don't get is why I had to change this one account, when the other non-BT accounts (Apple and NS SMTP servers) continue to work fine as they are (ie using their own server details for outgoing mail).
    Anyone know the answer?  Obviously it works, so there's no problem (apart from wasting 2 hours this morning trying to figure out what the **bleep** had gone wrong), just curious as to BT's logic here.
    Solved!
    Go to Solution.

    gregch wrote:
    I have email accounts with Apple (mobileMe), my own domain (hosted by Verio) and another of my own domains (hosted by Network Solutions) - as well as the BTinternet.com email account. 
    Until today, all four accounts were set up on my email client (Apple Mail) to use their own respective SMTP servers for outgoing mail, and all four have worked fine in this way for literally years. 
    This morning, I started getting error messages trying to send mail from the domain hosted by Verio ("cannot send message using the server [my own domain's SMTP server]").
    In the end, I followed the steps outlined in a thread on this forum to "add" the account to BTYahoo, verify it, and change the email client settings to use BT's SMTP server. So now it works fine.
    What I don't get is why I had to change this one account, when the other non-BT accounts (Apple and NS SMTP servers) continue to work fine as they are (ie using their own server details for outgoing mail).
    Anyone know the answer?  Obviously it works, so there's no problem (apart from wasting 2 hours this morning trying to figure out what the **bleep** had gone wrong), just curious as to BT's logic here.
    Hi Gregch.
    To be honest, the problem seems to be at the destination smtp service end and nothing to do with BT. You've not really supplied any details of the error message - is there anything else in the received message ?
    You've assumed that it's a BT fault, rather than perhaps investigating the possible error at Verio. As the other accounts work as exists, it really does point at Verio (or indeed something local, perhaps a security package interferring etc).
    http://www.andyweb.co.uk/shortcuts
    http://www.andyweb.co.uk/pictures

  • Cant send mail from i phone 3s, with a tiscali account

    I can no longer send mail from my tiscali mail account on my i phone 3s, or my ipad without going through web mail account. please can anyone advise

    Isn't mail.virgin.net the name of the Incoming Server -- the incoming server, which you say is working is set up at Mail Preferences/Accounts/Account Information as to name of the server, Username, and password, along with entries in Mail Preferences/Accounts/Advanced for Port select for the Incoming.
    However, if that is working for you, you must have it correct. For the Outgoing server, isn't the proper name for Virgin services smtp.virgin.net? In Mail Preferences/Accounts/Account Information, click on the arrows beside the name of the SMTP, and choose Edit Server List. Remove all, or all but one of any references to the smtp.virgin.net. Enter anew, or with the remaining server, click on the Advanced Tab there, and choose Use Custom Ports. Then enter the Custom Port to be Port 25, and set the Authentication to None, and have no entries in Username or Password. This is consistent with those specs I can online saying the SMTP does not require Authentication.
    Also click Use this server only. Now if the smtp.virgin.net server is online, it should work.
    Ernie

Maybe you are looking for

  • What did you buy that was more powerful than necessary... but totally worth it?

    Hey folks, hope you guys will tune into this week'sOn the Air (10am CT on 7/15)where we are talking about "The MostPowerful Workstations in the Universe!"We're going to talk with HPand Spicehead Travis0729about why and when you need to go above and b

  • How to determine if mbp has key logger or spyware

    Strange logs and possible spyware. Brand new mbp, migrated from older mbp and now wondering if i should wipe it clean and start over. Not sure what all migrated over to my new mbp. Most of my google questions took me to Linc Davis discussions. I am n

  • Wondering about screen - Purchase iMac or wait?

    I was going to buy a new 24" iMac but have become concerned about the screen issues that have appeared in various forums. It seems you only hear from those who have had problems and not from those who haven't. I'm wondering how widespread the problem

  • Getting exec file permission on Linux

    Hi, I have read http://forum.java.sun.com/thread.jspa?forumID=256&threadID=302708, but this is the old stuff. My problem is as follows: I need to sftp-y file from one Linux account to the other Linux one. It is not a big deal. However, I would like t

  • Recovering files after computer crash

    My HP computer recently crashed and eventually I had to reinstall XP and consequently lost all of my files. Is there any way for me to recover my iTunes library (I had 100's of files...)? I did not backup my music as I had no external drive or anythi