Sign in to follow this  
Followers 0
bdb4269

A few questions about SMTP auth. and uploading files

6 posts in this topic

I am looking for a function like _INetSmtpMail but that supports SMTP authentication. (or if someone could tell me a smtp server that doest require authentication (do those even exist on the public internet anymore?!?))

Also, I was wondering if there is a function like InetGet -- but that lets you upload files to an FTP site?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

SMTP doesn't require authnetication by itself. The extension SMTP AUTH allows server to do this.

If you look in the source for the _INetSmtpMail () function you'll see where it creates starts setting up the SMTP session-

$s_Send[0] = "HELO " & $s_helo & @CRLF
If StringLeft($s_helo,5) = "EHLO " Then $s_Send[0] = $s_helo & @CRLF
$s_ReplyCode[0] = "250"
    
$s_Send[1] = "MAIL FROM: <" & $s_FromAddress & ">" & @CRLF
$s_ReplyCode[1] = "250"
$s_Send[2] = "RCPT TO: <" & $s_ToAddress & ">" & @CRLF
$s_ReplyCode[2] = "250"
$s_Send[3] = "DATA" & @CRLF
$s_ReplyCode[3] = "354"

Here is where you could add your AUTH command. (64 bit encoded, see qmail.jms1.net/test-auth.shtml for more detials on syntax, or Here if your using IE and the site wont let you through)

Edited by evilertoaster

Share this post


Link to post
Share on other sites

A couple more questions about ftp.

Is there a way to make it use pasv mode?

Also, are there any UDF's that support FTP over TLS?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0