cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with image path

Former Member
0 Kudos

Hi All,

I have developed a Web Dynpro application through which a mail needs to be sent to the user. The mail is supposed to have html content. The html content should contain a image. I am unable to figure out where to place the image in the Web Dynpro project and what should be path.

Plz let me know your inputs.

Regards

Nikhil Bansal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You should place the image inside your project folder. Inside that go to src>mimes>components>your package. here you have to paste your images.

thanks & regards,

Manoj

Former Member
0 Kudos

Hi Manoj,

I guess you did not understand my ques.

I am writing html code in one method in custom controller. This method will send mail to a user.

Now this method contains the html code

<html>

<head>

<body>

<table>

<tr><td><img src=>

Now I want to include an image over here and not in the Image property of any view.

Let me know where should I place the image and what should be the path.

Regards

Nikhil

Former Member
0 Kudos

Hi ,

I guess you did not understand my ques. I am writing html code in one method in custom controller. This method will send mail to a user. Now this method contains the html code <html> <head> <body> <table> <tr><td> Now I want to include an image over here and not in the Image property of any view. Let me know where should I place the image and what should be the path.

Regards

Nikhil

Former Member
0 Kudos

The receiver of the e-mail must be able to load the image URL. Therefore you have to put the image onto some web server that is accessible by the receiver and set the image source property to this URL.

Armin

Former Member
0 Kudos

Hi Armin,

Yes I got you.

However, I am unale to figure out how to achieve this.

The mail is being sent from a Web dynpro application to the SMTP Server which delivers it to the user.

Now do I need to place the image on the mail server or somewhere else.

Shall be grateful if you can throw some more light on this.

Regards

Nikhil

Former Member
0 Kudos

Other possibility is to send HTML e-mail with inline images and use a reference the attached images in the Image UI element.

Armin

Former Member
0 Kudos

Hi Armin,

Any idea how to do this. I mean the other approach suggested by you.

Regards

Nikhil

Former Member
0 Kudos

Hi,

The issue got solved.

I placed the images in a folder on mky PC and shared the folder. Gave the full path in image tag and it worked.

Thanks for your inputs.

FPTY.

Nikhil

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Switch to Navigator view

Expand the project structure

Place your image under the folder src>mimes>components.

and access it just by specifying the name.

Ex: If your image name is "test.gif".

access it as "test.gif" with out any additional path.

Regards

Ayyapparaj