| |
153 |
153 |
-valid_email:boolean |
| |
154 |
154 |
{-to_party_ids ""} |
| |
155 |
155 |
{-cc_party_ids ""} |
| |
156 |
156 |
{-bcc_party_ids ""} |
| |
157 |
157 |
{-to_group_ids ""} |
| |
158 |
158 |
{-cc_group_ids ""} |
| |
159 |
159 |
{-bcc_group_ids ""} |
| |
160 |
160 |
{-to_addr ""} |
| |
161 |
161 |
{-cc_addr ""} |
| |
162 |
162 |
{-bcc_addr ""} |
| |
163 |
163 |
-from_addr:required |
| |
164 |
164 |
{-reply_to ""} |
| |
165 |
165 |
{-subject ""} |
| |
166 |
166 |
-body:required |
| |
167 |
167 |
{-package_id ""} |
| |
168 |
168 |
{-files ""} |
| |
169 |
169 |
{-file_ids ""} |
| |
170 |
170 |
{-folder_ids ""} |
| |
171 |
171 |
{-mime_type "text/plain"} |
| |
172 |
172 |
{-object_id ""} |
| |
173 |
|
{-single_email_p ""} |
| |
174 |
|
{-no_callback_p ""} |
| |
|
173 |
{-single_email_p "1"} |
| |
|
174 |
{-no_callback_p "0"} |
| |
175 |
175 |
{-extraheaders ""} |
| |
176 |
176 |
{-alternative_part_p ""} |
| |
177 |
177 |
{-use_sender_p "0"} |
| |
178 |
178 |
} { |
| |
179 |
179 |
|
| |
180 |
180 |
Prepare an email to be send immediately with the option to pass in a list |
| |
181 |
181 |
of file_ids as well as specify an html_body and a mime_type. It also supports multiple "TO" recipients as well as CC |
| |
182 |
182 |
and BCC recipients. Runs entirely off MIME and SMTP to achieve this. |
| |
183 |
183 |
For backward compatibility a switch "single_email_p" is added. |
| |
184 |
184 |
|
| |
185 |
185 |
|
| |
186 |
186 |
@param to_party_ids list of party ids to whom we send this email |
| |
187 |
187 |
|
| |
188 |
188 |
@param cc_party_ids list of party ids to whom we send this email in "CC" |
| |
189 |
189 |
|
| |
190 |
190 |
@param bcc_party_ids list of party ids to whom we send this email in "BCC" |
| |
191 |
191 |
|
| |
192 |
192 |
@param to_party_ids list of group_ids to whom we send this email |
| |
193 |
193 |
|
| |
194 |
194 |
@param cc_party_ids list of group_ids to whom we send this email in "CC" |
|
| |
206 |
206 |
@param body Text body of the email |
| |
207 |
207 |
|
| |
208 |
208 |
@param cc_addr List of CC Users e-mail addresses to send this mail to. We will figure out the name if possible. Only useful if single_email is provided. Otherwise the CC users will be send individual emails. |
| |
209 |
209 |
|
| |
210 |
210 |
@param bcc_addr List of CC Users e-mail addresses to send this mail to. We will figure out the name if possible. Only useful if single_email is provided. Otherwise the CC users will be send individual emails. |
| |
211 |
211 |
|
| |
212 |
212 |
@param package_id Package ID of the sending package |
| |
213 |
213 |
|
| |
214 |
214 |
@param files List of file_title, mime_type, file_path (as in full path to the file) combination of files to be attached |
| |
215 |
215 |
|
| |
216 |
216 |
@param folder_ids ID of the folder who's content will be send along with the e-mail. |
| |
217 |
217 |
|
| |
218 |
218 |
@param file_ids List of file ids (items or revisions) to be send as attachments. This will only work with files stored in the file system. |
| |
219 |
219 |
|
| |
220 |
220 |
@param mime_type MIME Type of the mail to send out. Can be "text/plain", "text/html". |
| |
221 |
221 |
|
| |
222 |
222 |
@param object_id The ID of the object that is responsible for sending the mail in the first place |
| |
223 |
223 |
|
| |
224 |
224 |
@param extraheaders List of keywords and their values passed in for headers. Interesting ones are: "Precedence: list" to disable autoreplies and mark this as a list message. This is as list of lists !! |
| |
225 |
225 |
|
| |
226 |
|
@param single_email Boolean that indicates that only one mail will be send (in contrast to one e-mail per recipient). |
| |
|
226 |
@param single_email_p Indicates that only one mail will be send (in contrast to one e-mail per recipient). Defaults to 1 |
| |
227 |
227 |
|
| |
228 |
|
@param no_callback Boolean that indicates if callback should be executed or not. If you don't provide it it will execute callbacks |
| |
229 |
|
@param single_email_p Boolean that indicates that only one mail will be send (in contrast to one e-mail per recipient). Used so we can set a variable in the callers environment to call complex_send. |
| |
|
228 |
@param no_callback_p Indicates if callback should be executed or not. If you don't provide it it will execute callbacks. |
| |
230 |
229 |
|
| |
231 |
|
@param no_callback_p Boolean that indicates if callback should be executed or not. If you don't provide it it will execute callbacks. Used so we can set a variable in the callers environment to call complex_send. |
| |
|
230 |
@param use_sender_p Boolean indicating that from_addr should be used regardless of fixed-sender parameter |
| |
232 |
231 |
|
| |
233 |
|
@param use_sender Boolean indicating that from_addr should be used regardless of fixed-sender parameter |
| |
234 |
|
|
| |
235 |
232 |
@param alternative_part_p Boolean whether or not the code generates a multipart/alternative mail (text/html) |
| |
236 |
233 |
} { |
| |
237 |
234 |
|
| |
238 |
235 |
set mail_package_id [apm_package_id_from_key "acs-mail-lite"] |
| |
239 |
236 |
if {$package_id eq ""} { |
| |
240 |
237 |
set package_id $mail_package_id |
| |
241 |
238 |
} |
| |
242 |
239 |
|
| |
243 |
240 |
# We check if the parameter |
| |
244 |
241 |
set fixed_sender [parameter::get -parameter "FixedSenderEmail" \ |
| |
245 |
242 |
-package_id $mail_package_id] |
| |
246 |
243 |
|
| |
247 |
244 |
|
| |
248 |
245 |
if { $fixed_sender ne "" && !$use_sender_p} { |
| |
249 |
246 |
set sender_addr $fixed_sender |
| |
250 |
247 |
} else { |
| |
251 |
248 |
set sender_addr $from_addr |
| |
252 |
249 |
} |
| |
253 |
250 |
|
| |
254 |
251 |
# default values for alternative_part_p |