asp classic - embed google qrcode in email -
I have a code that sends an email with images embedded using the apple.
If the client does not automate the images, then the image will not be visible < / P> If I get an image from Google: https://chart.googleapis.com/chart?chs=150x150&cht=qr& ; Chl = http: //www.sitedomain.com&choe=UTF-8 and has been saved as a unique name under this specific folder & lt; Img & gt; - Therefore, I get a qrcode in the email
function SaveBinaryData (FileName, ByteArray) Const adTypeBinary = 1 const adSaveCreateOverWrite = 2 BinaryStream = CreateO Set bject ("ADODB.Stream") BinaryStream.Type = adTypeBinary BinaryStream.Open BinaryStream.Write Byte BinaryStream.SaveToFileFilename, set the adSaveCreateOverWrite termination function objHTTP = Server.CreateObject ("Msxml2.ServerXMLHTTP") 'grant access permissions Point to an image file with D objHTTP.open "GET", "https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=http://www.domian.com&choe=UTF- 8 ", Old objHTTP. Send 'feedback'. Binomial Type OBJHTP Response Body Savary Data (Server MapPath (".") & Amp; "\ Test.png", objHTTP.ResponseBody) Set Obz HTTP = None
Comments
Post a Comment