473,387 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

VB: How to change the outlook sender

Hello,

I have an application which user need to log in with using their email.
there is a button, "Send Email"--
when user click the button, then it will pop up a outlook editor
Response.Redirect("mailto:?bcc=" Email_AddressEs)
My problem is the sender tied to the computer using, not the account of then application

Is it possible that i change the sender using coding behind?

Thanks for teaching.
Nov 5 '08 #1
5 6160
PianoMan64
374 Expert 256MB
Hello,

I have an application which user need to log in with using their email.
there is a button, "Send Email"--
when user click the button, then it will pop up a outlook editor
Response.Redirect("mailto:?bcc=" Email_AddressEs)
My problem is the sender tied to the computer using, not the account of then application

Is it possible that i change the sender using coding behind?

Thanks for teaching.
Hey Simonyoung,

Since you are using the current profile of the current logged in user of the PC, you're going to extremely limited on what email address your email is going to be coming from unless all the users of this alias that may be setup has permissions by MS Exchange email address that you're wanting to send email on and/or if it is a POP3 account, that this particular user is setup on each and every machine that is going to send the BCC email. This is a major dropback in the method that you're using.

If you are sending email from a webpage that has a predifined Admin and/or a specific account, that is accessable, then you simply would go into the WEB.CONFIG file, and setup the user name, password, Port number and the SMTP server that you're going to be using to send email, and then you will have to write code that will create the email and send it on behalf of the Admin and/or specific user account that you want to send it from.

Attached is a copy of a sample webpage that you can send email from.




If you need assistance with how to do in detail, let me know.

Thanks,

Joe P.
Attached Files
File Type: zip TestEmail.zip (3.4 KB, 294 views)
Nov 5 '08 #2
Hey Simonyoung,

Since you are using the current profile of the current logged in user of the PC, you're going to extremely limited on what email address your email is going to be coming from unless all the users of this alias that may be setup has permissions by MS Exchange email address that you're wanting to send email on and/or if it is a POP3 account, that this particular user is setup on each and every machine that is going to send the BCC email. This is a major dropback in the method that you're using.

If you are sending email from a webpage that has a predifined Admin and/or a specific account, that is accessable, then you simply would go into the WEB.CONFIG file, and setup the user name, password, Port number and the SMTP server that you're going to be using to send email, and then you will have to write code that will create the email and send it on behalf of the Admin and/or specific user account that you want to send it from.

Attached is a copy of a sample webpage that you can send email from.




If you need assistance with how to do in detail, let me know.

Thanks,

Joe P.





Thanks PianoMan64
I try it now.
Nov 5 '08 #3
Hello, PianoMan64
I look thru the file you gave me which create an interface and using asp.net build-in features (asp.net send email)

but in my case, I want just click a button then pop up a microsoft outlook editor
the pop up i already did it
My problem is the sender tied to my account which my id to log in this computer.
Is it possible that i change the sender to the web page user's account?
I'm not so clear about the pasange
Can sir explain more detail to me?
Thanks lots.

<<Since you are using the current profile of the current logged in user of the PC, you're going to extremely limited on what email address your email is going to be coming from unless all the users of this alias that may be setup has permissions by MS Exchange email address that you're wanting to send email on and/or if it is a POP3 account, that this particular user is setup on each and every machine that is going to send the BCC email. This is a major dropback in the method that you're using.>>
Nov 7 '08 #4
PianoMan64
374 Expert 256MB
@simonyong
Ok,

Here it goes,

When you create an Email account on an Exchange server or if you're not using exchange, there is a profile that is created with the senders email address.

1. If you have an outlook client tide to MS Exchange, then you'll have to have the System Admin or Network Admin, depending on who is in charge of creating Mail Accounts in MS Exchange, to create Multiple mailboxes that would be tide to your computer. If this mailboxes are from other users on the network, then the MS Excahnge Admin would have to give you access to each of those users account, so you would be able to send email on their behalf. PLEASE NOTE: "It will say that you are sending the email on behalf of the other user." So spam program will not let this email through.

2. If you are using a copy of Outlook Client without Exchange, then you can create profiles with each username and password for Each pop3 account that you want to send email on. But then again you're going to have to write the ASP.NET to interact with a local copy of Outlook Client in order to make all this work the way that you want. This is beyond my what I know how to do.

Hope that helps,

Joe P.
Dec 16 '08 #5
Plater
7,872 Expert 4TB
Here's a short answer: no, not really.
Outlook is tied to accounts, you're at the mercy of it (except in situations as pianoman has been describing)
This is a situation where you cannot have your cake and eat it to.
You either go the webmail form way and send the email out from the server using the accounts you want, or you popup the users default email client (normally outlook) and send the email from whatever account is configured on it.

You may be able to MASK the sender with the ?From=user@someplace.com, but the email is still going to be sent from the given account
Dec 17 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: ~ Le Naja ~ | last post by:
Hello evrybody, First, I hope you will understand my English because I come from Belgium ! :-) Here is what I want to know if you have the kindess to help me ! :-) I use the code above to mail...
3
by: Steve | last post by:
Re: Outlook Express I'd like to get a log of the date and subject of all emails in my inbox received from sender@xyz.com and a log of the date and subject of all emails in my sentbox sent to...
1
by: srinivas | last post by:
Hi, i'm trying to retreive the appointments from different profiles of outlook. My outlook has 3 profiles created.('Sample1','Sample2','Sample3') my form contains 3 buttons.each one for each...
2
by: Roger | last post by:
I am creating an application that will sit on a client pc and monitor the inbox. When an e-mail enters the inbox, then an even will be fired and I will then be able to process the mail. I have...
0
by: ratnakarp | last post by:
Is there any way i can improve on this code? If i run this application by giving the detials of the start date and end date in the range of 15 days, it's taking 3 mins. I'm looking for a code...
2
by: daniel.czestki | last post by:
Hello, In my MS Outlook I use global address book to handling contacts. When I send email from Outlook to myself and double click on sender I get information about me from my global address...
4
by: Pieter | last post by:
Hi, On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes an exception when moving (Move) a MailItem to an Outlook-Folder: The RPC server is not available. (Exception from...
4
by: SStory | last post by:
I want to drag a message from Outlook to a richtextbox on a vb.net form. I don't get the message body. I have searched all over the place and found nothing. Does anyone know how to do this? I...
1
by: arnott | last post by:
hi all, I am writing a add-in for Outlook 2007 using C# and VSTO ( Visual Studio 2008). When the user clicks on each mailitem in the inbox (or any folder) in the active explorer window, the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.