Sign in to follow this  
Followers 0
ugt100

Sending HTML Mails using INetSmtpMailCom Function

2 posts in this topic

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)

Share this post


Link to post
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?

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  
Followers 0