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 8227369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:06:29+00:00 2026-06-07T16:06:29+00:00

In linux environment, I want to connect to our company’s mail server and send

  • 0

In linux environment, I want to connect to our company’s mail server and send anonymous emails, it’s host address in 10.18.93.128, and port is 25.

I don’t know where to insert those information in code below, here gmail’s server is used, but I want to use our mail server:

import smtplib  
fromaddr = 'anyemail@anyaddressx.com'  
toaddrs  = 'recipient_email@mycompany.com'  
msg = 'Hello'  


# Credentials (if needed)  
username = 'yyyyy'  
password = 'xxxxx'  

# The actual mail send  
server = smtplib.SMTP('smtp.gmail.com:587')  
server.starttls()  
server.login(username,password)  
server.sendmail(fromaddr, toaddrs, msg)  
server.quit()  

My questions:

  1. Where do I enter our mail server’s host adress 10.18.93.128 and port
    above?
  2. Is it possible to send email using a non-existing email account? It
    means I will not log in to an account, just send anonymous emails.

Thanks
Best Regards

  • 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-07T16:06:32+00:00Added an answer on June 7, 2026 at 4:06 pm

    Just replace the smtp.gmail.com:587 part:

    server = smtplib.SMTP('10.18.93.128:25')
    

    You may have to omit the starttls() call depending on the configuration of your company email server.

    It also depends on your email server whether or not it’ll allow sending without logging in. The SMTP standard does not demand you log in, but company policy may.

    Note that just because you have to log in to the mail server, you may still be able to send email using whatever from address you choose. Enforcing limitations on the from address is another policy decision a mail server can make.

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

Sidebar

Related Questions

I am trying to connect a https server running in Tibco in linux environment.
In Linux environment, I want to create a file and write text into it:
I want to learn to program in a UNIX/Linux environment. I'll be using the
As I know, if I want to use pthread library in linux environment I
I want to build a new desktop environment for linux like KDE or GNOME,
I'm planning to build Linux web development server in virtual machine environment on Windows
For instructional purposes, I want to set up a database in a Linux environment,
I want to implement POSIX compliant microthreads in Linux environment. Basic idea is as
In a Jailed Linux environment, I want to get the list of file descriptors
Using Linux environment with java,I'm having the config file which should be configured before

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.