PLUGINS NEOBOOK - Forum

Forum Navigation
You need to log in to create posts and topics.

PLUGINS NEOBOOK

Bonjour,

Je recherche le plugins : NeoSendMail (pour neobook). Impossible de le retrouver.

Si vous avez des infos, merci de les faire partager.

Bonne journée.

 

Hello, this is an function library for send email over Vbs

**  Before to send data into call function... need covert the extrange symbols like double quotation marks, and escape the colons by doubling them ej : -> ::

Example to use

.Se envia por correo electronico
.Se genera el cuerpo del mensaje
SetVar "[@ VENTAS-Informe cuerpo temp]" "Informe de ventas mensual del [dateshort]"
.Se pasan unos datos a formato VBScript
StrReplace "[@ ADMINISTRACION-Nombre del comercio]" "[#34]" "'" "[@ ADMINISTRACION-Nombre del comercio VBs]" ""

.SENDING
Call "enviar_email.SSF" "smtp-vps.simplesoft.com.ar ---HOST SMTP---" "465" "True" "informes@simplesoft.com.ar --SENDER MAILBOX--" "---PASSWORD---" "destination_email@gmail.com --DESTINATION EMAIL--" "Informe de ventas [@ ADMINISTRACION-Nombre del comercio VBs]" "[Pubdir]Temporal\Informe ventas.xls" "[@ VENTAS-Informe cuerpo temp]"

Greetings from Argentina!

Copy this in te txt file and save as send_mail.SSF ... place this in C:\Program Files (x86)\VisualNeoWin\Functions

------------------------------------------------------- copy bottom ------------------------------------------------

{NeoBook Function}
Version=5,80
Language=VBScript
Param=[NB VAR SMTP]|Text|Smtp server. Ej: smtp.hostinger.com
Param=[NB VAR PORT]|Number|Port. Ej: 465
Param=[NB VAR SSL]|Text|Uses SSL. Ej: True False
Param=[NB VAR USERNAME]|Text|User name & from. Ej: myaccount@mysite.com.ar
Param=[NB VAR PASS]|Text|Password:
Param=[NB VAR TO]|Text|Destination. Ej: destinationemail@gmail.com
Param=[NB VAR SUBJECT]|Text|Asunto / Subject.
Param=[NB VAR ADJUNTO]|FileName|Archivo adjunto / 1 Attachment file: Ej: E:\test.xls (Opcional)
Param=[NB VAR BODY]|Text|Cuerpo / Body (HTML):
{End}
Dim ObjSendMail
Set ObjSendMail = CreateObject("CDO.Message")

'This section provides the configuration information for the remote SMTP server.

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="[NB VAR SMTP]"
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = [NB VAR PORT]
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = [NB VAR SSL] 'Use SSL for the connection (True or False)
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 3600

' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="[NB VAR USERNAME]"
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="[NB VAR PASS]"

ObjSendMail.Configuration.Fields.Update

'End remote SMTP server configuration section==

ObjSendMail.To = "[NB VAR TO]"
ObjSendMail.Subject = "[NB VAR SUBJECT]"
ObjSendMail.From = "[NB VAR USERNAME]"
if "[NB VAR ADJUNTO]" = "" then
Else
objSendMail.AddAttachment "[NB VAR ADJUNTO]" 'Don't use = after AddAttachment, just provide the path
'objSendMail.AddAttachment "E:\Productos.mdb" 'Don't use = after AddAttachment, just provide the path
End if

'ObjSendMail.HTMLBody = "this is the body"
ObjSendMail.TextBody = "[NB VAR BODY]"

ObjSendMail.Send

Set ObjSendMail = Nothing

luishp has reacted to this post.
luishp