Menu

RFC822 Email Address

Help
Hardy Wang
2004-03-31
2004-04-05
  • Hardy Wang

    Hardy Wang - 2004-03-31

    Hi
    Is address like "John Doe" <name@company.com> a valid RFC822 email address? I got error sending from/to this type of address with authentication SMTP server.
    This component will treat whole string as sender mailbox MAIL FROM: <"John Doe" <name@company.com>>, thus server returned "ERROR - Expecting: 250. Recieved: 553 Bad mailbox name.".

     
    • Wilson Chan

      Wilson Chan - 2004-04-02

      name@company.com is the valid one.

       
      • Hardy Wang

        Hardy Wang - 2004-04-02

        I mean:

        "John Doe" <name@company.com>

        the whole line above..

         
    • Wilson Chan

      Wilson Chan - 2004-04-03

      any email client should parse anything like "John Doe" <name@company.com> to be two parts: the user name and email address. and according RFC, any email address in the transaction mode(authentification) accepts email address only, rather than the full address.

       
    • Ian Stallings

      Ian Stallings - 2004-04-05

      Thanks Wilson for answering this. It sounds like the mailbox simply didn't exist on the target SMTP server.

      Hardy,
      If you check out line 289 in Smtp.cs you'll see this:
      WriteToStream(ref nwstream, "MAIL FROM: <" + msg.from.address + ">\r\n");

      It should be supplying the address only in the MAIL FROM. Make sure that when you supply the email address you have only the address itself, not the name. if you need to provide the name use the EmailAddress(string address, string name) constructor that allows this.

      Please post the results if you continue to experience problems.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.