Xojo Conferences
XDCMay2019MiamiUSA

Re: Creating emails in the default mail program (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: ColumnFromXY/RowFromXY
Next thread: [we] any guide to what works on iOS devices?


Re: Creating emails in the default mail program   -   Sam Rowlands
  Re: Creating emails in the default mail program   -   Ing. Antonio Rinaldi
   Re: Creating emails in the default mail program   -   Light Blue Software
   Re: Creating emails in the default mail program   -   Light Blue Software
   Creating emails in the default mail program   -   Light Blue Software
    Re: Creating emails in the default mail program   -   Phillip Zedalis
    Re: Creating emails in the default mail program   -   Phillip Zedalis
     Re: Creating emails in the default mail program   -   Light Blue Software
      Re: Creating emails in the default mail program   -   Thom McGrath

Re: Creating emails in the default mail program
Date: 02.08.12 02:37 (Thu, 02 Aug 2012 09:37:31 +0800)
From: Sam Rowlands
In the past this is how we added support for mail clients, is through Apple Script. However most shareware mail clients do _not_ support Apple Script and therefore we could only script 3 or 4 mail clients and of course no web mail applications.

If you’re simply looking to attach a file to an e-mail, most mail clients will generate a new e-mail if you ask the file to be opened in that application.

In OS X Mountain Lion, we now have sharing services, which you pass a file to and tell it to compose an e-mail, however this only seems to work with Apple Mail (which most Mac users will be using for e-mail).

I did experiment with mailto links then copying the information to the clipboard and sending the key down to paste the information, but this was incredibly unreliable.

Have a great week

Sam Rowlands
rowlands@me.com

On 1 Aug 2012, at 20:03, <email address removed> wrote:

> Scripting every possible mail client is not practical and beyond that more and more people are using webmail exclusively. This of course assuming your market is the broader one. If you know all of your users are using Apple Mail there are ways you can approach it however you did say "different mail programs on Mac and PC" so I'd advise to go the SMTP route.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Creating emails in the default mail program
Date: 01.08.12 11:54 (Wed, 01 Aug 2012 12:54:21 +0200)
From: Ing. Antonio Rinaldi
A possible solution is to create the mail message within RB with its
classes
Then save the source as textfile with .eml extension and launch that file

Il giorno 01/08/12 11:54, "Light Blue Software"
<<email address removed>> ha scritto:

>Thanks, Philip - it's as I thought, really. I was hoping for some kind of
>magic class that let you create a mail message and then RealStudio would
>just... well... create a message for me. But that was a really hopeful
>thought and not one I'd expect to exist!
>
>I don't want to use SMTP because I won't be setting up the end user's
>systems, and trying to explain to them what their SMTP server is, what
>their
>username is and what their password is is too complicated. Most of the
>people who will be setting this up won't even know where to begin to look!
>
>Thanks,
>
>Hamish
>
>On 1 Aug 2012, at 10:47am, Phillip Zedalis <pjzedalis@me.com> wrote:
>
>> Well unless the mail client will respond to some kind of mailto-type
>>parameter
>like you are investigating or you can script each mail client to do what
>you
>want you really need to go the SMTP route.
>>
>> Scripting every possible mail client is not practical and beyond that
>>more and
>more people are using webmail exclusively. This of course assuming your
>market
>is the broader one. If you know all of your users are using Apple Mail
>there are
>ways you can approach it however you did say "different mail programs on
>Mac and
>PC" so I'd advise to go the SMTP route.
>>
>> May I ask why you are shying away from SMTP?
>>
>> Phillip
>>
>> On Aug 1, 2012, at 2:31 AM, Light Blue Software
>><<email address removed>>
>wrote:
>>
>>> Hi -
>>>
>>> I'm trying to create an email in my default mail program; I need this
>>>to work
>for a number of different mail programs on Mac and PC, and I need to be
>able to
>set the recipients, subject, body and attachments.
>>>
>>> I don't want to use SMTP sending from within RB.
>>>
>>> Is my only option to use ShowURL with a Mailto type URL? That's not
>>>really
>enough, because I might need more than 2083 characters in the body.
>>>
>>> (I'm not even convinced that the attachment parameter of a mailto-type
>>>URL
>works in all mail clients.)
>>>
>>> Cheers,
>>>
>>> Hamish
>>> _______________________________________________
>>> Unsubscribe or switch delivery mode:
>>> <http://www.realsoftware.com/support/listmanager/>
>>>
>>> Search the archives:
>>> <http://support.realsoftware.com/listarchives/lists.html>
>>
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives:
>> <http://support.realsoftware.com/listarchives/lists.html>
>--
><email address removed>
>Twitter: @lighterblue
>
>Winner of the 2009 FileMaker CubeAwards 'Best Private Sector Solution'
>award
>
>Light Blue Software is a company registered in England and Wales, number
>6671025. Our registered office is 101 Teversham Drift, Cambridge CB1 3LL.
>
>_______________________________________________
>Unsubscribe or switch delivery mode:
><http://www.realsoftware.com/support/listmanager/>
>Search the archives:
><http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Creating emails in the default mail program
Date: 01.08.12 16:10 (Wed, 1 Aug 2012 16:10:30 +0100)
From: Light Blue Software
Hi -

Having tried this, the email opens just as I'd expect, but it's not editable - it's as if I'd double-clicked an existing email in the list of received emails. I need the To: field, body field etc to be able to accept input.

There's a header called X-Unsent, which I believe Outlook respects, but Mac Mail doesn't. I've tried dragging this half-completed message from Drafts to the desktop, then double-clicking that to open it, and it displays in read mode, not compose mode. There's not much info on this online but there are a couple of unanswered questions from people asking what the equivalent of X-Unsent is in Mac Mail, which makes me think there isn't one.

So, very sadly, I think this will have to go down as a really great idea, but not something that'll work.

Thanks,

Hamish

On 1 Aug 2012, at 11:54am, Ing. Antonio Rinaldi <<email address removed>> wrote:

> A possible solution is to create the mail message within RB with its
> classes
> Then save the source as textfile with .eml extension and launch that file
>
> Il giorno 01/08/12 11:54, "Light Blue Software"
> <<email address removed>> ha scritto:




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Creating emails in the default mail program
Date: 01.08.12 12:06 (Wed, 1 Aug 2012 12:06:39 +0100)
From: Light Blue Software
That's an interesting idea, and one I shall investigate further. I'll report back.
Thanks,
Hamish

On 1 Aug 2012, at 11:54am, Ing. Antonio Rinaldi <<email address removed>> wrote:

> A possible solution is to create the mail message within RB with its
> classes
> Then save the source as textfile with .eml extension and launch that file
>
> Il giorno 01/08/12 11:54, "Light Blue Software"
> <<email address removed>> ha scritto:

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Creating emails in the default mail program
Date: 01.08.12 10:31 (Wed, 1 Aug 2012 10:31:06 +0100)
From: Light Blue Software
Hi -

I'm trying to create an email in my default mail program; I need this to work for a number of different mail programs on Mac and PC, and I need to be able to set the recipients, subject, body and attachments.

I don't want to use SMTP sending from within RB.

Is my only option to use ShowURL with a Mailto type URL? That's not really enough, because I might need more than 2083 characters in the body.

(I'm not even convinced that the attachment parameter of a mailto-type URL works in all mail clients.)

Cheers,

Hamish
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Creating emails in the default mail program
Date: 01.08.12 11:00 (Wed, 01 Aug 2012 03:00:08 -0700)
From: Phillip Zedalis
Yeah I can understand that. Well depending on your business model you could explore various email web services that let you send emails or you could relay it for them on your server. However some of these options impact delivery reliability. It's a difficult problem to solve and I think it really depends on how you are trying to use e-mail what alternatives might exist.

Phillip

On Aug 1, 2012, at 2:54 AM, Light Blue Software <<email address removed>> wrote:

> Thanks, Philip - it's as I thought, really. I was hoping for some kind of magic class that let you create a mail message and then RealStudio would just... well... create a message for me. But that was a really hopeful thought and not one I'd expect to exist!
>
> I don't want to use SMTP because I won't be setting up the end user's systems, and trying to explain to them what their SMTP server is, what their username is and what their password is is too complicated. Most of the people who will be setting this up won't even know where to begin to look!
>
> Thanks,
>
> Hamish
>
> On 1 Aug 2012, at 10:47am, Phillip Zedalis <pjzedalis@me.com> wrote:
>
>> Well unless the mail client will respond to some kind of mailto-type parameter like you are investigating or you can script each mail client to do what you want you really need to go the SMTP route.
>>
>> Scripting every possible mail client is not practical and beyond that more and more people are using webmail exclusively. This of course assuming your market is the broader one. If you know all of your users are using Apple Mail there are ways you can approach it however you did say "different mail programs on Mac and PC" so I'd advise to go the SMTP route.
>>
>> May I ask why you are shying away from SMTP?
>>
>> Phillip
>>
>> On Aug 1, 2012, at 2:31 AM, Light Blue Software <<email address removed>> wrote:
>>
>>> Hi -
>>>
>>> I'm trying to create an email in my default mail program; I need this to work for a number of different mail programs on Mac and PC, and I need to be able to set the recipients, subject, body and attachments.
>>>
>>> I don't want to use SMTP sending from within RB.
>>>
>>> Is my only option to use ShowURL with a Mailto type URL? That's not really enough, because I might need more than 2083 characters in the body.
>>>
>>> (I'm not even convinced that the attachment parameter of a mailto-type URL works in all mail clients.)
>>>
>>> Cheers,
>>>
>>> Hamish
>>> _______________________________________________
>>> Unsubscribe or switch delivery mode:
>>> <http://www.realsoftware.com/support/listmanager/>
>>>
>>> Search the archives:
>>> <http://support.realsoftware.com/listarchives/lists.html>
>>
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives:
>> <http://support.realsoftware.com/listarchives/lists.html>
> --
> <email address removed>
> Twitter: @lighterblue
>
> Winner of the 2009 FileMaker CubeAwards 'Best Private Sector Solution' award
>
> Light Blue Software is a company registered in England and Wales, number 6671025. Our registered office is 101 Teversham Drift, Cambridge CB1 3LL.
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Creating emails in the default mail program
Date: 01.08.12 10:47 (Wed, 01 Aug 2012 02:47:49 -0700)
From: Phillip Zedalis
Well unless the mail client will respond to some kind of mailto-type parameter like you are investigating or you can script each mail client to do what you want you really need to go the SMTP route.

Scripting every possible mail client is not practical and beyond that more and more people are using webmail exclusively. This of course assuming your market is the broader one. If you know all of your users are using Apple Mail there are ways you can approach it however you did say "different mail programs on Mac and PC" so I'd advise to go the SMTP route.

May I ask why you are shying away from SMTP?

Phillip

On Aug 1, 2012, at 2:31 AM, Light Blue Software <<email address removed>> wrote:

> Hi -
>
> I'm trying to create an email in my default mail program; I need this to work for a number of different mail programs on Mac and PC, and I need to be able to set the recipients, subject, body and attachments.
>
> I don't want to use SMTP sending from within RB.
>
> Is my only option to use ShowURL with a Mailto type URL? That's not really enough, because I might need more than 2083 characters in the body.
>
> (I'm not even convinced that the attachment parameter of a mailto-type URL works in all mail clients.)
>
> Cheers,
>
> Hamish
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Creating emails in the default mail program
Date: 01.08.12 10:54 (Wed, 1 Aug 2012 10:54:59 +0100)
From: Light Blue Software
Thanks, Philip - it's as I thought, really. I was hoping for some kind of magic class that let you create a mail message and then RealStudio would just... well... create a message for me. But that was a really hopeful thought and not one I'd expect to exist!

I don't want to use SMTP because I won't be setting up the end user's systems, and trying to explain to them what their SMTP server is, what their username is and what their password is is too complicated. Most of the people who will be setting this up won't even know where to begin to look!

Thanks,

Hamish

On 1 Aug 2012, at 10:47am, Phillip Zedalis <pjzedalis@me.com> wrote:

> Well unless the mail client will respond to some kind of mailto-type parameter like you are investigating or you can script each mail client to do what you want you really need to go the SMTP route.
>
> Scripting every possible mail client is not practical and beyond that more and more people are using webmail exclusively. This of course assuming your market is the broader one. If you know all of your users are using Apple Mail there are ways you can approach it however you did say "different mail programs on Mac and PC" so I'd advise to go the SMTP route.
>
> May I ask why you are shying away from SMTP?
>
> Phillip
>
> On Aug 1, 2012, at 2:31 AM, Light Blue Software <<email address removed>> wrote:
>
>> Hi -
>>
>> I'm trying to create an email in my default mail program; I need this to work for a number of different mail programs on Mac and PC, and I need to be able to set the recipients, subject, body and attachments.
>>
>> I don't want to use SMTP sending from within RB.
>>
>> Is my only option to use ShowURL with a Mailto type URL? That's not really enough, because I might need more than 2083 characters in the body.
>>
>> (I'm not even convinced that the attachment parameter of a mailto-type URL works in all mail clients.)
>>
>> Cheers,
>>
>> Hamish
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives:
>> <http://support.realsoftware.com/listarchives/lists.html>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

Re: Creating emails in the default mail program
Date: 01.08.12 11:05 (Wed, 1 Aug 2012 06:05:12 -0400)
From: Thom McGrath
Here's an option: relay it for them. In our internal orders app, I ran into the same problem, SMTP settings weren't working well enough, even when we provided our own. Some carriers would block, some firewalls would, and of course our SMTPSocket sure isn't perfect.

So I wrote a script to sit on our server. It collects all the data necessary and sends the email using the mail system already installed on the server. Make sure to use it only via SSL, and it's a pretty elegant solution.

Of course, it is another point of failure, but only you can decide if that is worth the risk.