Update v_mailto.php
For the include for email transcription change the file name from email_translation.php to email_transcription.php.
This commit is contained in:
parent
1834be5042
commit
bbe1705019
|
|
@ -79,9 +79,8 @@
|
||||||
//includes
|
//includes
|
||||||
require('resources/pop3/mime_parser.php');
|
require('resources/pop3/mime_parser.php');
|
||||||
require('resources/pop3/rfc822_addresses.php');
|
require('resources/pop3/rfc822_addresses.php');
|
||||||
|
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/emails/email_transcription.php")) {
|
||||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/emails/email_translation.php")) {
|
require_once($_SERVER["PROJECT_ROOT"]."/app/emails/email_transcription.php");
|
||||||
require_once($_SERVER["PROJECT_ROOT"]."/app/emails/email_translation.php");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//parse the email message
|
//parse the email message
|
||||||
|
|
@ -287,8 +286,8 @@
|
||||||
//add an attachment
|
//add an attachment
|
||||||
$mail->AddStringAttachment($parts_array["Body"],$file,$encoding,$mime_type);
|
$mail->AddStringAttachment($parts_array["Body"],$file,$encoding,$mime_type);
|
||||||
if (function_exists(get_transcription)) {
|
if (function_exists(get_transcription)) {
|
||||||
$attachments_array=$mail->GetAttachments();
|
$attachments_array = $mail->GetAttachments();
|
||||||
$transcription=get_transcription($attachments_array[0]);
|
$transcription = get_transcription($attachments_array[0]);
|
||||||
echo "Transcription: " . $transcription;
|
echo "Transcription: " . $transcription;
|
||||||
} else {
|
} else {
|
||||||
$transcription = '';
|
$transcription = '';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue