custom fields not viewable in emails with attachments
Posted: 06 November 2007 07:16 AM   [ Ignore ]
Newbie
Rank
Total Posts:  3
Joined  2006-06-30

I am using EE 1.6.0, Build:  20070726 and the latest version of Freeform (download says 2.5.8, but EE displays 2.5.7).

Everything works fine until I add an attachment to be sent via email. With an attachment included, the attachment arrives, but the text of the fields is not visible in the email. When viewing source it is there, but not displayed in the email itself.

This is the form code:
{exp:freeform:form form_name=“jt_milestones” notify=“webmaster@jewishtimes.com” template=“notify_milestones” file_upload=“Submit Photos via Email” send_attachment=“yes”}

Photo:

<input type=“file” name=“file1” />


Your Name:

<input type=“text” name=“name” size=“30” />


Email Address:

<input type=“text” name=“email” size=“30” />


Daytime Phone:

<input type=“text” name=“daytimephone” size=“30” />


Comments:

<textarea name=“comments” rows=“12” cols=“25” /></textarea>


{if captcha}

Please enter the word you see in the image below:

{captcha}

<input type=“text” name=“captcha” maxlength=“30” />

{/if}

<input name=“submit” type=‘submit’ value=‘Submit’ />
{/exp:freeform:form}

Profile
 
 
Posted: 06 November 2007 08:32 AM   [ Ignore ]   [ # 1 ]
Member
Avatar
RankRankRank
Total Posts:  73
Joined  2006-05-10

Hi there knewell,

This may sound like a silly question so I apologise before hand if it is but have you set up the fields in the Freeform Module settings area?

Specifically any fields that aren’t the standard fields that come pre-populated with Freeform like daytimephone (that is normally phone1 if memory serves me well), and also your comments field.

Not too sure what happens if they aren’t listed in the fields part of the module but if you don’t have those listed then I would say that would be your first port of call :

Modules->Freeform->Fields

Hope this helps.

Best wishes,

Mark

Profile
 
 
Posted: 06 November 2007 08:54 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  3
Joined  2006-06-30

Yes, the fields are all there. And without the attachment, the fields are populated and visible.

This information is viewable in the source code of the email message, they just don’t display.

If this provides any clues, below is what is displayed in the source code from my email client in the emails with attachments, looks like it is the format of the email - anyway to adjust that from within freeform?

Content-Type: multipart/mixed; boundary=“B_ATC_472f821f5b9fc”
This is a multi-part message in MIME format.
Your email application may not support this format.
—B_ATC_472f821f5b9fc
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

Jewish Times Milestone Submission:

Entry Date: 2007-11-05 04:50 PM

Name: Karen
Email: knewell
Phone: 410
Comments: text

—B_ATC_472f821f5b9fc
Content-type: image/jpeg; name=“Thumb004.jpg”
Content-Disposition: attachment;
Content-Transfer-Encoding: base64

Profile
 
 
Posted: 06 November 2007 10:41 AM   [ Ignore ]   [ # 3 ]
Member
Avatar
RankRankRank
Total Posts:  73
Joined  2006-05-10

Hi again,

Not really sure what all that means really. I’ve never really had any problems with Freeform at all I’m afraid. Just out of interest though what are you using to view the e-mails? Which e-mail client are you using and what platform?

Maybe Mitchell or someone else might know of a reason for this?

Also can you send an e-mail using the standard EE communicate tab and does that go through all right or not?

Best wishes,

Mark

Profile
 
 
Posted: 06 November 2007 10:54 AM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  3
Joined  2006-06-30

I have tested in other clients, it is consistent. Email works fine without the attachment.

I have determined it is a problem with setting EE mail preference to use PHP mail - sendmail does not present a problem.

Does that offer any clues as to how I could make an adjustment to PHP mail? Otherwise I will switch to sendmail.

thank you

Profile
 
 
Posted: 06 November 2007 11:07 AM   [ Ignore ]   [ # 5 ]
Member
Avatar
RankRankRank
Total Posts:  73
Joined  2006-05-10

I think perhaps it would be best to post that problem on the EE forums unless anyone else here has any ideas?

I only say that because as far as I know Freeform sends using the standard EE defaults so if there is a problem with sending using PHP mail then it may be a problem with EE and not Freeform directly. On the other hand it may be a problem with your server but posting on EE would be my first bet for an answer as there is always someone somewhere who has come across something before and may even have a solution.

Sorry but I have never used PHP mail myself so don’t really have any ideas to that.

Hope you get it all working soon though.

Best wishes,

Mark

Profile