Php email attachment

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 resource

Warning: fclose (): the supplied argument is not a valid stream resource

Pls help

+3
source share
4 answers

Change this:

$fp = fopen($strresume, "rb"); 
$file = fread($fp, $strresume_size); 

:

$fp = fopen($filetemp, "rb"); 
$file = fread($fp, $strresume_size); 
+3
source

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/

+2
source

script - . $strresume, , . .. $strname, $strtype, $strsize, $strtemp.

+1
source

Source: https://habr.com/ru/post/1714169/


All Articles