Python Outlook How to send reply email with different email account

Discussion in 'Python' started by heycooldude, Mar 26, 2014.

  1. heycooldude

    heycooldude

    Joined:
    Mar 26, 2014
    Messages:
    1
    Likes Received:
    0
    Hi,
    I want to send back reply to the same email but with different email account.
    Here is my script

    mail = outlook.Session.GetItemFromID(ID)
    subject = mail.Subject
    c = mail.Sender.Address
    if mail:
    message_reply = mail.Reply()
    message_reply.From='_from_email' # not working #
    message_reply.Body = "THE FOLLOWING TASK HAS BEEN MARKED AS COMPLETED: \n\n"
    message_reply.CC= '_CC_Email'
    message_reply.Send()

    I tried message_reply.From, message_reply.Sender.Address, mail.From but nothing is working. It is sending from my default email account.
    message_reply.CC, message_reply.Body is working.

    Can anyone help me out?
     
    heycooldude, Mar 26, 2014
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Frank
    Replies:
    0
    Views:
    581
    Frank
    Aug 14, 2006
  2. Towner
    Replies:
    18
    Views:
    1,275
    Vince Morgan
    Nov 8, 2006
  3. Anjan Bhowmik
    Replies:
    0
    Views:
    470
    Anjan Bhowmik
    May 16, 2008
  4. davidj411
    Replies:
    1
    Views:
    1,418
    Mike Driscoll
    May 27, 2008
  5. raviprakash976@gmail.com

    Why no one ,no reply for this query??please reply me

    raviprakash976@gmail.com, Dec 21, 2008, in forum: VHDL
    Replies:
    2
    Views:
    863
    raviprakash976@gmail.com
    Dec 24, 2008
  6. Akira
    Replies:
    0
    Views:
    472
    Akira
    Feb 21, 2005
  7. fniles
    Replies:
    22
    Views:
    6,171
    Michel Posseth [MCP]
    Apr 29, 2010
  8. Jack
    Replies:
    5
    Views:
    710
Loading...