Jump to content
Sign in to follow this  
LOULOU

_InetSmtpMail

Recommended Posts

Is it possible to send html mail with this function ?

And to have multipart for HTML Mailer and for Text Mailer ?

Best regards

Share this post


Link to post
Share on other sites

Is it possible to send html mail with this function ?

And to have multipart for HTML Mailer and for Text Mailer ?

Best regards

You will have to translate the html "text" being sent into the needed format yourself if thats what you want.

I have posted the _InetSmtpMailCom() UDF in S&S which does that by just feeding it with the HTML code.

Share this post


Link to post
Share on other sites

All emails are sent in HTML format. "Hello" and "<html><body>Hello</body></html>" are the same.

Don't think this is correct. Most EMail clients have an option to sent in Text or HTML.

Share this post


Link to post
Share on other sites

Don't think this is correct. Most EMail clients have an option to sent in Text or HTML.

In fact here is what i want to do :

'Content-Type: multipart/alternative;

boundary="----=_NextPart_000_000A_01C6A396.0B0D9820"' & @CRLF & _

"------=_NextPart_000_000A_01C6A396.0B0D9820" & @CRLF & _

'Content-Type: text/plain;charset="iso-8859-1"' & @CRLF & _

"Content-Transfer-Encoding: quoted-printable" & @CRLF & _

Here the text in plain format

"------=_NextPart_000_000A_01C6A396.0B0D9820" & @CRLF & _

'Content-Type: text/html;charset="iso-8859-1"' & @CRLF & _

'Content-Transfer-Encoding: quoted-printable' & @CRLF & _

And here the text in html format

"------=_NextPart_000_000A_01C6A396.0B0D9820--" & @CRLF & _

@CRLF

Share this post


Link to post
Share on other sites

When you don't use any HTML block tags, the message is smaller. If you need to use HTML blocks, then it will get a little bigger. If you don't use any code, then the application won't worry about rendering any HTML.

Share this post


Link to post
Share on other sites

In fact what i want to do is to send an email in multipart/alternative with _InetSmtpMail.

Is someone Know how to do ?

Share this post


Link to post
Share on other sites

In fact what i want to do is to send an email in multipart/alternative with _InetSmtpMail.

Is someone Know how to do ?

Did you try the _InetSmtpMailCom() ?

Share this post


Link to post
Share on other sites

Did you try the _InetSmtpMailCom() ?

No I will try it this evening and after i will respond it.

Thanks for your quick answer

Share this post


Link to post
Share on other sites

Hi - slightly off topic, but sticking to mail - is there an 'off line smtp simulator' available? I want to test sending email while off line - is there an engine like this available? WinXP+ platforms...

Thanks

Carl

skysnake

Just open a TCP port on your local machine and print the output of it to console. You'll have plenty opportunity to see the output of your program and verify manually if it was what you expected.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...