Jump to content

Sending HTML Mails using INetSmtpMailCom Function


ugt100
 Share

Recommended Posts

Hi all,

maybe someone can help me with my issue/problem mentioned above.

Problem description:

I would like to send an email notification (if there is an error on our webserver / -shop) in html style instead of plain text.

(because this mail is also send to our CEO ....)

For sending this mail I use the UDF INetSmtpMailCom, which works fine.

As far as I understand the function it is possible to use html style too.

(If SringInStr($as_Body,"<") And SringInStr($as_Body,">") Then $objEmail.HTMLBody = $as_Body)

Now the question is how to set the $as_Body variable so it works ?

Do I need to attach the whole html code or must I create line by line ???

I do not have any idea ?

Thx in advance :graduated:

regards

Chris (ugt100)

Link to comment
Share on other sites

Hi all,

maybe someone can help me with my issue/problem mentioned above.

Problem description:

I would like to send an email notification (if there is an error on our webserver / -shop) in html style instead of plain text.

(because this mail is also send to our CEO ....)

For sending this mail I use the UDF INetSmtpMailCom, which works fine.

As far as I understand the function it is possible to use html style too.

(If SringInStr($as_Body,"<") And SringInStr($as_Body,">") Then $objEmail.HTMLBody = $as_Body)

Now the question is how to set the $as_Body variable so it works ?

Do I need to attach the whole html code or must I create line by line ???

I do not have any idea ?

Thx in advance :graduated:

regards

Chris (ugt100)

cant you just $as_body = FileRead("error.html")

?

did you try that?

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...