HB_SendMail problem

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Georg_BA
Posts: 106
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

HB_SendMail problem

Post by Georg_BA »

Good day
I have a problem with hb_SendMail when I submit an attachment
type CSV, TXT will deliver it with the text added at the end.
Have you met with that?

sample:

Send file contains:

<Cell><Data ss:Type="String">8588005718486</Data></Cell>
<Cell><Data ss:Type="String">9</Data></Cell>
<Cell><Data ss:Type="String">1.0833</Data></Cell>
</Row>
</Table>
</Worksheet>\rn</Workbook>

Receive file containing

<Cell><Data ss:Type="String">8588005718486</Data></Cell>
<Cell><Data ss:Type="String">9</Data></Cell>
<Cell><Data ss:Type="String">1.0833</Data></Cell>
</Row>
</Table>
</Worksheet>\rn</Workbook>--=_0YESNDOCYRVCMJMPWB_TIP_20181211_121813--

Thanks for help
User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HB_SendMail problem

Post by serge_girard »

George

Please send us also the HB_SENDMAIL command you use and how it is filled up.

Serge
There's nothing you can do that can't be done...
Georg_BA
Posts: 106
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Re: HB_SendMail problem

Post by Georg_BA »

Serge
Thanks for help
I use HMG344,
ssleay32.dll 28.04.2016 size 368460
libeay32.dll 28.04.2016 size 1707520

nSMTPPort=25

ok_mail= hb_SendMail(cSMTPServer, nSMTPPort, cFromX,cTo,NIL /* CC */,{} /* BCC */,cBody,cSubject+' '+cnobj,{cCSVFile},cSMTPUser,cSMTPPassword, "", NIL /* nPriority */, NIL /* lRead */, .F. /* lTrace */, .F., lNoAuth /* lNoAuth */, nTimeOut /* nTimeOut */, NIL /* cReplyTo */, iif(nSMTPPort=465,.T.,.F.) /* lSSL */ )
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: HB_SendMail problem

Post by mustafa »

Hola mira el código fuente de esta
aplicación sobre el envio de e-mails
Mira --> Apoyo_2.prg
haber si te puede servir ?
saludos
Mustafa

http://hmgforum.com/viewtopic.php?f=9&t ... hot#p47421

ATTACHMENTS
Screenshot_Captura_Pantalla_New_9-Mail_Counter_Print.zip


*------------------------------------------------------------------------*
Hi, look at the source code of this
application about sending e-mails
View --> Apoyo_2.prg
Have I can serve you?
regards
Georg_BA
Posts: 106
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Re: HB_SendMail problem

Post by Georg_BA »

I greet the mustafa
Thanks for help
I regularly follow your contributions and are very inspiring
I try CDO, hb_sendmail seemed easier to me

I have already started the problem with the external program https://www.tbare.com/software/swithmail/ that I used with a clipper

I was wondering if someone had met with anyone, or to find out what was causing it

with greetings Georg
User avatar
susviela
Posts: 24
Joined: Wed Oct 17, 2018 4:44 am
DBs Used: DBF, PostgreSql, SQLite
Contact:

Re: HB_SendMail problem

Post by susviela »

Starting ... testing send emails

HMG 3.4.4

Code: Select all

#include <hmg.ch>
#require "hbssl"
#require "hbtip"

Function Main
        Load Window Main
        Main.Center
        Main.Activate
Return

Function clic_button_enviar()

    IF ! tip_SSL()
      MsgInfo( "Error: Requires SSL support" ) 
      RETURN Nil
   ENDIF
   

	msginfo("OK !") 

Return Nil
Never OK ???
Georg_BA
Posts: 106
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Re: HB_SendMail problem

Post by Georg_BA »

Hello Susviela

with the test and sending the message is no problem

The problem is adding some seqence to the file at the end
this will cause a data import error
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: HB_SendMail problem

Post by mustafa »

Hi Georg_BA
View --> http://hmgforum.com/viewtopic.php?f=24&t=3473
by danielmaximiliano
regards
Mustafa
User avatar
susviela
Posts: 24
Joined: Wed Oct 17, 2018 4:44 am
DBs Used: DBF, PostgreSql, SQLite
Contact:

Re: HB_SendMail problem

Post by susviela »

Georg_BA wrote: Fri Dec 14, 2018 4:08 pm Hello Susviela

with the test and sending the message is no problem

The problem is adding some seqence to the file at the end
this will cause a data import error
Seguindo .... http://www.hmgforum.com/viewtopic.php?t=5033

include in IDE/config

inc=yes
head=native
libs=hbtip
libs=hbssl
libs=libeay32
libs=ssleay32


NOT SUCESS !!!
User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HB_SendMail problem

Post by serge_girard »

So the problem is your file and not hb_sendmail !
Is the file you send created by the program or is it an existing file?


Serge
There's nothing you can do that can't be done...
Post Reply