0

When sending mail using SMTP server, how to determine whether the smtp server rely and save send mails to "Sent" folder or not.

Example

When sending mail using GMail smtp server ( smtp.gmail.com ), GMail server automatically rely and save the mail to "Sent" folder. But few other server like Exchange, GoDaddy,.. these are the servers not saving the mail to "Sent" folder. We have to manually append the message to respective folder using IMAP append command.

If I able to find whether the server won't save send mails to "Sent" folder means, I can invoke IMAP append command to save the mail to "Sent" folder

1
  • 1
    You cannot; gmail is the only I know that does this. Most email clients have an 'Append to Sent Folder' user option that can be turned off.
    – Max
    Jun 9, 2015 at 13:42

1 Answer 1

1

You cannot find that out. But you can make gmail and godaddy behave almost compatibly by sending a Bcc to the user. Gmail does that automatically, but if you do it explicitly the user still gets only one copy.

When you send mail via SMTP, add "rcpt to:<myaddress@doma.in>", and both gmail and godaddy will write the message to some filter. If you're lucky the message is even in the right folder.

3
  • Except bcc will appear in the users inbox, which is usually not the desired outcome.
    – Max
    Jun 9, 2015 at 13:43
  • The Bcc header is removed before the message is sent. The addresses end up as additional "RCPT TO:" addresses, but not part of the message. Jun 9, 2015 at 18:41
  • 1
    IIRC gmail writes the message to "sent" instead of the inbox when you send it on port 587 and add an RCPT TO yourself. Godaddy is another matter.
    – arnt
    Jun 9, 2015 at 20:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.