Help sending email but removing signature via VBA

Status
Not open for further replies.

molonlabe

Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP
I have my primary email and then I can send from another (Alt email), but that alt email is not an account that is added to my outlook, but I can send/receive from it. Hope that makes sense. Since the alt email account is not added, then I can't set it to have a default signature. Therefore I use this code to open a template and change the sending from. Problem is that it still adds the default signature. Before I could alter the registry to stop this, but I can no longer access the registry. I need a way to open the template without adding my default signature. Can anyone help!?

Code:
'Opens Email Disclosure Template
Sub OpenEmailTemplate()
Dim oAccount As Outlook.Account


For Each oAccount In Application.Session.Accounts
   ' If oAccount = "testATtest.com" Then
Set temp = Application.CreateItemFromTemplate("file path here")
temp.SentOnBehalfOfName = "sendATtest.com"
temp.Subject = "PERSONAL AND CONFIDENTIAL COMMUNICATION"

temp.Display

'End If
Next
Set temp = Nothing
End Sub
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
If you can't access the registry to add the key and no one will add it for you, you'll need to delete the signature in the macro - Remove Email Signature from Message using VBA

if you are replacing the signature, you either need to use filesystem object or Redemption.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange

molonlabe

Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP
Hey Diane, thanks!

yes, i'd love to just delete the signature but anytime I've tried with VBA, it deletes the entire body of the email. The template is just a formatted message with headers and an image. Below is the frame. There is a bit of content in each box and an image in the top box. Not sure if that helps at all.

1526048724817.png
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Look in the message source code - is there a bookmark for the signature? It would be called "_MailAutoSig" - if not, then it will be harder to delete the signature, but could be done using regex or possible Replace function.
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
T Outlook using POP/SMTP connection recieving, but not sending email through Windows Live Account. Help? Using Outlook 6
S Email Help: Sending Outlook email from Excel VBA Outlook VBA and Custom Forms 6
P emails with attachments keep sending... HELP!!! Using Outlook 4
M I am having trouble sending my e-mails in Outlook 2007. I can receive them, but not send. My internet provider says they can't help me. What to do? Using Outlook 6
E HELP!! Task 'incoming.verizon.net - Sending and Receiving' reported error (0x8004060C) : 'Unknown Er Using Outlook 8
L POP3 and IMAP Sending emails - HELP Exchange Server Administration 6
J My Microsoft Office Outlook Outbox is not sending any emails. Can someone help me to activate the Outbox or help me fix the problem. Using Outlook 8
T need help w/ sending an e-mail -- outlook 2007 addin Outlook VBA and Custom Forms 2
R seperate read layout to design in outlook 2016..Help!! Outlook VBA and Custom Forms 3
O Help .. got lost ... installing Office like 2016 Using Outlook 5
A Arthur needs help with 2007 Outlook e-mail Using Outlook.com accounts in Outlook 3
R Help Revising VBA macro to delete email over different time span Outlook VBA and Custom Forms 0
Marc2019 Need help please! Cannot Setup my outlook email account on my Mac Outlook 2011 Using Outlook.com accounts in Outlook 2
L Attachment saving and tracking - PLEASE help! Outlook VBA and Custom Forms 5
I Help with dates in task list. Using Outlook 5
C need help setting up outlook first time Using Outlook 1
K To do bar help Using Outlook 8
S help with outlook scripting Outlook VBA and Custom Forms 4
J Help Please!!! Outlook 2016 - VBA Macro for replying with attachment in meeting invite Outlook VBA and Custom Forms 9
EmelineGueguen Help to understand the problem of work Using Outlook 1
N Outlook Forms Help Outlook VBA and Custom Forms 2
N Need help syncing contacts to iPhone X Using Outlook 8
S VBA Macro - Run-time error '424': object required - Help Please Outlook VBA and Custom Forms 3
broadbander Needing help with reply/reply all while keeping attachments and adding a new CC recipient. Outlook VBA and Custom Forms 5
J Help! My contacts have disappeared. Using Outlook 5
J HELP- Rule to auto strip prepend from external emails Using Outlook 0
J Help Needed With Multi-Step Login Email Address Using Outlook.com accounts in Outlook 1
G Bcc help - Preventing multiple forwards from a bcc'd distribution group Using Outlook 1
G [Help] Converting array to destination folder path Outlook VBA and Custom Forms 1
K Help.... Office Outlook 2016 Using Outlook 1
S Error using AddressEntry.GetContact - need help Outlook VBA and Custom Forms 2
D Help with code to move mail on receipt to another folder based on time received Outlook VBA and Custom Forms 2
EaglePI Outlook 2010 need help with rules Using Outlook 0
B HELP! Using Outlook 4
Jeff Davis Help fix my Outlook 2013? Using Outlook 28
M Winmail. dat - HELP Using Outlook 2
Diane Poremsky Help! My Contacts are being updated! New Slipstick.com Articles 0
B VBA Help Email that will save as draft and send as attachment Outlook VBA and Custom Forms 3
J Can Anyone Help?? Outlook VBA and Custom Forms 1
C Newbie needs help with Outlook Macro Outlook VBA and Custom Forms 3
B Need Help - Willing to pay Outlook VBA and Custom Forms 10
D help with Item/Inspector close event Outlook VBA and Custom Forms 1
G Looking for help with our Organization Forms Library Outlook VBA and Custom Forms 1
J Need Help with Contacts VBA Outlook VBA and Custom Forms 1
L Outlook 2002: HTML Emails Will Not Print: Please Help Using Outlook 0
H Need help setting up GetFolderPath-Makro with Vodafone IMAP Mail-Account Outlook VBA and Custom Forms 0
A newb outlook macro help Outlook VBA and Custom Forms 1
T Need help with finding/updating task Outlook VBA and Custom Forms 1
X Help with custom form which is very similar to Tasks Outlook VBA and Custom Forms 6
joflo copy contents from outlook to excell - please help. Using Outlook 4
Similar threads


















































Top