Changeset 862 in ExiteCMS for modules/common/mail2forum/php-files/modules/mail2forum/m2f_smtp.php
- Timestamp:
- 10/02/07 22:27:18 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/mail2forum/php-files/modules/mail2forum/m2f_smtp.php
r844 r862 388 388 break; 389 389 case 1: 390 // attach the attachments to the email 391 $mail->AddAttachment(PATH_ATTACHMENTS.$attachment['attach_name']); 392 break; 390 // check the size of the attachments, don't send it out if it's to big 391 if (filesize(PATH_ATTACHMENTS.$attachment['attach_name']) < M2F_MAX_ATTACH_SIZE) { 392 // attach the attachments to the email 393 $mail->AddAttachment(PATH_ATTACHMENTS.$attachment['attach_name']); 394 break; 395 } 393 396 case 2: 394 397 // add a link pointing to the attachment … … 405 408 break; 406 409 case 1: 407 // attach the attachments to the email 408 $mail->AddAttachment(PATH_ATTACHMENTS.$attachment['attach_name']); 409 break; 410 // check the size of the attachments, don't send it out if it's to big 411 if (filesize(PATH_ATTACHMENTS.$attachment['attach_name']) < M2F_MAX_ATTACH_SIZE) { 412 // attach the attachments to the email 413 $mail->AddAttachment(PATH_ATTACHMENTS.$attachment['attach_name']); 414 break; 415 } 410 416 case 2: 411 417 // add a link pointing to the attachment
Note: See TracChangeset
for help on using the changeset viewer.
