n9mfk9 Posted March 19, 2008 Posted March 19, 2008 Hi All, here my code #include <INet.au3> $s_SmtpServer = "localhost" $s_FromName = "n9mfk9" $s_FromAddress = "n9mfk9@yahoo.com" $s_ToAddress = "n9mfk@comcast.net" $s_Subject = "My Test UDF" Dim $as_Body[2] $as_Body[0] = "Testing the new email udf" $as_Body[1] = "Second Line" $Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body) $err = @error If $Response = 1 Then MsgBox(0, "Success!", "Mail sent") Else MsgBox(0, "Error!", "Mail failed with error code " & $err) EndIf im getting Mail failed with error code 50 how can i fixthis beau
Achilles Posted March 19, 2008 Posted March 19, 2008 Are you sure that your server is valid? I've always used something like smtp.gmail.com... My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
n9mfk9 Posted March 19, 2008 Author Posted March 19, 2008 (edited) Are you sure that your server is valid? I've always used something like smtp.gmail.com...Im using a program called yahoo pops so i can use localhostBeau Edited March 19, 2008 by n9mfk9
P388l3s Posted June 16, 2008 Posted June 16, 2008 Im using a program called yahoo pops so i can use localhost Beau Sorry to bring an old thread up again, but I just found an answer to this particular problem, for exchange at least: _INetSmtpMail ( $s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress [,$s_Subject [,$as_Body [,$s_helo, [,$s_first [,$b_trace]]]]]) set $s_first to -1 IE $Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body, @computername, -1) for exchange 2007 this solved my error 50 problem. hope this helps someone.
Bob Hoss Posted October 9, 2008 Posted October 9, 2008 Sorry to bring an old thread up again, but I just found an answer to this particular problem, for exchange at least: _INetSmtpMail ( $s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress [,$s_Subject [,$as_Body [,$s_helo, [,$s_first [,$b_trace]]]]]) set $s_first to -1 IE $Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body, @computername, -1) for exchange 2007 this solved my error 50 problem. hope this helps someone. Perfect - this also fixed my issue with error code 50 - thanks!!!
TehWhale Posted October 10, 2008 Posted October 10, 2008 Hello, It appears you have found your answer to your question. Please take the time to edit your thread title with [RESOLVED] so others know that is it resolved. You can do this by scrolling to the top of your thread, clicking EDIT and then Full Edit and adding: "[RESOLVED]" to the front of your thread title. Thanks for your cooperation.
bluechipps Posted January 13, 2009 Posted January 13, 2009 Perfect - this also fixed my issue with error code 50 - thanks!!!This solved my troubles as well, proof that posting fixes is better late than never
cgasb Posted March 19, 2009 Posted March 19, 2009 Also wanted to say that this fixed error code 50 on Exchange 2003 as well. Thanks
Thunderstick Posted May 9, 2009 Posted May 9, 2009 I am getting the same thing nothing seems to be helping me.. PLEASE HELP ME OUT. IM using smtp.gmail.com as my SMTP host but I still get the same error. DO I need to somehow enter a password for the host. Hi All, here my code #include <INet.au3> $s_SmtpServer = "localhost" $s_FromName = "n9mfk9" $s_FromAddress = "n9mfk9@yahoo.com" $s_ToAddress = "n9mfk@comcast.net" $s_Subject = "My Test UDF" Dim $as_Body[2] $as_Body[0] = "Testing the new email udf" $as_Body[1] = "Second Line" $Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body) $err = @error If $Response = 1 Then MsgBox(0, "Success!", "Mail sent") Else MsgBox(0, "Error!", "Mail failed with error code " & $err) EndIf im getting Mail failed with error code 50 how can i fixthis beau
Developers Jos Posted May 9, 2009 Developers Posted May 9, 2009 I am getting the same thingnothing seems to be helping me.. PLEASE HELP ME OUT.IM using smtp.gmail.com as my SMTP hostbut I still get the same error. DO I need to somehow enter a password for the host.GMail uses secure smtp so this will never work. look for _InetSmtpMailCom() in the examples forum that will allow this.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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