Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: addHtml send attachment
FrancisOuelletINO
ouellet@ino.ca

From: Quebec, QC Canada
Posts: 1
Member Since: 10/17/03
posted October 17, 2003 3:09 PM

I use this code to send and html mail that is in the same directory of my application (test.htm). The probleme is I receive the html part as an attachment in Outlook.

  With Smtp1.Message
    .Content = ""
    .To.Add txtTo.Text
    .From = txtFrom.Text
    .Cc.Add txtCc.Text
    .Bcc.Add txtBcc.Text
    .Subject = txtSubject.Text
    .AddHtml App.Path & "\test.htm"
  End With
  
  Smtp1.Login txtServer.Text
  SetCapabilities
  Smtp1.To.Clear
  Smtp1.To.Add txtTo.Text
  Smtp1.From = txtFrom.Text

  Smtp1.Send
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 17, 2003 4:18 PM

I just used this code and here is what I see:

1) When the message first comes in, I see a paper clip indicating an attachment

2) Once the message is opened, either by double-clicking the message or letting it open in the preview pane, the paper clip disappears and the message looks exactly like I expect.

mdwait

From: North Richland Hills, TX USA
Posts: 17
Member Since: 09/30/02
posted January 20, 2004 8:39 AM

I have been using email tool - with great sucess (sending HTML). So I don't really have a problem - other than I am curious why html with pictures show-up with an 'attachment' vs. part of the actual email.  We are competing for a contract (to email out newsletters) - and our competition's newsletter doesn't include the 'attachment paperclip.'  Is there anything that I can manipulate in code to prevent this?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 20, 2004 8:42 AM

The paper clip means an attachment that is saved as a file meant to be saved on the clients computer.

No paper clip means the attachment is "inline" and is meant to be displayed by the clients email program.
mdwait

From: North Richland Hills, TX USA
Posts: 17
Member Since: 09/30/02
posted January 20, 2004 8:50 AM

Right.
But the issue (at least in the client's mind) is an attachment means potential virus (yes I know pic files shouldn't). 
I was just curious to know why inline pictures show up as attachements - or if there was something that I needed to change either in the html file that we are sending and/or the code; to avoid the paper-clip.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 20, 2004 9:03 AM

I don't know. You'd have to ask Microsoft about that one. From my experience, Outlook Express behaves differently than Outlook. Outlook always shows a paper clip.
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX