email attachment

Questions, tips and tricks and techniques for scripting in Servoy

email attachment

Postby Harry Catharell » Fri Aug 07, 2009 4:16 pm

Servoy Developer
Version 3.5.10-build 524
Java version 1.5.0_16-133 (Mac OS X)

Hi all

Using standard mail plugin to send a standard text email
Works fine until I send an attachment
The attachment is sent BUT in OS X Mail application it shows in the body of that email directly after the last character in the message text

So if I send an image then it displays next to my name and it distorts the view of the email

I assume that this is an OS X thing only

So, anyone come across this and have a solution or workaround for it ?

Cheers
Harry
Harry Catharell
 
Posts: 812
Joined: Fri Sep 26, 2003 10:23 am
Location: Milton Keynes, England

Re: email attachment

Postby patrick » Fri Aug 07, 2009 4:25 pm

That, I would say, is a setting of the mail client receiving the message. In Thunderbird, for example, you can opt to show attachments inline. I guess you can do the same in Apple Mail. So I think the answer is: no. There is nothing you can do about that on the sender's side.
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: email attachment

Postby Harry Catharell » Fri Aug 07, 2009 5:47 pm

Thanks for the feedback, Patrick

I cannot find a setting for this in latest Mail v3.6

Would your plugin cope with this scenario and allow at least some white space to be set between the text and attachment ?

Cheers
Harry
Harry Catharell
 
Posts: 812
Joined: Fri Sep 26, 2003 10:23 am
Location: Milton Keynes, England

Re: email attachment

Postby patrick » Mon Aug 10, 2009 10:52 am

As I said, I think it is a client setting that is doing that. So my plugin won't make any difference (although it offers a lot more control over all this, of course :-)). I will see if I can have a look at a Mac later and see what I can find.
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: email attachment

Postby patrick » Mon Aug 10, 2009 11:02 am

You are right, it seems you cannot set that in Mail.app. I found this: http://www.apple.com/downloads/macosx/e ... nizer.html
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: email attachment

Postby Harry Catharell » Mon Aug 10, 2009 12:54 pm

Hi Patrick,

Thanks for the link - interesting little pref pane

I suppose that, when the email is sent, it is at the recipient end where there is no control over the display - either their client does it or it doesn't and you can't dictate what they have or how it is set up - maybe I'll get my customer to just give this advice to their customers should they be using Mail.app

Cheers and thanks for the replies
Harry
Harry Catharell
 
Posts: 812
Joined: Fri Sep 26, 2003 10:23 am
Location: Milton Keynes, England

Re: email attachment

Postby patrick » Mon Aug 10, 2009 1:01 pm

there is no control over the display - either their client does it or it doesn't and you can't dictate what they have or how it is set up


Yes and no. An attachment has a disposition property that is set in the header. Mail clients should respect that and I think AppleMail does not. You could check that, however. A disposition "INLINE" should do what it says: make sure an attachment is displayed inline. Maybe the mail plugin defaults to that, I don't know. With my plugin, you can control that property...
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: email attachment

Postby Harry Catharell » Tue Aug 11, 2009 11:49 am

Hi Patrick

I really should try out your plugin :)

Thanks for the background....

Cheers
Harry
Harry Catharell
 
Posts: 812
Joined: Fri Sep 26, 2003 10:23 am
Location: Milton Keynes, England


Return to Methods

Who is online

Users browsing this forum: No registered users and 50 guests

cron