SMTPSendMail with authentification failed

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
PWedig
Newbie
Posts: 5
Joined: Mon May 22, 2006 4:33 pm
Location: Germany
Contact:

SMTPSendMail with authentification failed

Post by PWedig » Mon May 22, 2006 4:47 pm

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

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon May 22, 2006 4:54 pm

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?

PWedig
Newbie
Posts: 5
Joined: Mon May 22, 2006 4:33 pm
Location: Germany
Contact:

Post by PWedig » Mon May 22, 2006 5:13 pm

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.
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.

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

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon May 22, 2006 5:20 pm

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.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

PWedig
Newbie
Posts: 5
Joined: Mon May 22, 2006 4:33 pm
Location: Germany
Contact:

Post by PWedig » Tue May 23, 2006 7:04 am

Hello Marcus,

thank's so much for you help.

You are right, i have changed the password again and now it works.
It's great, to get help here - thousand thank's.... !!!

Peter

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts