| View previous topic :: View next topic |
| Author |
Message |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu Jul 03, 2003 11:47 pm Post subject: email switch for attachments |
|
|
Hi,
i'm after the "switch" to add attachments to emails in vds just like we can use BODY=... to add the message to an email
does anyone know what it is?
i am wanting to use something like the following with the ability to attach a file to the email
| Code: |
SHELL OPEN,mailto":"me"@"isp.com"?"subject"="Error report"&"body=hi serge, wanting to report an error
|
thanks in advance
serge _________________
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Jul 03, 2003 11:52 pm Post subject: |
|
|
This has been asked many times; it can't be done.
But you can use VDSIPP and other DLLs to send e-mail from within your
application.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Jul 04, 2003 12:08 am Post subject: |
|
|
ok ff, thanks for your reply
serge _________________
|
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Jul 04, 2003 8:07 pm Post subject: |
|
|
Doesn't work for me, it says it can't find the string...
Not even with commas:
| Code: | | shell email,"c:\text.txt","test@test.com","subject" |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Jul 05, 2003 9:32 am Post subject: |
|
|
I was just guessing, because I saw this in the help file:
| Quote: | Syntax:
SHELL <operation>, <filename>, <parameters>, <start-dir> WAIT, <priority level>
Description:
Performs the Windowsshell operation <operation> on the file <filename> with optional parameters <parameters> in the optional startup directory <start-dir>. If WAIT is specified the script waits until the operation is complete. |
I thought, maybe there is also an 'E-mail' operation...  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Jul 05, 2003 11:31 am Post subject: |
|
|
There could very well be and you should look into this more... but I don't
really know either.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Jul 06, 2003 1:35 am Post subject: |
|
|
thanks for all your replies...it seems that there is no easy way to do unless we use one of the extension dll
serge _________________
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Jul 06, 2003 9:40 am Post subject: |
|
|
If U want to send a text file as attachment it is possible.But a data file requires UUEncoding and this becomes difficult.
The principle is:
1.Inside your application create Editboxes for "To" "From" etc and user fills it. Or they can be prefilled as you prefer.
2.Also give a button to attach files ( you can limit to 2 or 3 - give ability to
attach a single file per edit box.
3. You can omit those boxes for which contents are already predicided by you. eg From BCC etc and even To If users are sending you a mail for support/bug report etc.
4.Now Create a list - List 1 say.
5.Load the parameters from Edit boxes and other fixed data neded from in between( I have attached a sample mail with a single attachment for the things you need to attach in between to make it work.
6.Use LIST LOADFILE and load your log text and also get its name into a variable and and insert at the appropriate place.
7.Now save your list LIST SAVEFILE as send.eml.
8.Run Send.eml It will open in the default E-mail client.
9.On closing your program You might want to delete the sent mail or save it (=rename to different one for later reference)with user confirmation.
what benefits did the end user get?
1. Avoid typing your mail(To)
2. Avoid Browsing the file to be attached(if file is already known).
3. Its great if the user wnts to type a bug report etc for example and send it and your app auto attaches the log file - in this case it appears cleaner and less messier to user
However it is crude because Your app didnot send the mail.
It is not possible to send binary files.
I dont know what exactly U R looking for.
Hope it helps to an extent.
added below an eml file opened out and simplified for your refernce.
| Code: |
From: "CodeScript" <codescript@unknown.com>
To: <email@address.com>
Cc: <mail2@address.com>
Bcc: <mail3@address.com>
Subject: Testing
Date:
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_0001_01A3.BCCE"
X-Priority: 3
X-MSMail-Priority: Normal
X-Unsent: 1
------=_NextPart_000_0001_01A3.BCCE
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0002_01A3.BCCE"
------=_NextPart_001_0002_01A3.BCCE
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Body of message goes here.
------=_NextPart_001_0002_01A3.BCCE
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Body of message
------=_NextPart_001_0002_01A3.BCCE--
------=_NextPart_000_0001_01A3.BCCE
Content-Type: text/plain;
name="mylog.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="mylog.txt"
this is a test log file.
There is no application really speaking.
Hence no question of log.
But this app still performed a foolish instruction at addres 0FFFFF.
You clicked ok to crash your computer and so did it.
End of log file
------=_NextPart_000_0001_01A3.BCCE--
|
This Should work reliably on all win platforms and all VDS versions.
If U want i will add the abilty to send binary files also using third party free command line utils to get the file uuencoded. then you will be able to send any file as attachment !
Also If U know of some freeware E-mail Smtp dlls please let me know. I will try unless the usage syntax is too complicated.
If I get time I "may" go through the possibilty of using a MAPImail dll in VDS5. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sun Jul 06, 2003 2:40 pm Post subject: |
|
|
| The only problem I see with this is if a user did not setup a default email account. He/she may be using hotmail or another webbased email exclusively thus the email you try to attempt won't be sent since no smtp server was specified within the email program on the machine. |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Jul 06, 2003 5:18 pm Post subject: |
|
|
| PGWARE wrote: | | The only problem I see with this is if a user did not setup a default email account. |
In that case I think there are two options:
1.Use Ur VDSSurfx.dll/vdsbrw50.dll(VDS 5) and open the page where the user(if) has setup a web form based mail from within the app.
2.Use a SMTP relay server (setup one in VDS using IMAPI dll in VDS 5.x) but this relay server is not a very hygeinic thing. I am afraid my effort on that it may end up in VDS becoming a bulk mailers tool and favorite of virii senders although in the app To can be preset.
I dont know how to add a checking ability based on reg whether a defaullt mail client is setup on all platforms . I have to find out. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Jul 06, 2003 5:39 pm Post subject: |
|
|
Oh tht's what I was windering. Your vdsipp03.dll can do that
| Quote: | | INTERNET SMTP,ATTACH,<smtp client>,<filename>,<cid>,<content type> |
It costs 100/70 USD right.
I cannot affford cuurently by any means and dont need it that much too. Anyway I am thinking I will complete th project I started may .. be ..Lazy.
BTW PK great work.  _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sun Jul 06, 2003 6:00 pm Post subject: |
|
|
| There's also Tommy vdsdll/vdsinet which sends smtp emails as well. |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Jul 06, 2003 11:22 pm Post subject: |
|
|
wow codescript...thanks for your reply
it's going to take me some time to digest what you posted although i do understand the basic idea
i just wanted a simple way for users to send me the error log file that my programs generate and i will have a look at what you put together for me
interesting point pgware...do you think that there are a lot of people with internet access but not a default email program? i never thought about that possibility
serge _________________
|
|
| Back to top |
|
 |
|