FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
Enviar email en proyecto WebDev PHP 18
Enviar email en proyecto WebDev PHP 18
Débuté par Alfredo García, 25 oct. 2014 04:16 - 1 réponse
Connectez-vous…
Alfredo García
#1
Posté le 25 octobre 2014 - 04:16
Buenas noches a todos. Quiero enviar un correo en un proyecto WebDev PHP, 18. Tengo el código:
Email.NbRecipient = 1
Email.Recipient[1] = EDT_Email
Email.Sender = "alfredojose_120@yahoo.es"
Email.Subject = "archivo enviado " + sNombreArchivo
Email.Message = "Email enviado"
Email.Attach = sArchivo
IF EmailSendMessage() = True THEN
STC_EmailEnviado = "Se envío el email con éxito"
STC_EmailEnviado..Color = DarkBlue
ELSE
STC_EmailEnviado = "No se pudo enviar el email"
STC_EmailEnviado..Color = DarkRed
STC_Error = ErrorInfo(errMessage) + CR + ErrorInfo(errFullDetails)
END
y me da el error:
Unable to send the email. Check the SMTP configuration of the PHP server in the php.ini file (SMTP, sendmail_from, sendmail_path)
Puse la aplicación en mi hospedaje web: en
http://www.alferis.com/attach/index.php
Signaler
0
0
jbistuer
#2
Membre enregistré
19 messages
Posté le 01 août 2015 - 17:53
Hola Alfredo,
permítee un comentario i una pregunta acerca de tu post.
Comentario: este error te lo da cuando lo pruebas en modo test, es decir, desde dentro de WB?. Por mi corta experiencia, desde tu PC no puedes enviar correos SMTP a no ser que instales un servidor para ello. En el fichero PHP.INI hay una variable SMTP donde debes darle el nombre e tu servidor SMTP, si no tengo mal entendido.
Pregunta: yo utilizo elmismo código que tu pero a mi me el error (EmailSendMessage() en version inglesa)
Aucune syntaxe de 'EmailEnvoieMessage' ne correspond à l'appel.
y no tengo ni idea del motivo ni como solucionarlo.
Me puedes orientar al respecto?
Muchas gracias.
Jordi
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte