| View previous topic :: View next topic |
| Author |
Message |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Mon Jul 07, 2003 12:22 am Post subject: |
|
|
| I'm not sure there are 'alot' but there probably are quite a few. Many people do not know how to use a pop3/smtp based email client thus they just use the free hotmail service. |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Jul 07, 2003 1:49 am Post subject: |
|
|
Just in case any of U don't know. Even for those mail services eg Yahoo - most poular and many people like me registered and gave the addr to many friends and so on. Then it went paid for POP acccess. There is a freeware app YahooPOPs from Sourceforge.net which downloads the mail from webbased yahoo mail to E-mail clients and sends it to. Web2pop is another shareware util which claims to do this with any web based mail service. If Ur client installs one of these he can still send e-mails with attachments with my method or even better using prakash's dll setting the server as local host port 25.
Please note: As for YahooPOPS as far as I know it doesnot violate Yahoo terms and conditions as of now but if you are using something similar on other mail services check specifically if it's forbidden by the service and hence illegal.
PK I dont know is there an easy way to write VDS script to send mails through webbased services directly using Ur dll - I know itshould be possible as all protocols are suppoted but each web mail service has unique process of authenticating recieving the mail data, page layout and folder structure. Is there a universal solution or one has to add script to all the popular e mails and slect the appropriate one based on what user enters as senders address. Some(very few) services even put dynamic pages and web scripts to prevent such downloading coz clients dont get their banners and popups - causing loss of advert revenue.
(In a country like India a lot = most of people use web based free e-mail services and "many' dont use any such 3rd party apps to use e-mail clients)
But Serge many big companies also provide just a SMTP type of access for support and I think U may not worry too much about such users - they are few unless as i said a country like mine. Also If You R geeting a log file mailed back automatically yoy should programatically show your user what is being sent. This would invoke confidence in the user and privacy rules probably also reqiure U to do so. BTW if U R interested i will complete the script i started and post it ( U R on vds 4?)
This is about whatever little I know but I may be wrong ? _________________ 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: Mon Jul 07, 2003 5:32 am Post subject: |
|
|
The best option in my opinion is to handle this via http protocol. On your webserver you can setup a cgi/php script which sends you an email and the contents of the local error log file. Simply connect and send the support email via http.
create the http protocol
call the http and send the values to the cgi/php script
Of course you will also need to write up a php/cgi script too and place it on your webserver which can read in these variables and send the mail to you. This would only take a few lines of code using php.
You should inform the user that a log is being transmitted just to keep them aware that their privacy is being maintained. Doing it this way you can make your own customized looking support dialog in VDS and the email is always sent. You don't need to rely on if the user has smtp setup on their computer, or if the smtp port on their computer is blocked by their isp, or if they are using webbased mail or not. |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Jul 07, 2003 5:52 am Post subject: |
|
|
OK cgi/php mail script + http - great idea . I thought in this direction but I dont know about cgi/php scripting. I think Serge knows. Anyway would need 2-3 lines of code and the server should support it and give permissions too. _________________ 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: Mon Jul 07, 2003 6:10 am Post subject: |
|
|
In php:
| Code: |
<?php
$header = "From: $users-email\n";
mail("serge@his-email.com","bug report",$message,$header);
?>
|
In your http query you only need to specify:
$users-email (the users email address)
$message (the contents of the error log |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Jul 07, 2003 5:38 pm Post subject: |
|
|
| Serge wrote: | 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
serge |
If U want U can have a look at the code:
http://forum.vdsworld.com/viewtopic.php?t=1706
I tested on both VDS 4 and 5 on Winxp pro and 98 sucessfully. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
|