send mail

Post Reply
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

send mail

Post 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)
 
Kind regards,

René Koot
User avatar
mastintin
Posts: 1502
Joined: Thu May 27, 2010 2:06 pm

Re: send mail

Post 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.
User avatar
mastintin
Posts: 1502
Joined: Thu May 27, 2010 2:06 pm

Re: send mail

Post 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.
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: send mail

Post 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.
Kind regards,

René Koot
Post Reply