Jump to content

_InetSmtpMail


 Share

Recommended Posts

  • Developers

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.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

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.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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

Link to comment
Share on other sites

  • Developers

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() ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • 4 years later...

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

Skysnake

Why is the snake in the sky?

Link to comment
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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...