0
Answered

Sending Email from i3 Server?

Martin Lang 8 years ago in Applications / i3 Pro updated by Vladimir Ovchinnikov (expert) 6 years ago 12

Hi,


is i3 Server capable to send Emails to an SMTP server?


Ciao

Martin

Hi,


How can we send images / attachments?



you have to base64 encode it. but i think the best way would be to install a separate sendmail instance on the same machine and call it from within iridium server.

Hello Folks.

I tryed to use this scripts, but the GMAIL seems not to allow it anymore.

It connects, do the login, but when I try to send the


[16-08-2018 18:07:34.591] INFO SCRIPT >>>>hello
[16-08-2018 18:07:34.601] INFO SCRIPT >>>>EHLO<<<<
[16-08-2018 18:07:34.612] INFO SCRIPT >>>>auth
[16-08-2018 18:07:34.623] INFO SCRIPT >>>>AUTH LOGIN<<<<
[16-08-2018 18:07:34.907] INFO SCRIPT 250-smtp.gmail.com at your service, [2804:14d:baa0:9252:c81c:4c8f:77fc:4373]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8

[16-08-2018 18:07:34.915] INFO SCRIPT 250-smtp.gmail.com at your service, [2804:14d:baa0:9252:c81c:4c8f:77fc:4373]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8

[16-08-2018 18:07:35.025] INFO SCRIPT 334 VXNlcm5hbWU6

[16-08-2018 18:07:35.029] INFO SCRIPT >>>>if authorization needed, send login and password<<<<
[16-08-2018 18:07:35.040] INFO SCRIPT >>>>login
[16-08-2018 18:07:35.041] INFO SCRIPT >>>>IR.Base64Encode(email_from)<<<<
[16-08-2018 18:07:35.052] INFO SCRIPT >>>>password
[16-08-2018 18:07:35.053] INFO SCRIPT >>>>IR.Base64Encode(password)<<<<
[16-08-2018 18:07:35.064] INFO SCRIPT 334 VXNlcm5hbWU6

[16-08-2018 18:07:35.075] INFO SCRIPT >>>>if authorization needed, send login and password<<<<
[16-08-2018 18:07:35.076] INFO SCRIPT >>>>login
[16-08-2018 18:07:35.077] INFO SCRIPT >>>>IR.Base64Encode(email_from)<<<<
[16-08-2018 18:07:35.087] INFO SCRIPT >>>>password
[16-08-2018 18:07:35.088] INFO SCRIPT >>>>IR.Base64Encode(password)<<<<
[16-08-2018 18:07:35.360] INFO SCRIPT 334 UGFzc3dvcmQ6

[16-08-2018 18:07:35.369] INFO SCRIPT 334 UGFzc3dvcmQ6

[16-08-2018 18:07:35.586] INFO SCRIPT 235 2.7.0 Accepted

[16-08-2018 18:07:35.590] INFO SCRIPT >>>>when authorization confirmed, send a message<<<<
[16-08-2018 18:07:35.591] INFO SCRIPT >>>>from
[16-08-2018 18:07:35.592] INFO SCRIPT >>>>MAIL FROM<<<<
[16-08-2018 18:07:35.592] INFO SCRIPT >>>>to
[16-08-2018 18:07:35.593] INFO SCRIPT >>>>RCPT<<<<
[16-08-2018 18:07:35.593] INFO SCRIPT >>>>data
[16-08-2018 18:07:35.594] INFO SCRIPT >>>>DATA<<<<
[16-08-2018 18:07:35.594] INFO SCRIPT >>>>string
[16-08-2018 18:07:35.603] INFO SCRIPT >>>>Mensagem a ser enviada (name, email from, email to...)<<<<
[16-08-2018 18:07:35.615] INFO SCRIPT 235 2.7.0 Accepted

[16-08-2018 18:07:35.627] INFO SCRIPT >>>>when authorization confirmed, send a message<<<<
[16-08-2018 18:07:35.639] INFO SCRIPT >>>>from
[16-08-2018 18:07:35.651] INFO SCRIPT >>>>MAIL FROM<<<<
[16-08-2018 18:07:35.663] INFO SCRIPT >>>>to
[16-08-2018 18:07:35.675] INFO SCRIPT >>>>RCPT<<<<
[16-08-2018 18:07:35.687] INFO SCRIPT >>>>data
[16-08-2018 18:07:35.699] INFO SCRIPT >>>>DATA<<<<
[16-08-2018 18:07:35.711] INFO SCRIPT >>>>string
[16-08-2018 18:07:35.723] INFO SCRIPT >>>>Mensagem a ser enviada (name, email from, email to...)<<<<
[16-08-2018 18:07:35.735] INFO SCRIPT 502 5.5.1 Unrecognized command. e18-v6sm206852qki.33 - gsmtp

[16-08-2018 18:07:35.747] INFO SCRIPT message error!
[16-08-2018 18:07:35.759] INFO SCRIPT >>>>quit
[16-08-2018 18:07:35.771] INFO SCRIPT >>>>QUIT<<<<
[16-08-2018 18:07:35.783] INFO SCRIPT 502 5.5.1 Unrecognized command. e18-v6sm206852qki.33 - gsmtp

I have made a few modifications and get to use it in another SMTP server without TTS

But I really would like to use it in GMAIL.

Please help me...

Hello.

We checked the project, it works. However, keep in mind that by default, Google blocks the sending of applications that are considered dangerous. In your Gmail account, allow sending from insecure apps. https://myaccount.google.com/lesssecureapps

I have already allowed the insecure apps at my google account. But this script dosent work for me.


When a call the function 10 times in a row it sent 1 email once. But I have been working in this for weeks.


I even tryed to IR.Base64Encode(data) and the IR.Base64Encode(string) to test.

Didnt work either.


If you have your own mail server with TLS, then try to check the sending on it - so you will know for sure whether the project works. Google may use greylisting, and other methods of protection and filtering.


About IR.Base64Encode(data) and the IR.Base64Encode (string) explain that it does not work? Can you attach the code? If you want to hide the code, create a private ticket, we will help you.

Are you running your server on linux? In that case you could "outsource" this to the linux itself via sendmail.

No.. We are working with Windows

Hello.

Google doesn't understand the string in Base64:


Send without encoding.