The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Email to post
Hello,
I would love to have someone be able to send an email to an address that I assign. When the email is received, a post is created in a thread I designate. Is that possible? |
#2
|
|||
|
|||
Yes it is.
PHP with pop3/imap client for the e-mail account + vB cron job + datamanager. --------------- Added [DATE]1431204794[/DATE] at [TIME]1431204794[/TIME] --------------- Setup email account. Set user/forum/thread ids. Later put the code into some file - lets call it 'email2post.php', upload to the main vB directory. When all will be done, send a test email to your mailbox and run the script from a browser. I tested it under vB 4.2.2. Treat this script as example, fix it as you need. Do not use it in public, PHP Code:
|
Благодарность от: | ||
RichieBoy67 |
#3
|
||||
|
||||
Awesome, sorry I'm so late on this but Thank you very much.
I will try this as soon as I can |
#4
|
||||
|
||||
Sorry to bother you but.
I finally had a chance to test this. When I run the file manually the data shows up in the web browser and the email deletes from the server as expected but the data does not get posted to the forum/thread as hoped. I put in the userid, the threadid and the forumid it just does not post. No errors BTW Any ideas? |
#5
|
|||
|
|||
|
#6
|
||||
|
||||
Yes, I got a post ID
This is the output when running the php file 1. Test1 Test2 Test3 post id: 3420 But it is not appearing in the forum --------------- Added [DATE]1431888963[/DATE] at [TIME]1431888963[/TIME] --------------- Interestingly I thought it would show the subject title as well as Body but I can work with this. Thank you very much |
#7
|
|||
|
|||
Hmm.
Weird. You got post ID so... whole vB mechanism is working. I did couple tests on vB 4.2.2 and it worked like a charm. Please check your IDs twice. I will think about it. |
#8
|
||||
|
||||
Quote:
It's working perfectly You rock thank you very much |
#9
|
|||
|
|||
Hehe. Enjoy!
Here is the version with mail subject to post title. No subject, no title. Should work for iso-8859-1 etc. For UTF-8 you will have to make some tweaks. PHP Code:
|
#10
|
||||
|
||||
Sweet, thanks again and thanks for the updated code. Awesome!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|