Sign in to follow this  
Followers 0
Paulie

_inetsmtpmailcom Error

2 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  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

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