Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7853099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:34:55+00:00 2026-06-02T19:34:55+00:00

I have created page for mail template and set buttons for preview template also.

  • 0

I have created page for mail template and set buttons for preview template also.

I have set image path from my local machine like,

  src="/projectname/app/webroot/img/logo.JPG"

and when i preview that template it displays logo.

when using that template when i send mail image is not displayed in email.

So can anyone please tell me what could be the issuee or i am missing something like mime types?

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:34:56+00:00Added an answer on June 2, 2026 at 7:34 pm

    This won’t work. The email is opened in a client, what the hack would a path like “/projectname/app/webroot/img/logo.JPG” mean to that client? What is the domain?

    You can either add a domain to the SRC like src=”http://example.com/projectname/app/webroot/img/logo.JPG”. But this won’t be displayed by default, because it is a security risk.
    Imagine spammers including images like src=”http://example.com/feedback?id=12345″ to each email, where ID is identifying each e-mail address the mail is sent to. Each client downloading this image will acknowledge the receiving of this e-mail, letting the spammers know you are reading their spam. Most e-mail clients explicitly ask you whether images referred to in the mail should be downloaded or not.

    An alternative solution is to include each e-mail as an attachment to the e-mail, then you can refer to it as an “inline” image. This does no requires external connection and is less of a security risk, mostly allowed by default in clients.

    I’ve google up a component that supposedly supports also inlining, but you might find others as well:
    http://bakery.cakephp.org/articles/CraZyLeGs/2006/12/18/swiftmailer-component-tutorial

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a page with a static image positioned to the ride side
I have created one aspx Page from that i need to access the property
I have created a page on my site where users can post directly to
I have created login page forced login in several pages. Now i need to
So, I have created a page with 3 frames, top, left and right where
I have a List object, with nested Tasks. I have created a page that
I am working with sencha to build mobile app. I have created one page
I have created one preference page where there are stringfieldeditor. Whenever user give some
I have created a web page (ASP.NET) that includes a stylesheet to mimic Dynamics
I have created a html page in php and upon submission i validates that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.