Add a from email statement so it appears in the From of the email
I want to add a ".From" in my Excel VBA application but it is not supported.
How do I add a from email statement so it appears in the From of the email?
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.From = "[email protected]"
.To = "nameto2@email,com" .Subject = "We have moved!!!"
.HTMLBody = "<html><body bgcolor='#999955'>text</body></html>"
.Display
'.Send
End With
Set OutMail = Nothing
Set OutApp = Nothing
The Sender-related properties don't make any sense for new emails. For a full list of MailItem properties take a look at the
MailItem class in MSDN.
It looks like you are interested in the SendUsingAccount property of the MailItem class which allows to set
an Account object
that represents the account under which the MailItem is
to be sent.
Sub SendUsingAccount()
Dim oAccount As Outlook.account
For Each oAccount In Application.Session.Accounts
If oAccount.AccountType = olPop3 Then
Dim oMail As Outlook.MailItem
Set oMail = Application.CreateItem(olMailItem)
oMail.Subject = "Sent using POP3 Account"
oMail.Recipients.Add ("[email protected]")
oMail.Recipients.ResolveAll
oMail.SendUsingAccount = oAccount
oMail.Send
End If
Next
End Sub
Similar Messages
-
Please help.
8675-30-9 wrote:
Hello, and thanks for your assistance. however, I do not have that particular menu visible on my screen, I have only the half shaded box in the upper left of the screen and it does not appear in there when I click on it? Any way to get the menu you are showing to appear on my program? Is there a setting somewhere I am missing?
Click the half-shaded box, and choose "Show Menu Bar."
That will enable the menu with File, Edit, View, etc. Then you can proceed as above. -
How can I get my phone to get and send emails on my msn accounts? They appear on the list of emails when I click on the icon but they do not work. They useed towork fine. If I try to add an account it says Domain. Then acct name and password. I have tried lots of domain names but all it say is "Can not connect". Any ideas?
Hello riopeltravel, let's solve this mystery! What make & model phone do you have? Also, have you tried deleting the email account off of the phone and re-adding with the username and password? How long have the email accounts stopped working? Keep us posted!
WiltonA_VZW
VZW Support
Follow us on twitter @VZWSupport -
When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified because it is already in use ??? What am I doing wrong?
settings -> iTunes & App Store
click on apple ID listed there
select Sign Out
sign in with the proper account
from then on, when the store ask for your password it should be with the correct ID -
In mail how do I get the latest emails to appear at the top of the column automatically. At the moment I have to scroll up from the bottom oldest entires to find my latest mail arrivals
What device are you using?
I assume you are talking about something other than the iPad?
Is there a sort order above the date column? Clicking on this can switch between Ascending and Descending order. -
I add my comcast email to the mail on a iMac running Maverick. It downloads all my emails from there. How do i get my email to delete of the the server
Go to Mail Preferences>Accounts, click the '+' button below the list of accounts and insert the settings, username and password as instructed. Some account types can be set up automatically as soon as Mail knows the emails address (because the server settings are built in), in other cases you will have to get them from your ISP.
-
I upgraded to Firefox 4.0 and my "Hide Unvisited" add-on no longer works. is there a compatible replacement? This hides pages that have been bookmarked from appearing in the Awesome Bar since deleting or clearing cookies. I was hoping maybe there was an option for this in Firefox itself but I don't see one. Please help.
I upgraded to Firefox 4.0 and my "Hide Unvisited" add-on no longer works. is there a compatible replacement? This hides pages that have been bookmarked from appearing in the Awesome Bar since deleting or clearing cookies. I was hoping maybe there was an option for this in Firefox itself but I don't see one. Please help.
-
when I send emails, my friends told me my name doesn't appear in the "from" column. How do I solve this problem?
Badunit, thanks for your reply. I just went into Mail/Preferences/Accounts, "full name" field is filled correctly with my name. This happens to only certain recipients, and not every emails. Sometimes my name shows and sometime it doesn't show. And this only started to occur recently.
-
Ever since my last update I have been unable to add songs from my i tunes library onto my i phone. The "add to" button does not appear for me when I connect my i phone. Can anyone shed some light on this for me?
Thanks for that 'sberman' - because my iPhone is backed-up to my work computer (only at this stage) I have had to call our IT Department in Adleaide. (4 times this morning). The last guy managed to get the phone into 'DFU Mode' - no more recovery mode screen - (kind of 'asleep' perhaps) from my understanding of same. I am awaiting a call again from IT so they can get my computer to actually recognise my iPhone on the C Drive. This also happened to one of my colleagues in Newman (WA). She got so frustrated with the whole process that she bought another phone the next time she was in 'civilisation.' She hasn't had any problems since. (Cross fingers).
Thanks again, Sandra2474. -
why can't I sign into my account and add a rescue email so I will be able to redo my security questions? I have been unable to buy anything from Itunes because it's asks me for security questions that I don't remember what I put in the first place
1. Because if you could, someone who breaks into your account could do it as well.
2. You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
(96882) -
Hopefully someone can help me with my question. When I try to add photos from PhotoStream into my iPhoto Library a message appears asking to view the photo in the library (as if it were already imported). When I click View it brings me to my iPhoto library but the photo(s) are not there?
When I try to add photos from PhotoStream into my iPhoto Library a message appears asking to view the photo in the library (as if it were already imported).
How exacly are you trying to import from the Photo Stream? Dragging from the stream to the events? Ctrl-clicking or right clicking?
If "Show in Library" does not show the event, then your iPhoto Library may need repairing or rebuilding; try to run the iPhoto Library First Aid Tools, if you have not already done so. See this post by Old Toad on how to do it: Rebuild iPhoto Library Version 11:
Regards
Léonie -
Emails that I send from my iMac do not appear in the icloud sent box.
Emails that I send from my iMac do not appear in the icloud sent box. Is it possible to have the sent folders in synch between my imac and the icloud? Thanks for any help.
You can check the form history settings.
*Tools > Options > Privacy > History: "Remember search and form history"
*https://support.mozilla.org/kb/Form+autocomplete
The website may be using autocomplete=off in that field to prevent Firefox from saving and filling that data.
You can remove autocomplete=off with a bookmarklet to make Firefox save form data.
*http://kb.mozillazine.org/User_name_and_password_not_remembered -
iPhoto - When I add new photos to iPhoto from my iMac they do not appear in the "Photos" library. They do appear in Last Import. Any thoughts?
If you are seeing your photos in "Last Import", the photos are somewhere in your library. Perhaps the dates are wrong, and you do not see the photos arranged by date, where you expect them to be.
Select one of the photos on "Last Import", then ctrl-click it and select "Show in Event". That will take you to the event in event view. -
I have removed the old Java Updates (17/19/21) from my Program and Features list(Win7). They still appear in the Tools>Add-ons>Extensions list. How do I remove them?
In both SAFE and Regular browser windows, the UNINSTALL button is grayed out.
I have tried in SAFE MODE, as well as the Help>troubleshooting Information>Application Basics>Profile Directory>Open Containing Folder,,,(looked, nothing there),,,,in both SAFE and Regular browser windows.You can uninstall (remove) the Java Console extensions, you do not need them to run Java applets.
See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
*Shockwave Flash 10.1 r85
Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
*http://www.adobe.com/software/flash/about/ -
Have searched Forums for quite some time now. Cannot find a correct answer to: how do I prevent my old email address from appearing as the "from:" address when I use a "send this" link on a webpage/news article. The email window opens and automatically inserts my old Hotmail address instead of the Yahoo address I've used for a long time. (The drop-down won't let me change it or delete it.) Thanks.
Do you get a drop down list with suggestions if you clear that "from" field and click elsewhere on that page to move the focus off that field and then double-click again in that field or start typing the first letters of that unwanted email address?
Use these steps to remove saved (form) data from a drop down list:
#Click the (empty) input field on the web page to open the drop down list
#Highlight an entry in the drop down list
#Press the Delete key (on Mac: Shift+Delete) to remove it.
*Form History Control: https://addons.mozilla.org/firefox/addon/form-history-control/
*Tahoe Data Manager: https://addons.mozilla.org/firefox/addon/data-manager/
Maybe you are looking for
-
Can I restrict OS version upgrades for client MacBook Airs through Profile Manager?
Hello everyone, We have all our employees MacBook Airs (all on 10.9.3+) enrolled on Profile Manager as a group. When Mavericks first came out early adopters caused us no end of problems trying to work between 10.9 and those still on 10.8. We now have
-
My ipod isn't being recognized by my computer or itunes no matter what i do
I have tried my ipod on two different computer , install the new software and everything i could possibly do but it does have the folder with the icon but other then that it is frozen.
-
How to remove recovery partition of HP Pavilion X2 10
HP Pavilion X2 10 comes with a 32GB drive, like many other Windows 8 tables, and only 14GB is available to users. The free space is decreases as I install and save data to the device, and quickly reached 3GB to a level that machine start reising wari
-
B1DE / KeyDown Event ...
I have a problem with an addon i'm developing .. I have a matrix on a screen for which i'm trying to capture a KeyDown event (actually the 'Del' key but it seems to happen with all keys) .. I attach an item listener to my matrix as shown below ..
-
Hello Experts, We are facing an issue like when our Talent specialist are trying to use talent search through their portal they are getting an error like "Error occurred during your search, contact your system administrator" as shown below.