Page 1 of 1

how to attach a file in a Email

Posted: Tue Jan 05, 2010 4:20 am
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

Re: how to attach a file in a Email

Posted: Tue Jan 05, 2010 12:13 pm
by Christopher
It sounds like it might be a permissions problem. What is the code that is trying to open/read the file?

Re: how to attach a file in a Email

Posted: Tue Jan 05, 2010 12:20 pm
by rmurali
Trying to attach the file part of the email.

Re: how to attach a file in a Email

Posted: Tue Jan 05, 2010 12:26 pm
by AbraCadaver
You need to have error reporting on and it will tell you what the error is (permission denied, file not found, etc...)

Re: how to attach a file in a Email

Posted: Tue Jan 05, 2010 6:56 pm
by Christopher
rmurali wrote:Trying to attach the file part of the email.
I meant -- show us the code.