Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2001, 10:06 AM
Levvi Levvi is offline
Junior Member
 
Join Date: Jan 2001
Posts: 4
Default Attachments with TNMSMTP email component

Hi

I have been trying to send text file attachments using the TNMSMTP component using e.g. myemail.postmessage.attachments(the location of the text file in here);

When run it goes on it's merry way but I then get a mail failed reply saying (I think) MIME decoding error!

I am running it from outlook express and recieving on Lotus notes. Everything works fine when sending emails with stuff in the body of the email.

Please can someone help this Delphi beginner.

Thanks
Reply With Quote
  #2  
Old 01-20-2001, 10:12 AM
deleteme deleteme is offline
Member
 
Join Date: Jan 2001
Posts: 33
Default RE: Attachments with TNMSMTP email component

Hi, maybe you should try this:

NMSMTP.MailMessage.Attachments.Add ()

as much times as you need attachements

greetz, ruben
Reply With Quote
  #3  
Old 01-20-2001, 04:10 PM
Wise Guy Wise Guy is offline
Member
 
Join Date: Jan 2001
Posts: 45
Default RE: Attachments with TNMSMTP email component

Hey!

I think you should check both things done before you send the mail:
1) to check if you supplied a valid path\filename for the Attachments property
2)The Attachments property specifies a list of files to attach to the outgoing E-Mail message. Note that you must have only one filename per line.

This may look something like:
S.PostMessage.Attachments.Add('c:\mytxt.txt');
//If you want to add another file use the same line but with //the new path\file.

If none of above helps why don't you try to change the way of ENCODING to UUEnCode (standart mail clients should support UUCode format).

Good Luck!
Reply With Quote
  #4  
Old 01-22-2001, 05:37 AM
MrBaseball34 MrBaseball34 is offline
Senior Member
 
Join Date: Jan 2001
Posts: 7,260
Default RE: Attachments with TNMSMTP email component

Being as you are a Delphi beginner, I'd like to mention that
the majority of Delphi programmers do not use the TNMxxx
components shipped with Delphi due to their bugginess.

I'd suggest downloading ICS (Internet Component Suite) or Indy (Winshoes) and using them as they come are free with
full source code. You can not say that about the FastNet
components.

http://www.torry.net/internetpacks.htm
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 05:50 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2018, vBulletin Solutions, Inc.