Him Posted February 6, 2007 Posted February 6, 2007 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...
/dev/null Posted February 6, 2007 Posted February 6, 2007 I tried to send an email using different scripts that I found in this forum. Can someone suggest me anyREALLY 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 *
Him Posted February 6, 2007 Author Posted February 6, 2007 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 theydon't seem to work. Can you also show me a working code? Thanks!
/dev/null Posted February 6, 2007 Posted February 6, 2007 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 theydon'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 *
Him Posted February 7, 2007 Author Posted February 7, 2007 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 EndFuncAnd it does't work. Any suggestions? [Any gmail invitation then!?]
/dev/null Posted February 7, 2007 Posted February 7, 2007 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) expandcollapse popup$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 *
Him Posted February 7, 2007 Author Posted February 7, 2007 well, you are NOT calling the Function, so nothing will happen !! This works for me (with a real bluebottle.com account) expandcollapse popup$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 ;==>SendEmailIt WORKS!!!! Thanks a lot!
Chrispy1 Posted April 6, 2007 Posted April 6, 2007 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
PaulIA Posted April 6, 2007 Posted April 6, 2007 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..ChrisIf all else fails, you might try the _INetSmtpMail UDF in INet.au3. Auto3Lib: A library of over 1200 functions for AutoIt
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now