Jump to content

Recommended Posts

Posted

I cant get the func to work, here is the sending portion of my code, whats wrong with it (it acts like it sends, then doesn't)

hotkeyset('{INS}', 'Send')
func send()
_INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body, $s_AttachFiles)

endFunc
;--------------Variables--------------------------

;~~~
$s_FromName= "Sent File"
$s_SmtpServer= InputBox("Server", "Input Smtp Server Adress")
$s_ToAddress= InputBox("To:","Input E-mail Adress to send to")
$s_FromAddress= InputBox("From:", "Input your E-mail adress")
$s_Subject= InputBox("Subject:","Input the Title of Email")
$as_Body = "File is attached"
$s_AttachFiles = $file
;have "$file" defined elsewere, its an HTML file

Note: i think Mozilla thunderbird supports SMTP, bu i dunno if this is right or if my Smtp stuff isn't configured right

Posted (edited)

Does it work if you replace the inputbox statements with some strings?

$s_SmtpServer= "smtp.gmail.com";Requieres account? 
$s_ToAddress= "someone@mydomain.net"
$s_FromAddress= "mymail@mydomain.net"
$s_Subject= "Just a dummy mail"

Checking if any @error is set would be clever to :)

Edited by Uten

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
×
×
  • Create New...