Hi friends,
now i am doing mail sending with attachment.i got
code for mail send with attachment but when i a integrate this with my
module i got some problem.here the following file is separate code for
sending mail with attachment,
http://pastie.org/1536601
the above code works.Now My module containing two files,
//mailj.php
http://pastie.org/1536609
//send.php
http://pastie.org/1536622
But mail not sent.there are two warning coming ,
Warning: key() [function.key]: Passed variable is not an array or
object in /home/lumiinc1/public_html/group/sent1.php on line 23
Warning: file_get_contents() [function.file-get-contents]: Filename
cannot be empty in /home/lumiinc1/public_html/group/sent1.php on line
30
i want to sent mail with attachment.please help me.please
File attachement
Moderator: General Moderators
Re: File attachement
Your first warning means your SQL query returning no results here:
Second is I've never seen anyone use a form $_GET action to upload a file -- I'm not sure if it's even possible to upload a file that way. I bet the data is being truncated somewhere along the way. Change you form to use a method of POST then change your $_GET variables to $_POST.
Code: Select all
$sql = "select field_email1_email from content_type_job where nid = $v";
$r = mysql_query($sql) or die("Error in query execution");
$t =mysql_fetch_assoc($r);