PDA

View Full Version : Non-client dependent method of sending attachment



JMSmart
03-27-2007, 03:39 PM
:) Hoping to have some help with passing a file across the web.

I am newbie level and have searched a bit in the knowledge base for keywords I understand. But no avail as yet.

Basically, our AMS 60 project is tracking user clicks all over the program and storing this "log" in a txt file on the user's _TempFolder. At the end of the program they are directed to an evaluation page in AMS 60 and given the option to send us their opinion as well as the log we have been creating in runtime.

Sending the answers to their opinion questions is working great...getting the email attachment or any other method of passing the log to us is not working out. :(

Used xSMTP method with a dll, worked great and thought we were there. Until we discovered it only works when the user has an email client configured on their machine. So if they only use hotmail or other web-only email, they are told they can't submit the file without configuring a client. (That is over most of our user's heads and too many variables)

Tried mail.php with HTTP.Submit as some users suggested for a similar person, but even with success message appearing in AutoPlay, I don't receive the email.

Any direction for a wayward soul? :lol

Protocol
03-27-2007, 03:45 PM
Hmmmm...not sure, as the realm outside of AMS is unclear to me. Worm helped me out with a similar project a few years ago...wow...a few years ago...anyways, I just wanted to send some hope your way that there are peeps here that will be able to help...

Dermot
03-27-2007, 04:15 PM
You could use xSMTP using your SMTP server. That way the user never has to configure anything and will not need an email service. You could just hardcode in the SMTP server info. This way you have full control.

JMSmart
03-27-2007, 04:21 PM
Thanks guys.

Tried the xSMTP way. That was the one that worked from our offices just as easily as you describe, but from an off-site user's computer without a pre-configured email client on the machine. Not a working option.

blazm
03-27-2007, 04:25 PM
Use Blat.dll (http://www.geocities.com/toby_korn/blat/). I use it on several projects, ~ 20.000 deployments, it works on all Windows platforms (95-Vista).

Best regards,

Blaz

TJS
03-27-2007, 04:29 PM
If you have a website, you could put a CGI or PHP form out there and then have your AMS application use the HTTP.Submit() action to post that data to the web page. There are several PHP savvy users in this forum that might be willing to help you put such a page together if you are not familiar with server side coding...


hth

Dermot
03-27-2007, 04:31 PM
Tried the xSMTP way. That was the one that worked from our offices just as easily as you describe, but from an off-site user's computer without a pre-configured email client on the machine. Not a working option.
But if it is using your server to send through, they don't need an email service, just internet access. They would only need an email service if they had to configure it to send through their service. I know this works because I have apps that send emails back to me using xSMTP and my server.

Worm
03-27-2007, 04:40 PM
its worked for me too.

Issues I had were to be sure that my smtp server would allow the send from a remote IP. Usually need smtp authentication. Other issues I ran into were firewalls stopping my app from sending the email.

Roboblue
03-28-2007, 10:59 AM
You can put your SMTP account info in a database and encrypt the string data. Then just call that data and decrypt it when needed. The user can't see it.
I use this method all the time for the xSMTP and for FTP uploads.

RizlaUK
03-28-2007, 11:38 AM
yes, i am using xSMTP in one of my upcoming projects, it is very to use and has proved to be very reliable, infact i use it a lot in a little app i made myself to sent stuff to my googlemail account

a must have addon for ams and a big bouns to get it free with xDialog, Thanks Again Dermot :yes