Sending mail to invalid addresses

Hello
I'm using TransportListener to catch TransportEvent, and my gmail account
My problem is that when i send a message to an invalid address, the event caught is MessageDelivered, ie, the mail is ever sent successfully, even when it is invalid, and i can't get unknown addresses.
message.addRecipient(Message.RecipientType.TO,
  new InternetAddress("*[email protected]*")); // <- invalid address
message.setSubject("Hello");
message.setText("message");
Transport t = session.getTransport("smtp");
t.addTransportListener(listener);
t.addConnectionListener(listener);
t.connect("[email protected]", "****");
t.sendMessage(message, message.getAllRecipients());what can i do?

[http://java.sun.com/products/javamail/FAQ.html#badaddr|http://java.sun.com/products/javamail/FAQ.html#badaddr]
Apparently Gmail doesn't verify the address before accepting the message.

Similar Messages

  • Sending mail to invalid mail address but domain valid.im not getting any NDR

    Hi,
    In my organisation I'm sending mail to invalid email address but domain is valid ...i'm not getting any NDR. I want NDR like this
     The e-mail address you entered couldn't be found. Please check the recipient's e-mail address and try to resend the message. If the problem continues, please contact your helpdesk

    Hi,
    Please check whether other users can receive NDR message when sending mails to invalid email address. If the issue happens to all users and all related configurations are proper, please check whether there are any transport rules directly
    deleted the mails that send to an invalid address.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Javax.mail.SendFailedException: Invalid Addresses

    Hi all,
    I write a web application with a module can send mail to specific mail address using JAVAMAIL . I test my SendMail.java  which has sendEmail() function with command line ../java SendMail and it run OK. But when I call sendEmail() from my web page it throw out ERROR: javax.mail.SendFailedException: Invalid Addresses.
    I don't know why? Do you have any idea about it ?
    Thanks!

    Hi all,
    This is more Error information:
    javax.mail.SendFailedException: Invalid Addresses;
      nested exception is:
        com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
        at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1294)
        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:635)
        at view.MailImplement.sendEmail(MailImplement.java:152)
        at view.MailImplement.main(MailImplement.java:40)
    Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
    Thanks a lot!

  • Inquiry on javax.mail.SendFailedException: Invalid Addresses error

    Hi,
    Anyone does have any idea why the following is being encountered during the email authentication process? We are using PeopleSoft application and we have notification functionality which will send a notification email to the users but email not being sent due to an invalid email address but actually the email is active and valid. Below are the logs from SMTP
    Log Start:
    DEBUG SMTP: Sending failed because of invalid destination addresses
    Wed Jul 31 09:38:14 GMT+08:00 2013 RSET
    Wed Jul 31 09:38:14 GMT+08:00 2013 250 2.0.0 Resetting
    Wed Jul 31 09:38:20 GMT+08:00 2013 javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    class com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown
    Wed Jul 31 09:38:20 GMT+08:00 2013 at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1141)
    Wed Jul 31 09:38:20 GMT+08:00 2013 at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:536)
    Wed Jul 31 09:38:20 GMT+08:00 2013 at com.peoplesoft.pt.mcf.mail.MCFOutboundEmail.send(MCFOutboundEmail.java:686)
    Wed Jul 31 09:38:20 GMT+08:00 2013 at com.peoplesoft.pt.mcf.mail.MCFOutboundEmail.send(MCFOutboundEmail.java:854)
    Log End:
    Kindly let us know your thoughts on this.
    Thanks.

    This isn't an authentication problem.  You're sending to an address that your server doesn't know about, so it's rejecting your message.  The error from the server is:
    550 5.1.1 User unknown

  • Sending mail to Internet address from SAP system

    Hi...
    My requirement is to send a mail to an internet address say ABC@companyid from SAP.
    I have used a FM So_New_Document_Send_API1 for the purpose.For this I have provided
                 e_mailrec-receiver = w_emailid.
                  e_mailrec-rec_type = 'U'.
                  APPEND e_mailrec.
    But I get an error msg in SOST, that the route from (SAP server) to (mail id) not found.
    Instead of internet address when I give rec_type as B i.e. SAP USER it sends a mail to my SAP inbox.
    I have also checked SAPConnect, and it is fine.
    Is the above FM only for sending mails to SAP id, then wats the FM for sending mails to internet address? Its just sending a 1 line mail without attachment.
    P.S: I have gone through search in sdn so please don't provide me with links to other threads.
    Reply only if you can actually help and know wats this about.
    Thnaks and Regards.

    These are the FM for sending external email :-
    SO_DOCUMENT_SEND_API1
    Send new document with attachments via RFC
    SO_NEW_DOCUMENT_ATT_SEND_API1
    (In 4.6C only, You can go to SE37 and click the documentation on how to use it. A sample program is provided there.)
    Send new document with attachments via RFC
    Note : If you are using FM SO_NEW_DOCUMENT_ATT_SEND_API1 then Export Parameter DOCUMENT_DATA-OBJ_DESCR contains the Subject.
    SO_NEW_DOCUMENT_SEND_API1
    Send new document
    For Code
    http://www.forum.saptechies.com/viewtopic.php?t=5562

  • When I try to send mail to multiple addresses, it tells me it cant send with selected server.  It sends mail to one address fine.

    When I try to send mail to multiple addresses, it tells me it cant send with selected server.  It sends mail to one address fine.

    contact your email service provider and ask them (it might treat multiple e-mails as SPAM)

  • Sending Mail to Internet Address Maintained in Infotype 105

    Hi All,
    I have a requirement wherein I have to send mail to the Internet Address of the employee which is maintained in Infotype 0105. Now I have gone through the SDN where in they have said that using select or FM get the Employee details and pass it to a container which will be added in the Send Mail step. I have understood all this thing. But Since I am new to workflow Concepts. Can someone guide me where to write this peice of code to fetch email id from INfotype 0105 and how to get that value in a workflow container.
    If anyone has done this scenario , I will be very grateful if you can guide me step by step how to do it.
    I am an Abaper and understands ABAP OO and BOR Concepts very well.
    Regards,
    Akhil Rai

    I am an Abaper and understands ABAP OO and BOR Concepts very well.
    Createa a method in the BOR and impor the employee number for whom you need to determine the EMAIL ID by using the FM HR_READ_INFOTYPE pass the infotype as 0105 and subtype as 0010 to get the email Id.
    and once the email ID is determined then export the email back to workflow by using binding concept
    Pass the pernr from WORKFLOW  ---> TASK  ---> method container ( For importing into method )
    Pass any value METHOD ---> TASK ---> Workflow Container ( for exporting to workflow )..
    and if possible instead of using send mail step call the standrad FM and mention the address type as U external address and pass the email ID and content...

  • Need help: Sending mail to internet address without commit work statement

    Dear Experts,
            I have a problem in sending mails from sap to internet address.Am using the function module
    SO_NEW_DOCUMENT_SEND_API1 and am passing parameters like,
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
         EXPORTING
              DOCUMENT_TYPE  = 'RAW'
              DOCUMENT_DATA  = DOC_CHNG
              PUT_IN_OUTBOX  = 'X'
         TABLES
              OBJECT_CONTENT = OBJCONT
              RECEIVERS      = RECLIST
         EXCEPTIONS
              TOO_MANY_RECEIVERS         = 1
              DOCUMENT_NOT_SENT          = 2
              OPERATION_NO_AUTHORIZATION = 4
              OTHERS                     = 99.
    submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
    My problem here is,with the commit work statement after FM, the mail is triggering correctly.but if, am not using the commit work statement,at the very first time of execution mail is not triggering, and the second time of execution first mail is triggering like wise it is going.The status of the message is waiting in queue.
    i have refresh receiver's list also.I want to use this concept in badi.So anyone can pls help me,how to send a mail without commit work statement.
    Thanks in advance.

    There is a parameter Commit_Work pass it as 'X'
    <code>
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
    DOCUMENT_TYPE = 'RAW'
    DOCUMENT_DATA = DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    commit_work = 'X'
    TABLES
    OBJECT_CONTENT = OBJCONT
    RECEIVERS = RECLIST
    EXCEPTIONS
    TOO_MANY_RECEIVERS = 1
    DOCUMENT_NOT_SENT = 2
    OPERATION_NO_AUTHORIZATION = 4
    OTHERS = 99.
    submit rsconn01 with mode = 'INT'
    with output = 'X'
    and return.
    </code>
    Edited by: Saravanan Ramasamy on Nov 11, 2009 1:31 PM

  • Can't send Mail with AOL address-out of ideas

    hello,
    I can recieve mail just fine. It's only when I try to send it. I've tried changing the outgoing server to smtp.aol.com and 4.78.166.10.
    changed the ports from 25 to 587 to 1024.
    I appreciate your help. thanks in advance.
    -Seth
    powermac g4   Mac OS X (10.3.9)  

    My girlfriend and I are RoadRunner customers and RR allows using an SMTP server outside of their network as long as the SMTP server is authenticated.
    I set up my girlfriend's AOL account in Tiger Mail (and the only email account she uses) on my old TiBook that I loaned her until she purchases her own Mac and she sends mail with her AOL account with no problems.
    The AOL SMTP server settings are as follows:
    Outgoing Mail Server: smtp.aol.com
    Server Port: 587
    Use Secure Sockets Layer (SSL): Off or not selected.
    Authentication Type: Password
    User Name: Your AOL screen name or the portion of your AOL email address in front of the @ sign only.
    Password: The password for this screen name/email account - the same used for checking the account for new mail.
    If your settings are the same, try deleting and recreating the account in Mail.
    If this doesn't work and it should since it works for my girlfriend, you can select/use the RR SMTP server to send mail with your AOL account which is invisible to all recipients.

  • Can't send mail to specific address

    I am having problems sending mail to my brother from my ibook. When I send it from .mac it is fine but when I send it from the Mail application (postage stamp) it appears in my sent items as normal but never arrives with my brother. This is the only address (that I know of) that is affected by this. Any ideas ?

    Webmail access does not use an SMTP server as does an email client such as the Mail.app.
    Not too long ago, Microsoft's incoming mail server for Hotmail accounts was capturing messages sent by the Mail.app under Tiger. The received messages were not marked as junk by Hotmail's incoming mail server and were not delivered to the recipient with no bounced back error message or a notification of any kind to the sender or recipient.
    Microsoft quietly acknowledged this problem (programming errors at the incoming mail server) which was eventually resolved.
    Long story short, if you are using .Mac's authenticated SMTP server to send messages with your .Mac account via the Mail application, the recipient's incoming mail server may be flagging any messages sent by .Mac's SMTP server as junk/spam. I would ask your brother to contact his ISP or email account provider for his email account to inquire if his email account provider has blacklisted either the .Mac SMTP server or a range of computer IP addresses for which you may fall under.

  • Send mail to external address using send mail step.

    Hi all,
    I have one question.
    In a send mail step of workflow, when the recipient type is a Organizational Object and Org Unit, the mail is only sent to workplace? I would need to send the mail to external address from all users of Org Unit. Is possible it?
    Thanks
    Regards,
    David.

    Hi,
    1) In the Recipient type select the E-Mail address from the drop down
    2) And give the email id (in the text box)
    3) Then save & test it.
    4) Once it execute goto t.code SOST and see the email entry.
    5) If entry not found, the SCOT settings is not done then check with Basis Team
    6) If found, select it and execute.
    7) And check you email
    Regards,
    Surjith

  • Unable to send mail to some addresses after move to Leopard

    I am not sure, whether I am in the right forum with my question. If not, please tell me where I should go.
    I am traveling a lot for work and have clients in many countries. Since 2004, I have been using Mac laptops and have not encountered any problems sending mail through clients' LANs, from my own place to clients, or from any number of hotels to clients. I migrated from Tiger to Leopard on the day the latter OS became available.
    Since the move, I am experiencing a problem sending mail to one specific client. I can no longer send mail to my various contacts within that client's premises (all of whom share the same domain name) from outside. I also cannot send mail to any of those contacts when I am hooked up to the client's network (but not the domain) whilst within the client's premises.
    I use Mail and a mac.com address. I do not use web-mail. It is further noteworthy that messages from my side without attachments will sometimes (perhaps 20% of the time) go through. However, messages with attachments never go through. I have discussed the matter at length with the two IT-experts at the client (a government office) and we have not been able to come up with suggestions.
    Since I am now forced to use a USB-stick to exchange info with my client, I would much welcome your suggestions as to the cause of the problem and possible solutions. Many thanks in advance.

    Thank you for taking up the issue, Type17. The mails do not disappear, they remain in my outbox (on my Mac). The intended recipient does not get a message. I, for my part, see a box with the message 'Cannot send the message using the server 'smtp.mac.com: myloginname'. The server name is highlighted in blue in a box below and I get the choices: 'Edit message', 'Try later' and 'Try with selected server'. None of these resolves the problem. The last option, i.e. 'Try with selected server', is a bit strange, because pressing the button 'Edit server list', shows only the server already mentioned. I have tried 'Connection doctor' several times over the past months, but this consistently gives me a green light against the smtp and the message: 'Connection and login to server successful'.

  • What's the terminal command to insert the text that appears when I send mail to Bcc addresses?

    I remember there was a cool add-on to some mail clients like Eudora years back where one could juggle the text that people receive instead of the addresses if you send mail in Bcc... Is there any possibility to change what Apple Mail sends?
    What if, insetad of the usual "undisclosed recipients" I want something else like "omissis" to appear?

    (1) you can't insert a sheet in Pages. Only tables !
    (2) before pasting your table in Pages, you may resize it so that it may fit in a page.
    (3) the users which took time to look in Pages User Guide are aware of a feature described as : Linking Text Boxes.
    It's a good answer to your problem.
    In a Word Processor document, create a text box and paste your table in the new tex box.
    At the bottom of the box you will see a small square with a symbol plus. It's a flag warning you  that the box contents is too large for the box.
    No problem, insert a page break to force the opening of a new page then read carefully the user guide :
    Applying what I highlighted, you will create a new box linked to the first one so that your table will flow in it.
    If it's not sufficient, you may link a third box …
    More, we are allowed to rotate the text boxes so you may edit them a way allowing them to host your landscape table.
    From my user's point of view, it's absolutely intuitive.
    Yvan KOENIG (VALLAURIS, France) dimanche 26 juin 2011 21:29:56
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • TS3276 I cannot send mail to multiple addresses, my provider is RoadRunner.

    I can send mail individually to the same address.

    Read the threads over in the "More Like This" column over here.----------->
    Have you contacted Roadrunner and Outlook tech support?  If not, why not?

  • Cannot send mail to work address

    i cannot send mail to my work e-mail account.
    error message is that the address does not appear to be a valid address. my g5 did not have a problem but this new pro does. any suggestions?

    worked it out..

Maybe you are looking for