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

  • SEARCH
  • Home
  • 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 6720165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:10:48+00:00 2026-05-26T09:10:48+00:00

How do I specify smtp host on log4php I will be using it with

  • 0

How do I specify smtp host on log4php I will be using it with gmail using the following configurations.

smtp.gmail.com (use authentication)
Use Authentication: Yes
Port for TLS/STARTTLS: 587
Port for SSL: 465
  • 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-05-26T09:10:48+00:00Added an answer on May 26, 2026 at 9:10 am

    You don’t say what OS this relates to – On a Microsoft platform. log4php uses PHP’s mail command – but this is implemented differently on Microsoft (SMTP TCP client) compared with every other operating system (uses local binary program via stdio).

    The simplest way around this would be to modify the LoggerAppenderMail to use phpmailer or swift mailer in place of the php mail() command.

    But if you’d rather not tinker with the standard libs and have to maintain your own patchset, then you should set up a local MTA which can smart relay via SSL with authentication e.g. ssmtp or msmtp. Of course you can use a full blown MTA like postfix or sendmail if you really want.

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

Sidebar

Related Questions

I use mstmp to send mail from various smtp account. Using PHP's mail command
I specify these file address data/data/org.com.Cache/files/cacheImplementationOutput but I got the following error message..... java.io.IOException:
I have following ant mail task - <target name=sendtestreport > <mail mailhost=smtp.com mailport=1025 subject=Test
XAML allows you to specify an attribute value using a string that contains curly
Can some one specify the windows API, one need to use in order to
If I do not specify the following in my web.xml file: <session-config> <session-timeout>10</session-timeout> </session-config>
I can specify a port number with SmtpClient object in ASP.NET, what I am
Why there is from attribute of <smtp> element in <system.net><mailSettings>? How can i use
Can I specify an y offset in the url path when I use bookmarks
Using printf i could specify the precision value as an extra parameter using *.

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.