B buras3 Active Member Licensed User Longtime User Jun 7, 2018 #1 Hello I want to send simple mail what do i do wrong ? B4X: smp.Initialize("smtp.gmail.com", 465, "xxxx@gmail.com", "xxxxx", "SmtpClient" ) smp.To.Add("xxxx@sheleg.co.il") smp.Sender="xxxx@gmail.com" smp.Body="sdvsd" smp.Send
Hello I want to send simple mail what do i do wrong ? B4X: smp.Initialize("smtp.gmail.com", 465, "xxxx@gmail.com", "xxxxx", "SmtpClient" ) smp.To.Add("xxxx@sheleg.co.il") smp.Sender="xxxx@gmail.com" smp.Body="sdvsd" smp.Send
walterf25 Expert Licensed User Longtime User Jun 7, 2018 #2 buras3 said: Hello I want to send simple mail what do i do wrong ? B4X: smp.Initialize("smtp.gmail.com", 465, "xxxx@gmail.com", "xxxxx", "SmtpClient" ) smp.To.Add("xxxx@sheleg.co.il") smp.Sender="xxxx@gmail.com" smp.Body="sdvsd" smp.Send Click to expand... What is the issue, you are not telling us whether you get an error or not? Walter Upvote 0
buras3 said: Hello I want to send simple mail what do i do wrong ? B4X: smp.Initialize("smtp.gmail.com", 465, "xxxx@gmail.com", "xxxxx", "SmtpClient" ) smp.To.Add("xxxx@sheleg.co.il") smp.Sender="xxxx@gmail.com" smp.Body="sdvsd" smp.Send Click to expand... What is the issue, you are not telling us whether you get an error or not? Walter
walterf25 Expert Licensed User Longtime User Jun 7, 2018 #4 buras3 said: no error Click to expand... so, what is the problem? Walter Upvote 0
walterf25 Expert Licensed User Longtime User Jun 7, 2018 #6 buras3 said: the mail is not sending Click to expand... Have you enabled gmails less secure apps access to your gmail account? Walter Upvote 0
buras3 said: the mail is not sending Click to expand... Have you enabled gmails less secure apps access to your gmail account? Walter
B buras3 Active Member Licensed User Longtime User Jun 7, 2018 #7 the user needs to send the mail Upvote 0
walterf25 Expert Licensed User Longtime User Jun 7, 2018 #8 buras3 said: the user needs to send the mail Click to expand... You need to give enable the less secure apps access on your gmail account, otherwise you will have to use the OAuth library to ask permission from the user. Walter Upvote 0
buras3 said: the user needs to send the mail Click to expand... You need to give enable the less secure apps access on your gmail account, otherwise you will have to use the OAuth library to ask permission from the user. Walter
Erel B4X founder Staff member Licensed User Longtime User Jun 8, 2018 #9 buras3 said: what do i do wrong ? Click to expand... You are not handling the MessageSent event and not checking the value of Log(LastException). Upvote 0
buras3 said: what do i do wrong ? Click to expand... You are not handling the MessageSent event and not checking the value of Log(LastException).
B buras3 Active Member Licensed User Longtime User Jun 10, 2018 #10 B4X: Sub SmtpClient_MessageSent(Success As Boolean) Msgbox ("",Success) End Sub Erel said: You are not handling the MessageSent event and not checking the value of Log(LastException). Click to expand... yes I do Nothing shows I get false Upvote 0
B4X: Sub SmtpClient_MessageSent(Success As Boolean) Msgbox ("",Success) End Sub Erel said: You are not handling the MessageSent event and not checking the value of Log(LastException). Click to expand... yes I do Nothing shows I get false
B buras3 Active Member Licensed User Longtime User Jun 10, 2018 #11 I did the less secure and it's working thank you walterf25 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 11, 2018 #12 buras3 said: yes I do Nothing shows I get false Click to expand... Don't use Msgbox. Use Log instead. When Success is False you should call Log(LastException). Upvote 0
buras3 said: yes I do Nothing shows I get false Click to expand... Don't use Msgbox. Use Log instead. When Success is False you should call Log(LastException).