Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Attachment Sometimes go some dont Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Clages
Newbie
Newbie


Joined: 02 December 2010
Online Status: Offline
Posts: 2
Posted: 02 December 2010 at 3:47am | IP Logged Quote Clages

Hi, i am using mailbee.ocx (smtp) in netcobol (www.netcobol.com)
works fine,
but i dont know the reason, in the listview there 20 emails to send
(all of them with xml file attachment )
some of then the attachment dont go , some the attachment go not as file
but in the BodyText (since de attacment is a TXT file(XML)

any help will be apreciated
Tks
Clages

Follow in netcobol source what i am doing


*****   Variaveis somente para ser usada para email
01 objSMTP          ;      OBJECT REFERENCE OLE.
01 APPLICATION        & nbsp;  PIC X(256) Value "MailBee.SMTP".
01 VAL         &nb sp;         PIC X(256).
01 ws-ErrCode        &n bsp;   PIC S9(9) value zeros.
01 ws-ErrDesc        &n bsp;   PIC X(256).
01 ws-To         & nbsp;       pic x(256) Value spaces.
01 ws-Id         & nbsp;       pic x(044) Value spaces.
01 ws-Anexo        &nbs p;     pic x(256) Value spaces.
01 ws-Log                pic x(256) Value spaces.


PROCEDURE     DiviSION.

* Create Objetc SfaEmail
begin.
     INVOKE OLE "CREATE-OBJECT" USING APPLICATION RETURNING objSMTP.


* demo License Key
     MOVE "MBC540-4747B75737-0F4284BE8030EDA2B7A6A39B6F9D7959" &n bsp; TO VAL.
     INVOKE objSMTP "SET-LicenseKey"       &n bsp;         &n bsp;        USING VAL.

* Server name   
     MOVE Pow-Text of wServer          ;           ;           ;       TO VAL.
     INVOKE objSMTP "SET-ServerName"       &n bsp;         &n bsp;        USING VAL.

* Login autentication
     MOVE Pow-Text of WAutenticacao         ;           ;       TO VAL.
     INVOKE objSMTP "SET-AuthMethod"       &n bsp;         &n bsp;       USING VAL.

* Set authentication credentials
     MOVE Pow-Text of wUserName        &nb sp;         &nb sp;         &nb sp;    TO VAL.
     INVOKE objSMTP "SET-UserName"       &nbs p;         &nbs p;         USIN G VAL.
     
     MOVE Pow-Text of wSenha                                       TO VAL.
     INVOKE objSMTP "SET-Password"       &nbs p;         &nbs p;         &nbs p;USING VAL.     

* Set message properties
     MOVE Pow-Text of wFrom         & nbsp;         & nbsp;         & nbsp;      TO VAL.
     INVOKE objSMTP "SET-FromAddr"       &nbs p;         &nbs p;        USING VAL.     

     MOVE Pow-Text of wTo         &nb sp;         &nb sp;         &nb sp;        TO VAL.
     INVOKE objSMTP "SET-ToAddr"                               USING VAL.     
     
     MOVE Pow-Text of WSubJect        &nbs p;         &nbs p;         &nbs p;    TO VAL.
     INVOKE objSMTP "SET-Subject"         ;           ;         USING VAL.         &n bsp;

     
     MOVE Pow-Text of wTexto                                      TO VAL.
     INVOKE objSMTP "SET-BodyText"       &nbs p;         &nbs p;        USING VAL.         &n bsp;    

* Set Port   
     MOVE Pow-Text of wPorta                                   TO VAL.
     INVOKE objSMTP "SET-PortNumber"       &n bsp;         &n bsp;      USING VAL.     
     

* Set Attachment

      Move Pow-Text of wanexo                                  to VAL
      INVOKE objSMTP "AddAttachment"       &nb sp;         &nb sp;    USING VAL         &nb sp;
               
    

* Try to send message
     INVOKE objSMTP "Send" RETURNING ws-ErrDesc.
     
* get Error
     INVOKE objSMTP "GET-ErrDesc"         ;   RETURNING     &n bsp;    ws-ErrDesc.   &nb sp;      
     If ws-ErrDesc not = spaces
        move ws-ErrDesc to pow-text of wErro
     else
        move "Email enviado com sucesso" to pow-text of wErro
     End-if.   

     Exit Program.

                             
Back to Top View Clages's Profile Search for other posts by Clages
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5595
Posted: 03 December 2010 at 3:36am | IP Logged Quote Igor

I don't think I understand the problem. First of all, were all the messages sent out successfully, or some of them refused to be sent out? Any error messages in SMTP log file? Furthermore, how exactly did you find out that the XML content became a part of a bodytext? Did you parse those messages with MailBee or just saw how it was displayed in some email client? The latter doesn't really prove anything, so I suggest to load that message from recipient's mailbox and check the BodyText.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Clages
Newbie
Newbie


Joined: 02 December 2010
Online Status: Offline
Posts: 2
Posted: 03 December 2010 at 5:21am | IP Logged Quote Clages

ok, lets go

how exactly did you find out that the XML content became a part of a bodytext?
Because i sent email to my self (my own email)
some of them , the attacment is in the body.
some dont

Did you parse those messages with MailBee or just saw how it was displayed in some email client?
answer : I saw how it was displayed in some email client..

tks
again
Carlos Lages
Dec
Back to Top View Clages's Profile Search for other posts by Clages
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5595
Posted: 03 December 2010 at 5:32am | IP Logged Quote Igor

If you'd like us to help you with that, please provide us with the XML file which wasn't shown as an attachment, and the resulting EML you received to your inbox. Also, please supply the version number of the DLL you are using, and let us know the name and version of email client you used to view the message.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
alyssa89
Newbie
Newbie


Joined: 04 November 2011
Location: United States
Online Status: Offline
Posts: 1
Posted: 04 November 2011 at 5:42am | IP Logged Quote alyssa89

Even i came across this problem, thank you support member for resolving this.
Back to Top View alyssa89's Profile Search for other posts by alyssa89 Visit alyssa89's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide