how to attach a file in a Email

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
rmurali
Forum Newbie
Posts: 2
Joined: Tue Jan 05, 2010 4:10 am

how to attach a file in a Email

Post by rmurali »

Hi there,
I have a site has two folder httpdocs and httpsdocs. All secured contents are in httpsdocs folder. I am trying to send am email from the secured content and want to attach a file from the non secured folder(httpdocs). For some reason I can not even check the file existance on the other.

Here are the full paths for secrued and non secured folders
/var/www/vhosts/gsmiweb.com/subdomains/events/httpdocs
/var/www/vhosts/gsmiweb.com/subdomains/events/httpsdocs

Any help appriciated.

Thanks
-Murali
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: how to attach a file in a Email

Post by Christopher »

It sounds like it might be a permissions problem. What is the code that is trying to open/read the file?
(#10850)
rmurali
Forum Newbie
Posts: 2
Joined: Tue Jan 05, 2010 4:10 am

Re: how to attach a file in a Email

Post by rmurali »

Trying to attach the file part of the email.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: how to attach a file in a Email

Post by AbraCadaver »

You need to have error reporting on and it will tell you what the error is (permission denied, file not found, etc...)
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: how to attach a file in a Email

Post by Christopher »

rmurali wrote:Trying to attach the file part of the email.
I meant -- show us the code.
(#10850)
Post Reply