The test.ini file has been updated to include examples of multiple
recipients for both to and cc fields.
Adjusted the smtp_t structure in include/config.h to accommodate
arrays for to and cc, allowing up to 10 recipients initially for
each field.
Introduced utility functions remove_spaces and split_str in
src/config.c to parse the comma-separated email addresses from the
configuration file and prepare them for use in the SMTP
settings.
Replacing the previous single-string assignment with a more robust
handling suitable for multiple recipients.
Modifying the EmailInfo struct to support an array of strings for
both to and cc fields, including the length of these arrays.
Updating the example usage documentation within email-bindings.h
to reflect the ability to specify multiple to and cc recipients.
Simplifying the email sending function send_email in lib.rs by
updating the handling of CC recipients to iterate over an array of
strings.
Changelog:
test.ini
file has been updated to include examples of multiple recipients for bothto
andcc
fields.smtp_t
structure ininclude/config.h
to accommodate arrays forto
andcc
, allowing up to 10 recipients initially for each field.remove_spaces
andsplit_str
insrc/config.c
to parse the comma-separated email addresses from the configuration file and prepare them for use in the SMTP settings.EmailInfo
struct to support an array of strings for bothto
andcc
fields, including the length of these arrays.email-bindings.h
to reflect the ability to specify multipleto
andcc
recipients.send_email
inlib.rs
by updating the handling of CC recipients to iterate over an array of strings.