Home > Archive > Clarion > July 2006 > Send HTML mail
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| jmaisterra@proint.com.mx 2006-07-10, 6:55 pm |
| Hi
I am trying to send a HTML message with the Document Send Extension en
CW6, using the following code:
!OpenWindow
eMail.DefaultServer = GLO:SMTPDefaultServer
eMail.DefaultPort = GLO:SMTPDefaultPort
eMail.Sender = clip(GLO:SMTPSenderAddress)
if clip(GLO:SMTPFromHeaderName) = '' then
eMail.From = '<<' & clip(GLO:SMTPFromHeaderAddress) & '>'
else
eMail.From = '"' & clip(GLO:SMTPFromHeaderName) & '" <<' &
clip(GLO:SMTPFromHeaderAddress) & '>'
end
eMail.SenderDomain = GLO:SMTPDomain
Addresses.AddRecipient(GLO:SMTPRecipientAddress,
GLO:SMTPRecipientName,SendTo,SMTP,)
Message.Description = GLO:SMTPSubject
Message.AddBodyFromFile('c:\t1.htm',Content:text,SubType:html,
QuotedPrintable.IEncoder)
if Message.Send()
SilentErrors.ViewHistory()
END
message.kill
post(Event:CloseWindow)
The message is send OK but the htm file t1.htm is not send with it.
Any ideas of what I am doing wrong?
Regards
Juan Maisterra
| |
|
|
jmaisterra@proint.com.mx wrote:
> Hi
>
> I am trying to send a HTML message with the Document Send Extension en
> CW6, using the following code:
>
> !OpenWindow
> eMail.DefaultServer = GLO:SMTPDefaultServer
> eMail.DefaultPort = GLO:SMTPDefaultPort
> eMail.Sender = clip(GLO:SMTPSenderAddress)
> if clip(GLO:SMTPFromHeaderName) = '' then
> eMail.From = '<<' & clip(GLO:SMTPFromHeaderAddress) & '>'
> else
> eMail.From = '"' & clip(GLO:SMTPFromHeaderName) & '" <<' &
> clip(GLO:SMTPFromHeaderAddress) & '>'
> end
> eMail.SenderDomain = GLO:SMTPDomain
> Addresses.AddRecipient(GLO:SMTPRecipientAddress,
> GLO:SMTPRecipientName,SendTo,SMTP,)
> Message.Description = GLO:SMTPSubject
> Message.AddBodyFromFile('c:\t1.htm',Content:text,SubType:html,
> QuotedPrintable.IEncoder)
>
> if Message.Send()
> SilentErrors.ViewHistory()
> END
> message.kill
> post(Event:CloseWindow)
>
> The message is send OK but the htm file t1.htm is not send with it.
>
> Any ideas of what I am doing wrong?
>
> Regards
> Juan Maisterra
Hi,
At Classic Website Templates you can find HTML Website templates,
Flash templates and banner designs which are useful in website
designing at affordable prices. All templates are attractive, easily
customizable, professionally designed and can be used for personal and
business website.
http://www.classicwebsitetemplates.org
thanks and regards,
syam kumar
|
|
|
|
|