943,865 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 4241
  • PHP RSS
You are currently viewing page 5 of this multi-page discussion thread; Jump to the first page
Apr 13th, 2008
0

Re: Serious problem with attchments-please help

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 ?
Reputation Points: 10
Solved Threads: 0
Light Poster
Vity is offline Offline
26 posts
since Mar 2008
Apr 14th, 2008
0

Re: Serious problem with attchments-please help

PHP Syntax (Toggle Plain Text)
  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, 5 views)
Reputation Points: 9
Solved Threads: 4
Junior Poster
queenc is offline Offline
145 posts
since Mar 2008
Apr 14th, 2008
0

Re: Serious problem with attchments-please help

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
Reputation Points: 10
Solved Threads: 0
Light Poster
Vity is offline Offline
26 posts
since Mar 2008
Apr 22nd, 2008
0

Re: Serious problem with attchments-please help

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
Reputation Points: 10
Solved Threads: 0
Light Poster
Vity is offline Offline
26 posts
since Mar 2008
Jun 1st, 2008
0

Re: Serious problem with attchments-please help

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...
Attached Files
File Type: zip mail attachment.zip (3.4 KB, 3 views)
Last edited by tanha; Jun 1st, 2008 at 8:53 am.
Reputation Points: 8
Solved Threads: 1
Posting Whiz in Training
tanha is offline Offline
217 posts
since Aug 2007
Jun 1st, 2008
0

Re: Serious problem with attchments-please help

Click to Expand / Collapse  Quote originally posted by queenc ...
PHP Syntax (Toggle Plain Text)
  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
Click image for larger version

Name:	mail.JPG
Views:	2
Size:	24.3 KB
ID:	6208  
Attached Files
File Type: zip attachment2.zip (18.8 KB, 4 views)
Reputation Points: 8
Solved Threads: 1
Posting Whiz in Training
tanha is offline Offline
217 posts
since Aug 2007
Jun 1st, 2008
0

Re: Serious problem with attchments-please help

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
Reputation Points: 15
Solved Threads: 19
Junior Poster
Suomedia is offline Offline
154 posts
since Mar 2008
Jun 1st, 2008
0

Re: Serious problem with attchments-please help

Thanks for replying,
I changes it to lower case, and again the same problem, mentioned in above.
could u plz test it once ???
Thanks
Reputation Points: 8
Solved Threads: 1
Posting Whiz in Training
tanha is offline Offline
217 posts
since Aug 2007
Jun 4th, 2008
0

Re: Serious problem with attchments-please help

Is there an alternative php script that i can use to send files with using form ...... Somebody can you please help me !?
Reputation Points: 10
Solved Threads: 0
Light Poster
Vity is offline Offline
26 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Problem with page navigation
Next Thread in PHP Forum Timeline: Form not sending info...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC