ugt100 Posted November 8, 2010 Share Posted November 8, 2010 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 regardsChris (ugt100) Link to comment Share on other sites More sharing options...
supadodger Posted November 8, 2010 Share Posted November 8, 2010 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 regardsChris (ugt100)cant you just $as_body = FileRead("error.html")?did you try that? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now