I know the code for sending mail is.

import smtplib  
      
    fromaddr = 'fromuser@gmail.com'  
    toaddrs  = 'touser@gmail.com'  
    msg = 'There was a terrible error that occured and I wanted you to know!'  
      
   # The actual mail send  
   server = smtplib.SMTP('smtp.gmail.com:587')  
   server.starttls()  
   server.login(username,password)  
   server.sendmail(fromaddr, toaddrs, msg)  
   server.quit()

Basically its a program that allows people to send messages to phones via texts from your computer for free. So i won't know any of their stmp data

how can I find it out?

Thanks!

Recommended Answers

All 3 Replies

Give one use case input, result from your program.
What user wants?

commented: Does not answer the question or make sense +0

Sorry my terse question, but I was sending it from mobile phone and had to try to be terse.

I can not get any clue to help the poster if I do not know about the design of the program more, whole pseudo code maybe and at least one use case to understand what is the goal of the program.

[LIST=2]
[*] text message to SMS gateway?
Why is the program trying to send Email then?
[*]email client for mobile phone?
Where is the need?
[/LIST]

It's using the email address most service providers provide to send texts from an email accounts.(phonenumber@service.com)

My program asks the user for recipients number/service provider plugs it into the email(above) then prompts the user for the message and sends it.

If you have a better way to send texts like the sms gateway. I'll take any ideas, this way the only way I knew how to do this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.