I use this script to attach email, but when I run the form on my server, it shows a warning
Warning: fread (): the provided argument is not a valid thread resourceWarning: fclose (): the supplied argument is not a valid stream resource
Warning: fread (): the provided argument is not a valid thread resource
Warning: fclose (): the supplied argument is not a valid stream resource
Pls help
Change this:
$fp = fopen($strresume, "rb"); $file = fread($fp, $strresume_size);
:
$fp = fopen($filetemp, "rb"); $file = fread($fp, $strresume_size);
I use this function to send HTML email with an application:
http://www.barattalo.it/2010/01/10/sending-emails-with-attachment-and-html-with-php/
script - . $strresume, , . .. $strname, $strtype, $strsize, $strtemp.
$strresume
$strname
$strtype
$strsize
$strtemp
I used the phpmailer class . It is very simple.
procedure- http://www.phpexpertsforum.com/how-to-add-doc-file-as-attachment-to-sending-mail-from-php-t649.html
Source: https://habr.com/ru/post/1714169/More articles:TargetParameterCountException in Moq-based Unit Test - c #Portable thread safety in C? - cКак я могу получить все KeyValuePairs, содержащиеся в Dictonary? - genericshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1714167/what-portability-issues-are-associated-with-byte-level-access-to-pointers-in-c&usg=ALkJrhiuOm6AkEbbUG7cPB8hnrECf_BuogHow to write a method that can output data from any class using generics? - genericsMinor C ++ optimization behaves strangely - c ++Can a C ++ dll compiled using Visual Studio 2008 be used with Visual Studio 2005? - c ++Error converting XML from CLOB column to XMLType column - xmlWhat should I know about development for 64-bit applications? - c #Build Managment: проект Eclipse и проект Eclipse Managed Make - c++All Articles