Page 1 of 1

send mail

Posted: Fri May 25, 2018 4:48 pm
by plantenkennis
Hello,
I wanted to test the mail example, but that gave some errors. Can you please revice this

Code: Select all

Undefined symbols for architecture x86_64:
  "_HB_FUN_MAILADDATTACH", referenced from:
      _symbols_table in libfive.a(mail.o)
  "_HB_FUN_MAILCREATE", referenced from:
      _symbols_table in libfive.a(mail.o)
  "_HB_FUN_MAILSEND", referenced from:
      _symbols_table in libfive.a(mail.o)
  "_HB_FUN_MAILSETFROM", referenced from:
      _symbols_table in libfive.a(mail.o)
  "_HB_FUN_MAILSETMSG", referenced from:
      _symbols_table in libfive.a(mail.o)
  "_HB_FUN_MAILSETSUBJECT", referenced from:
      _symbols_table in libfive.a(mail.o)
  "_HB_FUN_MAILSETTO", referenced from:
      _symbols_table in libfive.a(mail.o)
 

Re: send mail

Posted: Tue May 29, 2018 9:49 pm
by mastintin
missing by linking mailer.m in the makefile.
added , mailer.m throws deprecated errors. we will have to review the module.
made test as it is sent the mail but not the attached file.
Saludos.

Re: send mail

Posted: Sun Jun 03, 2018 1:50 pm
by mastintin
I have reviewed the matter...I will try to explain the situation
Apple in an attempt to improve security to made sandbox in their applications.
One application can not automatically send messages with attachments without the supervision of a user,for security reasons.
Before this we have 2 options :
1.-Put code to send messages automatically but without attachments.
2.- Put code that compose the message and attach the files, open the Composer Mail window to wait for the user to press the send button.


I think the best option is the second but I guess it will depend on the needs of each one.
I'll be waiting for your answers.

Saludos.

Re: send mail

Posted: Tue Jun 05, 2018 9:41 pm
by plantenkennis
Hello Mastintin,
Thanks for reviewing. For my app, I think I need the second option, but will this work with every mail program a user has. I use Thunderbird for all my mail and not the mail program delivered by Apple.

If this is possible, it would be very handsome.