Topic: Send Mail PDF

hello MVD Family...
i am generating report using script having multiple datasets.
how to mail (Gmail) generated report as pdf file to given email address .

2 (edited by kavinacomputers 2024-05-16 16:12:23)

Re: Send Mail PDF

may be try this

https://myvisualdatabase.com/forum/view … 9900#p9900

Re: Send Mail PDF

Not working Bro...
Please help with tested project..

Re: Send Mail PDF

What is not working actually, do you get ab error message? Please not that using Gmail is a bit tricky especially for the authentication as stated in the post linked previously.

Re: Send Mail PDF

Error is

connectionclosed gracefully

Error line sendmail(***********);

Re: Send Mail PDF

Help required....

Re: Send Mail PDF

Have you tried to send an email from an email client using the parameter in use with your application? Does it do the same?

Re: Send Mail PDF

Simply i used my gmail account ... i dont know how to use client email.. is that tricky??? Please explain

9 (edited by StateOne 2024-05-23 07:49:24)

Re: Send Mail PDF

smtp configured....
i checked it on https://www.gmass.co/smtp-test and working properly... but using MVD getting Error

Connection Closed Gracefully

... can anyone help??

Post's attachments

Attachment icon Untitled.png 47.45 kb, 2 downloads since 2024-05-23 

Re: Send Mail PDF

I think it's all about the gmail security settings. I couldn't persuade him big_smile Is it possible to use another mail server to send emails?

Визуальное программирование: блог и телеграм-канал.

Re: Send Mail PDF

Thanks K245...
I'll try outlook and yahoo...

Re: Send Mail PDF

using Outlook....
works using https://www.gmass.co/smtp-test
but not works using MVD

Re: Send Mail PDF

https://k245.ru/wp-content/uploads/2022/12/tupik.jpg

Визуальное программирование: блог и телеграм-канал.

14 (edited by StateOne 2024-05-23 13:41:53)

Re: Send Mail PDF

tongue Exactly the same thing is happening with me....
10k+ lines written in my program but not usable due to email reports..

Post's attachments

Attachment icon Untitled.png 10.79 kb, 4 downloads since 2024-05-23 

15 (edited by tcoton 2024-05-23 15:39:43)

Re: Send Mail PDF

Did you create the gmail application password?

https://mailtrap.io/blog/gmail-smtp/

Re: Send Mail PDF

Yes ... I created App Password... You can see Privious post... my gmail account works properly using SMTP Test Tool...

Re: Send Mail PDF

To work correctly with gmail you need an additional library.

Re: Send Mail PDF

Does it work if you use non secure connection in MVD? (Port 25) https://support.google.com/a/answer/176600?hl=en

Re: Send Mail PDF

StateOne wrote:

Help required....


Check out this example

https://myvisualdatabase.com/forum/view … 530#p32530

20 (edited by k245 2024-05-24 12:43:03)

Re: Send Mail PDF

sparrow wrote:
StateOne wrote:

Help required....


Check out this example

https://myvisualdatabase.com/forum/view … 530#p32530

Thank you, sparrow!

https://myvisualdatabase.com/forum/misc.php?action=pun_attachment&item=10461&download=0

StateOne, this will work if you specify the password for the application as the password. You need to create it in your Google account security settings. But first you need to enable two-factor authentication.

https://myaccount.google.com/apppasswords

Post's attachments

Attachment icon изображение_2024-05-24_153623956.png 18.44 kb, 3 downloads since 2024-05-24 

Визуальное программирование: блог и телеграм-канал.

Re: Send Mail PDF

Константин,

Существует также возможность самостоятельного написания процедуры путем использования определенных классов.


It is also possible to write a procedure yourself by using certain classes.