General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 28th, 2003, 12:31 PM
KeithMcL KeithMcL is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Dublin, Ireland
Posts: 5 KeithMcL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Article Submission Script

Hi,

I'd like to have a form on my site where people can submit articles. However, i'd prefer that they get sent to me as an email attachment. It this possible from the form?

Does the one you guys use here simply upload the file to a directory on your server or does it email it to an address?

If it's the latter of the two, can you tell me how you did it or point me to a tutorial on how to do it?

Hope someone can help me out

Reply With Quote
  #2  
Old January 28th, 2003, 02:52 PM
ramz ramz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Juiz de Fora - MG- Brazil
Posts: 93 ramz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to ramz Send a message via MSN to ramz
Try this:

$headers = "MIME-Version 1.0\r\n";
$headers .= "Content-type: your_mime_type\r\n";
$headers .= "Content-Disposition: attachment; filename=myFile.txt\r\n";
$headers .= "From: mymail@myserver.com\r\n";

mail($to, $subject, $message, $headers);
__________________
Regards,
Ramiro Varandas Jr.

Reply With Quote
  #3  
Old January 29th, 2003, 01:10 PM
KeithMcL KeithMcL is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Dublin, Ireland
Posts: 5 KeithMcL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks ramz, i'll give it a try.

Reply With Quote
  #4  
Old June 13th, 2003, 02:39 AM
klausre klausre is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Norway
Posts: 14 klausre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Does anyone have I script like this, that upload articles-/zip-files to may email?

I have tryed to make one, but it does not work.

Reply With Quote
  #5  
Old June 13th, 2003, 05:39 AM
KeithMcL KeithMcL is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Dublin, Ireland
Posts: 5 KeithMcL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Klaus,

Just to let you know, I never found one. I ended up giving up on the idea.

If do you eventually find one can you post it here so others can benefit from it (myself included).

Thanks,

Reply With Quote
  #6  
Old June 13th, 2003, 09:52 AM
ramz ramz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Juiz de Fora - MG- Brazil
Posts: 93 ramz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to ramz Send a message via MSN to ramz
Script...

Hi!

What kind of script is this that you're both talking about?
Is it a forum?! Tell me more about this idea that you're looking for and haven't found and if I can I'll do it for both of you.

Reply With Quote
  #7  
Old June 13th, 2003, 02:41 PM
klausre klausre is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Norway
Posts: 14 klausre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re: Script...

Quote:
Originally posted by ramz
Hi!

What kind of script is this that you're both talking about?
Is it a forum?! Tell me more about this idea that you're looking for and haven't found and if I can I'll do it for both of you.
I'd like to have a form on my site where people can submit articles, like this: http://www.devarticles.com/submitarticle.php
The files should be sent whit email to me.

Reply With Quote
  #8  
Old June 13th, 2003, 05:32 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Have you checked out the PHP manual? I did a text search for "attachment" on the mail() function page, and there was quite a bit of dicussion including how to add attachments... You may want to check it out
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Article Submission Script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT