TIdSMTP & TIdMessage - Problems with them

Giganews Newsgroups
Subject: TIdSMTP & TIdMessage - Problems with them
Posted by:  Mark Moss (markemo…@comcast.net)
Date: Thu, 12 May 2011

HELP

        I am having a problem with TIdSMTP and TIdMessage when I attemp to
send an email with attachmented files.

        If I just send the message with no attachments it arrives fine at
the Godaddy web site.

        If I attache any number of files and send it, it arrives says it has
attachments but the message does not display and the attachments cannot be
seen or saved.

        If I send the same message to another site( Earthlink, Netcom or
Comcast ) it is received just fine.

Any Ideas

Mark Moss

{------------------------------------------------------------------------------}
  This is how I do the attachments

    TIdAttachmentFile.Create( MailMessage.MessageParts,
'D:\Recovery\Data\Documents\Recovery Profile.pdf' );

{------------------------------------------------------------------------------}
  This is how I do the email

    //setup SMTP
    SMTP.Host                                  := 'smtp.comcast.net';
    SMTP.Port                                  := 25;
    SMTP.Username                          := '…@comcast.net';
    SMTP.Password                          := 'freeman1';

    //setup mail message
    MailMessage.From.Address                      := '…@comcast.net';
    MailMessage.From.Name                        := '…@comcast.net';
    MailMessage.Recipients.EMailAddresses  := edtEmailAddress.Text;
    MailMessage.BccList.EMailAddresses      := 'suppo…@recovery.com';

    MailMessage.Subject                                := 'Recovery';
    MailMessage.Body.Text                          := Global_MailBody;

    //send mail
    try

        try
          SMTP.Connect;
          SMTP.Send(MailMessage);

        except on E:Exception do
              StatusMemo.Lines.Insert(0, 'ERROR: ' + E.Message);

        end;

    finally

            if SMTP.Connected then
              SMTP.Disconnect;

    end;

{------------------------------------------------------------------------------}

Replies