Hi,
first of all, i'm sorry about my bad english and also I'm sorry if I have overlooked my question in the faq's and in the use groups.
May be it is only a missunderstanding of mine.
I want to send an email with MS and have an smtp-server which need to authentificate. But there is my problem. Do i have to hand over the authentification into the comandline like "toemail,smtp... " and so on??
Or is it only necessary to declare the userid and password??????
I got the error after starting the macro:
550 must be authenticated
The datas for authentification are correct, because i use it with an email programm The Bat!.
Here is my comand:
Let>smtp=smtp.1und1.de
Let>fromemail=[email protected]
Let>mailname=Kretzschmar
Let>toemail=[email protected]
Let>subject=BORD128
Let>msg=Borderodaten
Let>attach=y:\temp\bord128.001
Let>SMTP_AUTH=1
Let>SMTP_USERID=3751-55
Let>SMTP_PASSWORD=12345678
// (sorry i do not write the original password )
SMTPSendMail>toemail,smtp,fromemail,mailname,subject,msg,attach
WriteLn>c:\Kretschmar-Test.err,%SMTP_RESULT%
+++++++++++++
Thank's for your help
PEter
SMTPSendMail with authentification failed
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Assuming your SMTP server uses SMTP-AUTH for authentication then what you are doing is correct. Perhaps your server uses a different kind of authentication. Or maybe you have the userId or password wrong - make sure you have no leading or trailing spaces etc.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Hi Marcus, thank's so much for your answer, but it doesn't work. I have created a new mailbox for testing, so if you would be so kind, you can use the listed password an id.mtettmar wrote:Assuming your SMTP server uses SMTP-AUTH for authentication then what you are doing is correct. Perhaps your server uses a different kind of authentication. Or maybe you have the userId or password wrong - make sure you have no leading or trailing spaces etc.
The result which i receive is now:
535 Error: authentication failed
here is again my code:
Let>smtp=smtp.1und1.de
Let>fromemail=[email protected]
Let>mailname=Kretzschmar
Let>toemail=[email protected]
Let>subject=BORD128
Let>msg=Borderodaten
Let>attach=y:\temp\bord128.001
Let>SMTP_AUTH=1
Let>SMTP_USERID=m39975613-testdtc
Let>SMTP_PASSWORD=testdtc
SMTPSendMail>toemail,smtp,fromemail,mailname,subject,msg,attach
+++++++++
Please be so kind and help me, i do not know, what i have to change...
I'm still working some years ago with small macros and we have no problem with sending mails without authentification, but this one.....
to the hell with it
Peter
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Hi,
The username or password is wrong. I can tell because without SMTP_AUTH=1 you will get a 550 Authentication Required error. With SMTP_AUTH but the wrong password or username you get 535 Authentication Error. So it DOES want SMTP_AUTH=1 but the username/password must be wrong.
The username or password is wrong. I can tell because without SMTP_AUTH=1 you will get a 550 Authentication Required error. With SMTP_AUTH but the wrong password or username you get 535 Authentication Error. So it DOES want SMTP_AUTH=1 but the username/password must be wrong.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?