Email Notification Error

Hi,

currently I am working on document approval setup (NAV 2009 SP1).

while sending the approval request I got the following error.

"The SMTP mail system returned the following error: (0x8004020E): The server rejected the sender address.

The server response was: 530 5.7.0 Must issue a STARTTLS command first. b8sm282191pbj.62".

I am using gmail smtp server.I configure in my outlook.It works fine.

Thanks in advance

And what about Navision setup related to emails.

Thanks Manish.

Sorry I can’t understand what you are asking ?

I tell you the procedure what i did

  1. configured the approval setup and user setup.

  2. Enabled the particular Approval template (for e.g purchase order).

  3. configured SMTP mail setup(smtp.gmail.com) in NAV 2009 and configured the mail in outlook express also it works fine.

After these steps when i send the approval request (purchase order–>function–>send approval request).

I got the error as i mentioned above.

Are you using any code unit?

No. It is a setup process

but i think it uses CodeUnit - 400

If this is your problem then try to consume the codeunit 397. This will be helpful to you.

Call the function NewMessage() with the following parameters.

Name DataType Subtype Length
ToName Text 80
CCName Text 80
Subject Text 260
Body Text 260
AttachFileName Text 260
OpenDialog Boolean

If you use false for the last parameter then the mail will be sent automatically. If it is true then you will see the compose dialog box.

Navision uses the SMTP dll to send email directly and not via outlook.

Alright.Thanks

How can i rectify the above mentioned error.

If you any solution please do let me know

If you have correctly configured SMTP Setup in Navision, then check the sender email address for any space.

If you have setup SMTP in navision, then check the sender email address for any space.