Moblog Post Successful But Missing Data
Posted: 09 September 2008 01:43 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  144
Joined  11-30-2004

I’ve got a moblog setup to receive an email with data for custom fields which is generated by a web form. Here’s the data generated:

<category>$FTGcategory</category>
<
entry_title>$FTGtitle</entry_title>
<
field:group-leader>$FTGleader</field:group-leader>
<
field:group-coleader>$FTGcoleader</field:group-coleader>
<
field:group-time>$FTGdayandtime</field:group-time>
<
field:group-start>$FTGstartdate</field:group-start>
<
field:group-location>$FTGlocation</field:group-location>
<
field:group-description>$FTGdescription</field:group-description>
<
field:group-email>$FTGemail</field:group-email>
<
field:group-phone>$FTGphone</field:group-phone>

The “$FTG” variables are substituted by user data. (This is a script generated by FormsToGo.)

This model/process has worked flawlessly for about two years, but recently started failing by losing data submitted for custom fields. The only custom field data that is processed is the $FTGdescription field, which is a test area type (as opposed to a text field).

Ideas? Suggestions?

Profile
 
 
Posted: 09 September 2008 02:01 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  144
Joined  11-30-2004

I’ve figured out the reason for this failure—I had switched the fields’ type to Input. The EE documentation clearly states that only Text Area fields can be specified and overridden by a submitted email. My bad.

I do have another question now, though: Is there any way to recover email that has been processed by the moblog module? I have hundreds of entries without data now!

Profile
 
 
Posted: 09 September 2008 02:17 PM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15368
Joined  05-15-2004

What version and build are you on? Did it fail all of a sudden, or can you think of something to trigger it (new host, upgraded EE, etc)? Nevermind.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 09 September 2008 02:19 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15368
Joined  05-15-2004

No, I don’t think there’s a way: mail get sent to the specified account, is being processed and then deleted. Perhaps you have better luck with the “sent” mail?

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 09 September 2008 02:23 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  144
Joined  11-30-2004

Good suggestion.

I know nothing about the PHP mail() function—does it save sent items somewhere?

Profile
 
 
Posted: 09 September 2008 02:29 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15368
Joined  05-15-2004

Ah, I didn’t know where your mail was coming from (might have been a regular mail program, for all we know)—No, I don’t think PHP saves outgoing mail, either. Sorry for not having better news.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64912 Total Logged-in Users: 28
Total Topics: 81864 Total Anonymous Users: 17
Total Replies: 440102 Total Guests: 180
Total Posts: 521966    
Members ( View Memberlist )
Newest Members:  bjmohrAqua193Bios Elementmjpoteetguimogranwelshmrcfthenetmonkeybenekwhobutsb