Thread: gmail SMTP

  1. #1
    Registered User
    Join Date
    Oct 2005
    Location
    Brasil
    Posts
    220

    gmail SMTP

    Im build a C++ programa where i access gmail SMTP by SSL, then all set up, authenticated and everything, i start writing my message, but, what should i do in order to the SMTP server know that the message has achieved itīs end? i tried to use "\n.\n" at the end but no answer came up. Thank you in advance

  2. #2
    Registered User
    Join Date
    Oct 2005
    Location
    Brasil
    Posts
    220
    AH! And i almost forgot, does the message have to be MIME?

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Just trace it with ethereal using your regular client.
    Then make your program do the same things.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Oct 2005
    Location
    Brasil
    Posts
    220
    can i trace it even if its comunication is made by ssl?

  5. #5
    Registered User
    Join Date
    Oct 2005
    Location
    Brasil
    Posts
    220
    Never mind.

    I got some errors when starting the trace or sometimes when stoping it. Windows XP Professional SP2

  6. #6
    Registered User
    Join Date
    Oct 2005
    Location
    Brasil
    Posts
    220
    Ok, i got it working but as i expected the packets aren´t readable. Any idea?

  7. #7
    Registered User
    Join Date
    Oct 2005
    Location
    Brasil
    Posts
    220
    Got it. According to RFC 2821 the end of the email should be specified by "\r\n.\r\n"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sending message to GMAIL using SMTP
    By Abda92 in forum Networking/Device Communication
    Replies: 24
    Last Post: 08-18-2008, 06:21 PM
  2. SMTP with Apache/PHP on Windows
    By Mario F. in forum Tech Board
    Replies: 4
    Last Post: 02-29-2008, 09:24 AM
  3. GMAIL_ Making a reserch I find this page to download GMAIL
    By abyssphobia in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-23-2004, 12:27 AM
  4. Gmail: The catch
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 05-01-2004, 09:12 PM
  5. SMTP Server Not Working
    By (TNT) in forum Networking/Device Communication
    Replies: 1
    Last Post: 07-15-2003, 05:33 AM