SMTP Send Email Attachment with Password

Rob Mostyn mostyn at platformis.net
Tue Aug 20 09:54:45 UTC 2024


I too have had a lot of difficulty sending emails with attachments from Omnis.
I get a different error message though… Relay not permitted.
Sending the same message and attachments from my Mail client works fine.

I haven’t got to the bottom of it yet, too distracted with more pressing issues.
But I am wondering if there are some specific headers that are being included by Mail clients that we should be adding to the email being sent in Omnis.  I have no idea what needs to be included though.

Headers is the only obvious thing that is different between sending from Mail client v. Omnis.

Any other ideas?  The fact that the email being sent is being recorded in a “Sent” folder?

Cheers,
Rob


> On 20 Aug 2024, at 10:06, Rudolf Bargholz <rudolf at bargholz.ch> wrote:
> 
> Hi Martin,
> 
> Try to send the mail from Outlook. See if the attachment can be opened. If yes, save the file as a MSG file, then use one of the many converters to convert the mail to EML format, e.g. https://www.zamzar.com/. Have a look at the contents of the EML file in a text editor. Perhaps you can glean some information about missing parameters in the MIME list from the EML formatted mail that successfully sent your PDF.
> 
> Regards
> 
> Rudolf Bargholz
> 
> -----Ursprüngliche Nachricht-----
> Von: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> Im Auftrag von Martin Obongita via omnisdev-en
> Gesendet: Montag, 19. August 2024 23:16
> An: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
> Cc: Martin Obongita <martin.obongita at yahoo.com>
> Betreff: Re: SMTP Send Email Attachment with Password
> 
> Hi Mike,
> Yes, if I use Outlook or Yahoo mail, the PDF is delivered and prompts for a password to open. Only in Omnis SMTPSend does it fail to prompt and is unable to open.
> 
> Instead opens the error message shown below:
> {    "error": {        "code": "ET-5006",        "requestId": "f28b4fe3-ad0b-1672-1cff-d30000011d00"    }}
> 
> 
> Kind regards, Martin.
> 
> 
>    On Tuesday, August 20, 2024 at 12:12:15 AM GMT+3, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:  
> 
>  Hi Mike,
> Yes, if I use Outlook or Yahoo mail, the PDF is delivered and prompts for a password to open it. Only in Omnis SMTP does not fail to prompt and is unable to open.
> Instead opens an error message shown below:
> {    "error": {        "code": "ET-5006",        "requestId": "f28b4fe3-ad0b-1672-1cff-d30000011d00"    }}
> 
> 
> 
> 
> Kind regardsMartin.
> 
> 
>     On Monday, August 19, 2024 at 01:37:37 PM GMT+3, Mike Matthews - Omnis via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:  
> 
> Hello Martin,
> 
> I would tend to agree here.  Maybe the email client can’t test the file fist, so maybe an AV issue possibly?
> 
> If you send the password PDF from the same computer, but using a regular email client, does to open then?
> 
> Mike Matthews
> 
> Lineal Software Solutions
> Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
> 
> omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
> 
> www.lineal.co.uk<http://www.lineal.co.uk/>
> 
> www.sqlworks.co.uk<http://www.sqlworks.co/>
> 
> 
> 
> On 19 Aug 2024, at 09:34, Phil (OmnisList) <phil at pgpotter.co.uk<mailto:phil at pgpotter.co.uk>> wrote:
> 
> Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.
> 
> 
> 
> Martin,
> 
> That sounds more like a problem with your email client, not how you are
> sending it.
> 
> There is no difference sending an encrypted pdf against an unencrypted pdf.
> 
> regards
> Phil Potter
> Based in Chester in the UK.
> 
> On 19/08/2024 09:27, Martin Obongita via omnisdev-en wrote:
> Hi @Everyone,
> I am using the sample library smtp_ow3 to send emails. If I attach PDF file and click start button, it is sent, delivered and I can open the attachment. The challenge is if I attach a PDF file encrypted with a password, the file is delivered but I cannot open it. Neither does the PDF prompt for a password to open.
> How do I set the attachment MimeList parameters for a password protected file attachment?-MimeType-Charset
> -Encoding
> RegardsMartin.
> _____________________________________________________________
> Manage your list subscriptions athttps://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,EhhMTL6iaf_ulTsQSLNXB2Rj8dFygT671N_-Fwos4Dlhl1rXCF1Ed9TtDYhMNcriuI7xIm7eCTQ9vfeU2vtx45tCAQ9aeHgJ3_4arKwCe3nRyA,,&typo=1
> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com
> _____________________________________________________________
> Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,CSIrHERWP8UJoMmvRK40qF0aRRzKJDnqn1eDJr9FkUFoV_i-GY-AtKRGSsWfIpzw2eFfTQJhLkSGC64kNs4L7V5dmtWPTd3hthFE6MAq1rZ3YEGadJE3q7U7sfHS&typo=1
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> 
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
>   
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> 
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list