| |
Posté le 28 juillet 2015 - 11:14 |
Bonjour,
Je cherche un moyenne pour faire l'envoie automatique des email sur androïde sans le déploiement d'un sebservice
Merci de tout aide |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 17 messages |
|
Posté le 28 juillet 2015 - 12:24 |
| |
| |
| | | |
|
| | |
| |
Posté le 29 juillet 2015 - 18:26 |
Bonjour, Ce que je cherche c'est quelque chose automatique sans aucun action de l'utilisateur
MErci de ta réponse |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 17 messages |
|
Posté le 30 juillet 2015 - 12:15 |
| |
| |
| | | |
|
| | |
| |
Posté le 30 juillet 2015 - 23:48 |
Bonsoir, La discussion parle de la solution de webservice que je ne peux pas faire car je dois avoir un serveur web qui est paient MErci de ton aide |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 34 messages Popularité : +0 (2 votes) |
|
Posté le 02 août 2015 - 23:27 |
Perso j'ai opté pour un automate fait en WinDev avec la version express de WinDev. Il scrute la BDD de mon appli faite avec WinDev Mobile et envoit des emails aux utilisateurs (par exemple, un utilisateur veut récupérer son mot de passe perdu pour se logger dans l'appli, et ben l'automate WinDev scrute sa demande et lui balance l'email). Rapide et gratuit. A voir si ça peut coller avec tes problématiques, moi dans mon cas ça le fait carrément ! |
| |
| |
| | | |
|
| | |
| |
Posté le 03 août 2015 - 11:04 |
Bonjour, tu l'as fais sans un webservice ? Tu peux me donner plus de détaille sur l'emplacement de la base de l'appciation mobile ?
Merci de ta réponse |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 3 651 messages Popularité : +175 (223 votes) |
|
Posté le 03 août 2015 - 13:38 |
BONJOUR,
Create a webservice with mssql. enable DatabaseMail, create a stored procedure with parameters. create a method in webservice to use this stored procedure ... consums the webservice by WINDEV Mobile and pass the values to that method.
it works perfectly |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 3 651 messages Popularité : +175 (223 votes) |
|
Posté le 03 août 2015 - 13:42 |
| |
| |
| | | |
|
| | |
| |
Posté le 03 août 2015 - 15:55 |
MErci Je cherche une autre méthode sans utiliser un webservice |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 3 651 messages Popularité : +175 (223 votes) |
|
Posté le 03 août 2015 - 17:31 |
mensagem is Email sessao is EmailSMTPSession anexo is EmailAttach mensagem..Sender=minhaconta@Email.com.br anexo..Name=sArquivoanexo anexo..Content=fLoadText(anexo..Name) Add(mensagem..Attach,anexo) mensagem..HTML=TextToHTML(mensagememail) mensagem..Subject=assuntoemail Add(mensagem..Recipient,destinatarioemail) sessao.ServerAddress=servidor sessao.Port=porta sessao.Option=emailOptionSecuredTLS /em caso de segurança sessao.Password=senha sessao.Name=minhaconta@Email.com.br EmailSetTimeOut(10) HReset(tabemaillog) IF EmailStartSession(sessao) = False THEN Info("erro") ELSE Info("sucesso") END EmailSendMessage(sessao,mensagem) EmailCloseSession(sessao) |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 3 651 messages Popularité : +175 (223 votes) |
|
Posté le 03 août 2015 - 17:36 |
| |
| |
| | | |
|
| | |
| |
Posté le 03 août 2015 - 18:35 |
MErci ce code marche seulement avec windev !? , mais moi je cherche windev mobile pour android MErci comme même |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 3 651 messages Popularité : +175 (223 votes) |
|
Posté le 03 août 2015 - 23:10 |
| |
| |
| | | |
|
| | |
| |
Posté le 04 août 2015 - 10:54 |
Bonjour,
MErci de tes liens
J'avais essayé le lien http://mobiledevtuts.com/android/android-sdk-smtp-email-tutorial/ avec windev mobile mais j'avais les erreurs :
Echec de la création de l'application Android <C:\Mes Projets Mobile\SendMail\Exe\SendMail.apk>.
Ligne de commande : "C:\Program Files\Java\jdk1.8.0_25\bin\javac.exe" -encoding UTF-16LE -nowarn -source 1.5 -target 1.5 -d bin\classes -bootclasspath "C:\Android\android-sdk\platforms\android-22\android.jar" gen\com\masociete\sendmail\*.java src\com\masociete\sendmail\wdgen\*.java -classpath "libs;libs\activation.jar;libs\additionnal.jar;libs\mail.jar"
Erreur retournée : src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:122: error: non-static variable this cannot be referenced from a static context m = new Mail("gmailusername@gmail.com","password"); ^ src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:125: error: cannot find symbol m.setTo(toArr); ^ symbol: method setTo(String[]) location: variable m of type GWDCPProceduresGlobales.Mail src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:126: error: cannot find symbol m.setFrom("wooo@wooo.com"); ^ symbol: method setFrom(String) location: variable m of type GWDCPProceduresGlobales.Mail src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:127: error: cannot find symbol m.setSubject("This is an email sent using my Mail JavaMail wrapper from an Android device."); ^ symbol: method setSubject(String) location: variable m of type GWDCPProceduresGlobales.Mail src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:128: error: cannot find symbol m.setBody("Email body."); ^ symbol: method setBody(String) location: variable m of type GWDCPProceduresGlobales.Mail src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:131: error: cannot find symbol m.addAttachment("/sdcard/filelocation"); ^ symbol: method addAttachment(String) location: variable m of type GWDCPProceduresGlobales.Mail src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:133: error: cannot find symbol if(m.send()) { ^ symbol: method send() location: variable m of type GWDCPProceduresGlobales.Mail src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:134: error: cannot find symbol Toast.makeText(MailApp.this, "Email was sent successfully.", Toast.LENGTH_LONG).show(); ^ symbol: class MailApp location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:134: error: cannot find symbol Toast.makeText(MailApp.this, "Email was sent successfully.", Toast.LENGTH_LONG).show(); ^ symbol: variable Toast location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:134: error: cannot find symbol Toast.makeText(MailApp.this, "Email was sent successfully.", Toast.LENGTH_LONG).show(); ^ symbol: variable Toast location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:136: error: cannot find symbol Toast.makeText(MailApp.this, "Email was not sent.", Toast.LENGTH_LONG).show(); ^ symbol: class MailApp location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:136: error: cannot find symbol Toast.makeText(MailApp.this, "Email was not sent.", Toast.LENGTH_LONG).show(); ^ symbol: variable Toast location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:136: error: cannot find symbol Toast.makeText(MailApp.this, "Email was not sent.", Toast.LENGTH_LONG).show(); ^ symbol: variable Toast location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:140: error: cannot find symbol Log.e("MailApp", "Could not send email", e); ^ symbol: variable Log location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:148: error: non-static variable this cannot be referenced from a static context this._subject = string; ^ src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:148: error: cannot find symbol this._subject = string; ^ symbol: variable _subject src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:152: error: non-static variable this cannot be referenced from a static context this._from = string; ^ src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:152: error: cannot find symbol this._from = string; ^ symbol: variable _from src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:157: error: non-static variable this cannot be referenced from a static context this._to = toArr; ^ src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:157: error: cannot find symbol this._to = toArr; ^ symbol: variable _to src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:162: error: non-static variable this cannot be referenced from a static context this._body = _body; ^ src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:162: error: cannot find symbol this._body = _body; ^ symbol: variable _body src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:166: error: cannot find symbol return _body; ^ symbol: variable _body location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:174: error: cannot find symbol props.put("mail.smtp.host", _host); ^ symbol: variable _host location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:176: error: cannot find symbol if(_debuggable) { ^ symbol: variable _debuggable location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:176: error: illegal start of type if(_debuggable) { ^ src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:180: error: cannot find symbol if(_auth) { ^ symbol: variable _auth location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:180: error: illegal start of type if(_auth) { ^ src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:184: error: cannot find symbol props.put("mail.smtp.port", _port); ^ symbol: variable _port location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:185: error: cannot find symbol props.put("mail.smtp.socketFactory.port", _sport); ^ symbol: variable _sport location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:194: error: non-static method _setProperties() cannot be referenced from a static context Properties props = _setProperties(); ^ src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:196: error: cannot find symbol if(!_user.equals("") && !_pass.equals("") && _to.length > 0 && !_from.equals("") && !_subject.equals("") && !_body.equals("")) { ^ symbol: variable _user location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:196: error: cannot find symbol if(!_user.equals("") && !_pass.equals("") && _to.length > 0 && !_from.equals("") && !_subject.equals("") && !_body.equals("")) { ^ symbol: variable _pass location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:196: error: cannot find symbol if(!_user.equals("") && !_pass.equals("") && _to.length > 0 && !_from.equals("") && !_subject.equals("") && !_body.equals("")) { ^ symbol: variable _to location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:196: error: cannot find symbol if(!_user.equals("") && !_pass.equals("") && _to.length > 0 && !_from.equals("") && !_subject.equals("") && !_body.equals("")) { ^ symbol: variable _from location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:196: error: cannot find symbol if(!_user.equals("") && !_pass.equals("") && _to.length > 0 && !_from.equals("") && !_subject.equals("") && !_body.equals("")) { ^ symbol: variable _subject location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:196: error: cannot find symbol if(!_user.equals("") && !_pass.equals("") && _to.length > 0 && !_from.equals("") && !_subject.equals("") && !_body.equals("")) { ^ symbol: variable _body location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:197: error: non-static variable this cannot be referenced from a static context Session session = Session.getInstance(props, this); ^ src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:201: error: cannot find symbol msg.setFrom(new InternetAddress(_from)); ^ symbol: variable _from location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:203: error: cannot find symbol InternetAddress[] addressTo = new InternetAddress[_to.length]; ^ symbol: variable _to location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:204: error: cannot find symbol for (int i = 0; i < _to.length; i++) { ^ symbol: variable _to location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:205: error: cannot find symbol addressTo[i] = new InternetAddress(_to[i]); ^ symbol: variable _to location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:209: error: cannot find symbol msg.setSubject(_subject); ^ symbol: variable _subject location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:214: error: cannot find symbol messageBodyPart.setText(_body); ^ symbol: variable _body location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:215: error: cannot find symbol _multipart.addBodyPart(messageBodyPart); ^ symbol: variable _multipart location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:218: error: cannot find symbol msg.setContent(_multipart); ^ symbol: variable _multipart location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:235: error: cannot find symbol _multipart.addBodyPart(messageBodyPart); ^ symbol: variable _multipart location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:238: error: cannot find symbol return new PasswordAuthentication(_user, _pass); ^ symbol: variable _user location: class GWDCPProceduresGlobales src\com\masociete\sendmail\wdgen\GWDCPProceduresGlobales.java:238: error: cannot find symbol return new PasswordAuthentication(_user, _pass); ^ symbol: variable _pass location: class GWDCPProceduresGlobales Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 49 errors |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 3 651 messages Popularité : +175 (223 votes) |
|
Posté le 04 août 2015 - 12:20 |
TESTEUR
Ouvrir une demande de soutien expert (payant). ou la cause webservice ... pour mettre en œuvre ce que vous dépensé est pas si simple ... mais il est possible avec leur aide. Je l'avais déjà essayé tout le reste était facile avec webservice et fonctionne parfaitement. |
| |
| |
| | | |
|
| | |
| |
Posté le 04 août 2015 - 16:19 |
Bonjour, Je cherche encore merci |
| |
| |
| | | |
|
| | |
| |
Posté le 04 août 2015 - 17:44 |
adrianoboller a écrit :
BONJOUR,
Create a webservice with mssql. enable DatabaseMail, create a stored procedure with parameters. create a method in webservice to use this stored procedure ... consums the webservice by WINDEV Mobile and pass the values to that method.
it works perfectly
Moi je travaile avec HF sql pour qoui je dois faire le service web avec MSSQL ? |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 3 651 messages Popularité : +175 (223 votes) |
|
Posté le 04 août 2015 - 17:48 |
Si je trouve quelque chose, je vous envoie ce que vous pensez ici, OK
|
| |
| |
| | | |
|
| | |
| |
Posté le 04 août 2015 - 18:19 |
Je veux essayer de créer un webservice windev qui envoi les messages email et après un autre pour les envois des sms
Dans ce webservice je n'ai pas besoin de l'analyse de mon projet Windev mobile ? Merci |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 34 messages Popularité : +0 (2 votes) |
|
Posté le 04 août 2015 - 18:46 |
Testeur a écrit :
Bonjour, tu l'as fais sans un webservice ? Tu peux me donner plus de détaille sur l'emplacement de la base de l'appciation mobile ?
Merci de ta réponse
Oui, sans webservice.
C'est tout bête, c'est un automate en windev qui fait une scrutation sur la BDD : - hOuvreConnexion sur le serveur de ma BDD (chez moi c'est une BDD HFSQL C/S hébergée, cela implique de toute façon avec ma méthode, que la BDD ne soit pas en local dans l'appli) - hOuvreAnalyse avec le .wdd de mon appli mobile
Et ensuite des "EXTERNE MON_FICHIER" placés dans le code, et c'est suffisant pour manipuler la BDD avec l'appli Windev, avec des requêtes.
Puis on balance les emails avec toutes les fonctions qui vont bien de windev |
| |
| |
| | | |
|
| | |