Results 1 to 5 of 5

Thread: Outlook email via VBA in Access

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    2

    Outlook email via VBA in Access

    Hey there,

    I would like to know if there is a way that you can change the name/email address of who the email comes FROM before sending it by using VBA code? E.G. my email addy is [email protected], but when I send an email (using a proc. setup up in an access database) I want the "From:" to read as "Peter's Pickled Peppers Shop" and the email addy must be "[email protected]"....

    Any help you can provide will be very much appreciated.

    Fanx,

    Vince.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Outlook email via VBA in Access

    Welcome to the Forums.

    Well this is the issue. First its not allowed to create an app on the Forums that alias' email addresses as it could be used
    for spam or malicious acts.

    Probably the best solution is to actually get an email address and domain .com name. Its relativly inexpensive and
    when they want to reply to your ad it will go to a valid address so you can get the feedback.

    Maybe you could get pppsshops.com as a domain name and set up an address or [email protected]. It would
    look more professional too.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    2

    Re: Outlook email via VBA in Access

    Thanks for the advice. Much appreciated.

    The reason I asked is because I work for a debt collection agency, and we do bulk emailing to the debtors that we have on our books, and we now want to set it up that each individual collector can also email a debtor, but we want all the replies to go to one mailbox, and in order to do that we need the "From" to be from our legal departments email address, instead of the individual collectors email address.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Outlook email via VBA in Access

    Oh ok, then maybe something like a delegate is what your saying you may need? There is also Exchange scripting in case you want
    to just route the emails to each particular mailbox depending on some criteria.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: Outlook email via VBA in Access

    You can send debtors emails? Wouldn't that violate some privacy provision of some Fair Credit or Collection act? The email could be read by others at several points along the way. I'd think twice about this project.
    Tengo mas preguntas que contestas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width