Dear sir,
i would like to bring into your kind info dt i hve desires to embeb image or HTML in text body, & i hope that you will be me in this regard our coding are as below.
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.HTMLBody="<HTML><BODY><Img src="images/BBaner.jpg"></img></body></html>
JMail.ServerAddress = "127.0.0.1:25"
JMail.Sender = "apceap@brain.net.pk"
JMail.Subject = "Sign-up acknowledgement....."
JMail.AddRecipient emaila
JMail.AddRecipientCC( "apceap@brain.net.pk" )
mailto.BodyFormat = 0
mailto.MailFormat = 0
JMail.Priority = 3
JMail.Execute
Thanking you
KALEEM ULLAH
7 4987
Hello sheikh11,
Try this: -
JMail.HTMLBody="<img src='http://www.YourWebsite.com/images/BBaner.jpg'>"
-
Hope this helped~
Respected Sir,
Thanks for your earliest response in this regard and to tell you that i have try you valued code , but not working sir,
our true functing code are as below for your information i hve desires to send our members by email our apcea top title of the site as inline image in text body.
<%
dim username, password, emaila, msg, msg2, I, name,a1,b2,c3
username=Session("Username")
Password=Session("Password")
name=Session("Name")
emaila=Session("email")
if emaila="" then
Response.Redirect("Forgot_Password_EmailError.asp" )
else
response.write(username)
response.write(password)
I=I+1
--------------------------------------------------------------------------------------------------
Simply i add topic title of the picture here
-------------------------------------------------------------------------------------------------
a1="Dear"
msg="Welcome to gems.com.pk,here are your account details, you are able to login for updates , to log into your gems account, detail are as below :-"
b2="Best of luck with your career! If you have any feedback or questions , please email us at apceap@brain.net.pk"
msg2="Best Regards,"
Dim Body
Body = Body & "Dear ," & name & vbCrLf
Body = Body & " "& vbCrLf
Body = Body & Msg & vbCrLf
Body = Body & " "& vbCrLf
Body = Body & "Username :" & username & vbCrLf
Body = Body & "Password :" & password & vbCrLf
Body = Body & " "& vbCrLf
Body = Body & " "& vbCrLf
Body = Body & "Member's login "& vbCrLf
Body = Body & "http://www.gems.com.pk/Member_Login.asp"& vbCrLf
Body = Body & " "& vbCrLf
Body = Body & " "& vbCrLf
Body = Body & "Change Password :-" & vbCrLf
Body = Body & "http://www.gems.com.pk/Change_Member_Password.asp"& vbCrLf
Body = Body & " "& vbCrLf
Body = Body & b2 & vbCrLf
Body = Body & " "& vbCrLf
Body = Body & " "& vbCrLf
Body = Body & msg2 & vbCrLf
Body = Body & "APCEA" & vbCrLf
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "127.0.0.1:25"
JMail.Sender = "apceap@brain.net.pk"
JMail.Subject = "Sign-up acknowledgement....."
JMail.AddRecipient emaila
JMail.AddRecipientCC( "apceap@brain.net.pk" )
JMail.Body = Body
JMail.Execute
'JMail.Nothing
session("email90")=emaila
Response.Redirect("Send_Member_information_2007.as p")
End if
%>
Please do it needful i shall be very thankful to you in this regards.
Helll sheikh11,
Please look at lines (14, 24, 53).
Hope this helps~ -
<%
-
dim username, password, emaila, msg, msg2, I, name,a1,b2,c3
-
username=Session("Username")
-
Password=Session("Password")
-
name=Session("Name")
-
emaila=Session("email")
-
if emaila="" then
-
Response.Redirect("Forgot_Password_EmailError.asp")
-
else
-
response.write(username)
-
response.write(password)
-
I=I+1
-
-
xpicture = "<img src='http://www.YourWebsite.com/images/BBaner.jpg'>"
-
-
a1="Dear"
-
msg="Welcome to gems.com.pk,here are your account details, you are able to login for updates , to log into your gems account, detail are as below :-"
-
-
b2="Best of luck with your career! If you have any feedback or questions , please email us at apceap@brain.net.pk"
-
-
msg2="Best Regards,"
-
Dim Body
-
-
Body = xpicture & vbCrLf
-
-
Body = Body & "Dear ," & name & vbCrLf
-
-
Body = Body & " "& vbCrLf
-
Body = Body & Msg & vbCrLf
-
-
Body = Body & " "& vbCrLf
-
Body = Body & "Username :" & username & vbCrLf
-
Body = Body & "Password :" & password & vbCrLf
-
Body = Body & " "& vbCrLf
-
Body = Body & " "& vbCrLf
-
Body = Body & "Member's login "& vbCrLf
-
Body = Body & "http://www.gems.com.pk/Member_Login.asp"& vbCrLf
-
Body = Body & " "& vbCrLf
-
Body = Body & " "& vbCrLf
-
-
Body = Body & "Change Password :-" & vbCrLf
-
Body = Body & "http://www.gems.com.pk/Change_Member_Password.asp"& vbCrLf
-
Body = Body & " "& vbCrLf
-
Body = Body & b2 & vbCrLf
-
-
Body = Body & " "& vbCrLf
-
Body = Body & " "& vbCrLf
-
Body = Body & msg2 & vbCrLf
-
Body = Body & "APCEA" & vbCrLf
-
-
-
Set JMail = Server.CreateObject("JMail.SMTPMail")
-
JMail.BodyFormat = MailFormat.Html
-
JMail.ServerAddress = "127.0.0.1:25"
-
JMail.Sender = "apceap@brain.net.pk"
-
JMail.Subject = "Sign-up acknowledgement....."
-
JMail.AddRecipient emaila
-
JMail.AddRecipientCC( "apceap@brain.net.pk" )
-
JMail.Body = Body
-
JMail.Execute
-
'JMail.Nothing
-
session("email90")=emaila
-
Response.Redirect("Send_Member_information_2007.asp")
-
End if
-
-
%>
-
-
Thnks for earliest respone in this regards sir, i hve try your Code once agian but not working , this error are display
There is a problem with the page you are trying to reach and it cannot be displayed.
once again our code are as below:
<%
dim username, password, emaila, msg, msg2, I, name,a1,b2,c3
username=Session("Username")
Password=Session("Password")
name=Session("Name")
emaila=Session("email")
if emaila="" then
Response.Redirect("Forgot_Password_EmailError.asp" )
else
response.write(username)
response.write(password)
I=I+1
xpicture = "<img src='http://www.gems.com.pk/images/BBaner.jpg'>"
a1="Dear"
msg="Welcome to gems.com.pk,here are your account details, you are able to login for updates , to log into your gems account, detail are as below :-"
b2="Best of luck with your career! If you have any feedback or questions , please email us at apceap@brain.net.pk"
msg2="Best Regards,"
Dim Body
Body = xpicture & vbCrLf
Body = Body & "Dear ," & name & vbCrLf
Body = Body & " "& vbCrLf
Body = Body & Msg & vbCrLf
Body = Body & " "& vbCrLf
Body = Body & "Username :" & username & vbCrLf
Body = Body & "Password :" & password & vbCrLf
Body = Body & " "& vbCrLf
Body = Body & " "& vbCrLf
Body = Body & "Member's login "& vbCrLf
Body = Body & "http://www.gems.com.pk/Member_Login.asp"& vbCrLf
Body = Body & " "& vbCrLf
Body = Body & " "& vbCrLf
Body = Body & "Change Password :-" & vbCrLf
Body = Body & "http://www.gems.com.pk/Change_Member_Password.asp"& vbCrLf
Body = Body & " "& vbCrLf
Body = Body & b2 & vbCrLf
Body = Body & " "& vbCrLf
Body = Body & " "& vbCrLf
Body = Body & msg2 & vbCrLf
Body = Body & "APCEA" & vbCrLf
Set JMail = Server.CreateObject("JMail.SMTPMail"
JMail.BodyFormat = MailFormat.Html
JMail.ServerAddress = "127.0.0.1:25"
JMail.Sender = "apceap@brain.net.pk"
JMail.Subject = "Sign-up acknowledgement....."
JMail.AddRecipient emaila
JMail.AddRecipientCC( "apceap@brain.net.pk" )
JMail.Body = Body
JMail.Execute
'JMail.Nothing
session("email90")=emaila
Response.Redirect("Send_Member_information_2007.as p")
End if
%>
Please sir do it needful i shall be very thankful to you.
THANKS
I think the problem might be :Response.Redirect("Send_Member_information_2007.a sp")
Can you verify that the file "Send_Member_information_2007.asp" is in the same folder that this page is in and that page has no errors within it.
Thanks~
Thanks alote respected sir ,
i hve try your valuable code but not working i am so confused that why is not working,
sir , i requested to you in this regard please kindly send me such code that only simply i send the top title of the website .
i means
send email
recipt email
simple picture embed from our website as a inline image in text body
our website name is www.gems.com.pk/images/BBaner.jpg
i shall be very thankful to you in this regards.
Thanking you
Kaleem Ullah
Hello sheikh11,
I am not familiar with using “JMail” as my mail object. But from a quick google I found this site that should help out with your problem: http://www.webwizguide.com/kb/asp_tu...l_tutorial.asp
I exclusively use “Persits” for my mail object and sometimes “CDO” too. If you can give a look at Persits’s website http://www.aspemail.com it’s free.
Hope that site helps~
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Siv |
last post by:
Hi,
I have written an application which is used by sales staff when discussing
products with their customers over the phone. It is a database application
that holds detailed information about...
|
by: snicks |
last post by:
I have a series of XLS files which I need to embed into a PowerPoint
presentation on an IIS server. I’ll be using VB.NET. I’ve tried using an
ASPOSE.PowerPoint control to do this and it does...
|
by: Manuel |
last post by:
Is it possible to embed an image, like a company logo in a CDOSYS generated
message?
If yes, I´ll apreciate some code sample. I´ve been able to format messages
in html the way I like, but I...
|
by: qualitychecker |
last post by:
Hello thanks for your help..
I try to reference a PHP module from within a HTML file, see below
----------------------------------------
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">...
|
by: Rob |
last post by:
Hello,
I'm sure this has come up before. I have need for a collection of all
elements/objects in an HTML document that have any kind of an
attribute (HTML or CSS) that is making use of a URL to...
|
by: ginahong |
last post by:
Hi,
I'm new with perl. I'm writting a perl script to read a text file to email the contract managers to warn them there are some contracts with High risks waiting for them to view.
The text file...
|
by: =?Utf-8?B?TWFyazEyMw==?= |
last post by:
I have two pieces of VB.NET code below:
a) Sends an email
b) Returns a programmatically created jpeg image to a webpage.
How can I embed the programmatically created jpeg into an HTML...
|
by: raamay |
last post by:
I am trying to embed company logo (image) in an html email which i am sending using PHP mail function. I tried the following way but didnt work. So, I am not sure how to go about. Please see my code...
|
by: pbala |
last post by:
How to insert a image in message body and send it to Outlook express using SMTP?
I used this code to attach a image file, i want to Embed the images in message..
public void SendMail(string...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |