forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


email switch for attachments
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Thu Jul 03, 2003 11:47 pm    Post subject: email switch for attachments Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Jul 03, 2003 11:52 pm    Post subject: Reply with quote

This has been asked many times; it can't be done. Crying or Very sad

But you can use VDSIPP and other DLLs to send e-mail from within your
application. Very Happy

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Jul 04, 2003 12:08 am    Post subject: Reply with quote

ok ff, thanks for your reply

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Fri Jul 04, 2003 6:34 am    Post subject: Reply with quote

You could look at this thread:

http://forum.vdsworld.com/viewtopic.php?t=276

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Jul 04, 2003 6:34 pm    Post subject: Reply with quote

Maybe it can be done by using the shell command? Rolling Eyes

shell email,"c:\testfile.zip" "test@test.com" "subject" Question

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Jul 04, 2003 8:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Jul 05, 2003 9:32 am    Post subject: Reply with quote

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... Wink

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Jul 05, 2003 11:31 am    Post subject: Reply with quote

There could very well be and you should look into this more... but I don't
really know either. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Jul 06, 2003 1:35 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Sun Jul 06, 2003 9:40 am    Post subject: Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Sun Jul 06, 2003 2:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Sun Jul 06, 2003 5:18 pm    Post subject: Reply with quote

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 Shocked 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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Sun Jul 06, 2003 5:39 pm    Post subject: Reply with quote

Oh tht's what I was windering. Your vdsipp03.dll can do that Cool

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. Sleep

BTW PK great work. Thumbs Up

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Sun Jul 06, 2003 6:00 pm    Post subject: Reply with quote

There's also Tommy vdsdll/vdsinet which sends smtp emails as well.
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Jul 06, 2003 11:22 pm    Post subject: Reply with quote

wow codescript...thanks for your reply Very Happy

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 Sad

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group