Pregunta: | 32819 - MAILTO CON FICHERO ADJUNTO |
Autor: | Airun Sanchez |
Necesito crear un vínculo en mi página que envíe un mail con un fichero adjunto a una dirección (El fichero estará en la máquina cliente). Hasta ahora sólo sé enviar con:
<A href="mailto:[email protected]?subject=loquesea&Body=Textodelcuerpodel mensaje">Mail me</A> ¿Alguien sabe cómo hacer para adjuntar un fichero al mensaje? Muchas gracias, Programadores. |
Respuesta: | s s |
Te mando como utilizar el objeto mysmartmail:
On error resume next Dim mySmartMail Set mySmartMail = Server.CreateObject("aspSmartMail.SmartMail") mySmartMail.Server ="el servidor de correo" mySmartMail.ContentType = "text/html" mySmartMail.SenderAddress = "[email protected]" mySmartMail.Recipients.Add Recipient mySmartMail.Attachments.Add ruta_del_archivo_adjuntado mySmartMail.Subject = "asunto" mySmartMail.Body = " cuerpo_del_correo" mySmartMail.SendMail mySmartMail.close set mySmartMail = nothing |