Serious problem with attchments-please help

Reply

Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

 
0
  #41
Apr 13th, 2008
Hi suomedia

I used the script that you said i should place on the path so the files are sent to server but it gives a error saying unexpected T_CONSTANT_ENCAPSED_STRING IN the php file...... What could be the problem now ?
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 145
Reputation: queenc is an unknown quantity at this point 
Solved Threads: 4
queenc's Avatar
queenc queenc is offline Offline
Junior Poster

Re: Serious problem with attchments-please help

 
0
  #42
Apr 14th, 2008
  1. <?
  2. include "mail_attachment.php";
  3. ?>
  4. $sent1 = mail_attachment("cgbasket@website.com",$too, $subject1, $body1, $attachment);

u have to include the above code in the file,juct upload the mail_attachment.
u path name should always be as /home/wesite/......start with home then the location of the file
Attached Files
File Type: php mail_attachment.php (2.1 KB, 3 views)
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

 
0
  #43
Apr 14th, 2008
Queenc..... Could you please insert examples on the script to show it should look when its completed because i'm not sure what to place where.... Like the uploaders form name i don't know where it goes, the path should it be to the server and so on...... I would be truly greatful if you could place examples on it
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

 
0
  #44
Apr 22nd, 2008
Hi there suomedia

I have been using your attachment script you gave but i have not been successful to this point. I have tried changing the path in ways including using the example you gave me but still no success....... Please help
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 199
Reputation: tanha is an unknown quantity at this point 
Solved Threads: 0
tanha tanha is offline Offline
Junior Poster

Re: Serious problem with attchments-please help

 
0
  #45
Jun 1st, 2008
Mr. suomedia,
I am using windows with WAMP with includes the follwing:
1. PHP 5 ...
2. MySQL ...
3. Apache2 ...

I myself interested in this issue, so I decided to know this problem too, so I did everything what you mentioned in the previous posts, and I don't see any error too. BUT the page 'SignUpFailure.html' contents.

I shall be glad if you shall have a view of the attachment ...

NOTE:
Should be mention, that I am using everything locally on my own computer, it means that I configured a 'mail server', and I can send and receive emails through PHP mail function...
Last edited by tanha; Jun 1st, 2008 at 8:53 am.
Attached Files
File Type: zip mail attachment.zip (3.4 KB, 2 views)
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 199
Reputation: tanha is an unknown quantity at this point 
Solved Threads: 0
tanha tanha is offline Offline
Junior Poster

Re: Serious problem with attchments-please help

 
0
  #46
Jun 1st, 2008
Originally Posted by queenc View Post
  1. <?
  2. include "mail_attachment.php";
  3. ?>
  4. $sent1 = mail_attachment("cgbasket@website.com",$too, $subject1, $body1, $attachment);

u have to include the above code in the file,juct upload the mail_attachment.
u path name should always be as /home/wesite/......start with home then the location of the file

Mr. queenc queenc,
I am using Windows with WAMP server ..., and I used the code you posted, I can receive the mail, also I have the attachment in my mail box, but I can not open it.
Also I see the Sorry ... PROMPT after sending the mail ...

Could you please see what is wrong ???
Attached Thumbnails
mail.JPG  
Attached Files
File Type: zip attachment2.zip (18.8 KB, 1 views)
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 154
Reputation: Suomedia is an unknown quantity at this point 
Solved Threads: 19
Suomedia Suomedia is offline Offline
Junior Poster

Re: Serious problem with attchments-please help

 
0
  #47
Jun 1st, 2008
I think the only problem that you have is that you have not respected the case sensitivity of variables, eg, in your form you have the file field named as "Picture" whereas in the processing script it is "picture", eg. $_FILES['picture']['tmp_name']

The two are NOT the same and for this reason it will never work as it is.


Matti Ressler
Suomedia
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 199
Reputation: tanha is an unknown quantity at this point 
Solved Threads: 0
tanha tanha is offline Offline
Junior Poster

Re: Serious problem with attchments-please help

 
0
  #48
Jun 1st, 2008
Thanks for replying,
I changes it to lower case, and again the same problem, mentioned in above.
could u plz test it once ???
Thanks
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

 
0
  #49
Jun 4th, 2008
Is there an alternative php script that i can use to send files with using form ...... Somebody can you please help me !?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC