Sending e-mail from FWPPC app

Post Reply
kadziola
Posts: 26
Joined: Tue May 11, 2010 7:26 am

Sending e-mail from FWPPC app

Post by kadziola »

Hi all,

Is any chance to send e-mail directly from FWPPC app ?
I'm trying with win_mapisendmail() but function return -1.

With mapisendmail() i get compilation errors :
FiveCEC.lib(MAPI.obj) : error LNK2019: unresolved external symbol GetProcAddress referenced in function HB_FUN_MAPILOGON
FiveCEC.lib(MAPI.obj) : error LNK2019: unresolved external symbol _bset referenced in function HB_FUN_MAPISENDMAIL
rzm.exe : fatal error LNK1120: 2 unresolved externals
* Linking errors *

Regards
Jaroslaw Kadziola
kadziola
Posts: 26
Joined: Tue May 11, 2010 7:26 am

Re: Sending e-mail from FWPPC app

Post by kadziola »

Hi,

My semi-solution for message with attach file '\My Documents\ll.txt' :

:For Windows Mobile 5 and 6

Code: Select all

link_file  = ' 150# "\Windows\tmail.exe" "-attach "\My Documents\ll.txt" -to "address@any.com" -subject "Subject" -body "Body text" -service "Account_name"" '
MemoWrit(CurDir() + '\zamawiam.lnk',link_file)
ShellExecute( , "open", CurDir() + "\zamawiam.lnk", NIL )
 
:For Windows Mobile 6.5

Code: Select all

link_file  = ' 19#:MSINBOX "-attach "\My Documents\ll.txt" -to "address@any.com" -subject "Subject" -body "Body text" -service "Account_name"" '
MemoWrit(CurDir() + '\zamawiam.lnk',link_file)
ShellExecute( , "open", CurDir() + "\zamawiam.lnk", NIL )
 
Regards
Jaroslaw Kadziola
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Sending e-mail from FWPPC app

Post by Antonio Linares »

Jaroslaw,

Many thanks for sharing your solution with us :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply