Sign in to follow this  
Followers 0
Him

_InetSmtpmail

9 posts in this topic

Hi, I created an account at BlueBottle.com and

I tried to send an email using different scripts that I

found in this forum. Can someone suggest me any

REALLY WORKING Smtp server (I don't have gmail account)

any a REALLY WORKING - SIMPLE example script?

Thanks in advance...


[size="1"][font="Tahoma"]On the internet, nobody knows you're a dog.[/font][/size]

Share this post


Link to post
Share on other sites



I tried to send an email using different scripts that I

found in this forum. Can someone suggest me any

REALLY WORKING Smtp server (I don't have gmail account)

any a REALLY WORKING - SIMPLE example script?

well, you don't need a SMTP Server, but rather an SMTP client. Search the Example Scripts forum for "smtp". You will find at least 1 or 2 REALLY WORKING scripts.


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

well, you don't need a SMTP Server, but rather an SMTP client. Search the Example Scripts forum for "smtp". You will find at least 1 or 2 REALLY WORKING scripts.

I need a smtp server to connect and sent the email (like mail.google.com or whatever).

Do you know anything worthing to try? I searched the internet and found some but they

don't seem to work. Can you also show me a working code? Thanks!


[size="1"][font="Tahoma"]On the internet, nobody knows you're a dog.[/font][/size]

Share this post


Link to post
Share on other sites

I need a smtp server to connect and sent the email (like mail.google.com or whatever).

Do you know anything worthing to try? I searched the internet and found some but they

don't seem to work. Can you also show me a working code? Thanks!

maybe I don't understand. What do you want to do and why do you need an e-mail server? And, which tools did you test?


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

maybe I don't understand. What do you want to do and why do you need an e-mail server? And, which tools did you test?

I tried this:

CODE
$smtpserver = "mail.bluebottle.com"

$smtpuser = "user@bluebottle.com"

$smtppass = "pass"

$e_Sender = "user@bluebottle.com"

$e_Recipient = "user@hotmail.com"

$e_Subject = "hello"

$e_Text = "HI"

$e_File = ""

; use the function here!

Func SendEmail($e_Sender, $e_Recipient, $e_Subject, $e_Text,$e_File)

$objMessage = ObjCreate ("CDO.Message")

With $objMessage

.Subject = $e_Subject

.Sender = $e_Sender

.From = $e_Sender

.To = $e_Recipient

.TextBody = $e_Text

;.HtmlBody = $e_Text ; uncomment to send a HTML mail and comment line above

.AddAttachment = $e_File

EndWith

With $objMessage.Configuration.Fields

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

.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $smtpserver

.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1

.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $smtpuser

.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $smtppass

.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 587

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

.Update

EndWith

$objMessage.Send

Return

EndFunc

And it does't work.

Any suggestions?

[Any gmail invitation then!?]


[size="1"][font="Tahoma"]On the internet, nobody knows you're a dog.[/font][/size]

Share this post


Link to post
Share on other sites

And it does't work.

Any suggestions?

[Any gmail invitation then!?]

well, you are NOT calling the Function, so nothing will happen !!

This works for me (with a real bluebottle.com account)

$smtpserver = "mail.bluebottle.com"
$smtpuser = "user@bluebottle.com"
$smtppass = "xxxxxx"

$e_Sender = "user@bluebottle.com"
$e_Recipient = "user@mailinator.com"
$e_Subject = "hello"
$e_Text = "HI"
$e_File = ""

SendEmail($e_Sender,$e_Recipient,$e_Subject,$e_Text,$e_File)
; use the function here!

Func SendEmail($e_Sender, $e_Recipient, $e_Subject, $e_Text, $e_File)
    $objMessage = ObjCreate("CDO.Message")
    With $objMessage
        .Subject = $e_Subject
        .Sender = $e_Sender
        .From = $e_Sender
        .To = $e_Recipient
        .TextBody = $e_Text
        ;.HtmlBody = $e_Text ; uncomment to send a HTML mail and comment line above
        ;.AddAttachment = $e_File    ; <== I REMOVED THIS as we don't have an attachment
    EndWith
    With $objMessage.Configuration.Fields
        .Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
        .Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $smtpserver
        .Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
        .Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $smtpuser
        .Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $smtppass
        .Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 587
        .Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
        .Update
    EndWith
    $objMessage.Send
    Return
EndFunc   ;==>SendEmail

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

well, you are NOT calling the Function, so nothing will happen !!

This works for me (with a real bluebottle.com account)

$smtpserver = "mail.bluebottle.com"
$smtpuser = "user@bluebottle.com"
$smtppass = "xxxxxx"

$e_Sender = "user@bluebottle.com"
$e_Recipient = "user@mailinator.com"
$e_Subject = "hello"
$e_Text = "HI"
$e_File = ""

SendEmail($e_Sender,$e_Recipient,$e_Subject,$e_Text,$e_File)
; use the function here!

Func SendEmail($e_Sender, $e_Recipient, $e_Subject, $e_Text, $e_File)
    $objMessage = ObjCreate("CDO.Message")
    With $objMessage
        .Subject = $e_Subject
        .Sender = $e_Sender
        .From = $e_Sender
        .To = $e_Recipient
        .TextBody = $e_Text
        ;.HtmlBody = $e_Text ; uncomment to send a HTML mail and comment line above
        ;.AddAttachment = $e_File    ; <== I REMOVED THIS as we don't have an attachment
    EndWith
    With $objMessage.Configuration.Fields
        .Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
        .Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $smtpserver
        .Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
        .Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $smtpuser
        .Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $smtppass
        .Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 587
        .Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
        .Update
    EndWith
    $objMessage.Send
    Return
EndFunc   ;==>SendEmail
It WORKS!!!!

Thanks a lot!


[size="1"][font="Tahoma"]On the internet, nobody knows you're a dog.[/font][/size]

Share this post


Link to post
Share on other sites

Hey all - I'm brand new to this forum and to AutoIT and I'm trying to get this script up and running. i've copied the script into my SciTe editor, and made the changes so that it applies to my account and server. I'm getting a "Line 35 $objMessage.Send $objMessage.Send^Error - The requested action with this object has failed." - Line 35 is just the $objMessage.Send........

Anyone have any suggestions? I've got 3 days to get this access database up and running, and originally trying to figure out how to automate Outlook, but I can get this to work, it'll be a lot easier...

Really appreciate any and all help..

Thanks in advance..

Chris

Share this post


Link to post
Share on other sites

Hey all - I'm brand new to this forum and to AutoIT and I'm trying to get this script up and running. i've copied the script into my SciTe editor, and made the changes so that it applies to my account and server. I'm getting a "Line 35 $objMessage.Send $objMessage.Send^Error - The requested action with this object has failed." - Line 35 is just the $objMessage.Send........

Anyone have any suggestions? I've got 3 days to get this access database up and running, and originally trying to figure out how to automate Outlook, but I can get this to work, it'll be a lot easier...

Really appreciate any and all help..

Thanks in advance..

Chris

If all else fails, you might try the _INetSmtpMail UDF in INet.au3.

Auto3Lib: A library of over 1200 functions for AutoIt

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