This topic is locked
[SOLVED]

 Sending Email using GMAIL server

9/13/2010 7:47:56 AM
ASPRunnerPro General questions
I
ioagia author

I am using ASPRUNNER 6.2 version (Build 5242)
I want to send an email using Gmail server, but delivery always fails.
To send an email using Gmail server requires to enable ssl. I think that this is the problem.
Is it possible to enable ssl from Asprunner ?
Thank you!

Sergey Kornilov admin 9/13/2010

Here is how you can do this.

  1. Modify function runner_mail() in file C:\Program Files (x86)\ASPRunnerPro6.2\source\include\aspfunctions.asp
    See changes in bold:


    myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing";)=2

    'Name or IP of remote SMTP server

    myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver";)=csmtpserver

    'Server port

    myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport";)=csmtpport

    if csmtpport = 465 then

    myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl";) = 1

    myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout";) = 60

    end if



    ' SMTP username and passwords

    myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword";) = csmtppassword

    myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername";) = csmtpuser


2. In ASPRunnerPro use the following mail settings:
server: smtp.gmail.com

port: 465

username: your Gmail address

password: Gmail password
This is it.
We'll have this feature available in ASPRunnerPro 6.3 as well.

hichem 9/14/2010

is it possible to encrypt the username/pwd for the email account in the aspr generated files?

Also is there anyone who has a good/practical idea about how best to encrypt the aspr generated page. I want specifically to avoid that some users copy/paste the sql queries from the aspr pages and execute these directly against the database. The application is hosted on a shared host hence a lot of users have access an can edit the aspr generated code.

Windows Script encoder is not really an encryption tool: http://www.microsoft.com/downloads/en/details.aspx?FamilyId=E7877F67-C447-4873-B1B0-21F0626A6329&displaylang=en

Thanks

Hich

Sergey Kornilov admin 9/14/2010

Hich,
how would other users will have access to your ASP files on the web server?