473,405 Members | 2,272 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,405 software developers and data experts.

Alias!

How do I assign an alias to the mandatory "From" parameter while
sending mails using CDONTS? The "From" parameter usually takes the
following form:

<%
Dim objMail
Set objMail=Server.CreateObject("CDONTS.NEWMAIL")
objMail.From="ja**@mailserver.com"
objMail.To="gr**@mailserver.com"
........
........
........
%>

i.e. the person receiving the mail (in this case, Greg) will see the
entire e-mail address of the person who has sent the mail (in this
case, Jack) something like....

From: ja**@mailserver.com
.......
.......

How do I use an alias in place of the entire e-mail address? For e.g.
Greg, who is receiving the mail, should see something like

From: Jack
.......
.......

Thanks,

Arpan

Sep 28 '05 #1
4 1502
You don't. This field is a valid email address, not an alias. It's
required to meet RFC.

Jeff
On 27 Sep 2005 18:46:49 -0700, "Arpan" <ar******@hotmail.com> wrote:
How do I assign an alias to the mandatory "From" parameter while
sending mails using CDONTS? The "From" parameter usually takes the
following form:

<%
Dim objMail
Set objMail=Server.CreateObject("CDONTS.NEWMAIL")
objMail.From="ja**@mailserver.com"
objMail.To="gr**@mailserver.com"
........
........
........
%>

i.e. the person receiving the mail (in this case, Greg) will see the
entire e-mail address of the person who has sent the mail (in this
case, Jack) something like....

From: ja**@mailserver.com
......
......

How do I use an alias in place of the entire e-mail address? For e.g.
Greg, who is receiving the mail, should see something like

From: Jack
......
......

Thanks,

Arpan


Sep 28 '05 #2
>>You don't.........

"You don't" or "You can't", Jeff???

Thanks,

Regards,

Arpan

Sep 29 '05 #3
<43***************@msnews.microsoft.com>
<11**********************@o13g2000cwo.googlegroups .com>
Newsgroups: microsoft.public.inetserver.asp.general
NNTP-Posting-Host: gw.jda.com 65.160.56.2
Path: border1.nntp.dca.giganews.com!nntp.giganews.com!ne wshub.sdsu.edu!msrtrans!TK2MSFTNGP08.phx.gbl!TK2MS FTNGP09.phx.gbl
Lines: 1
Xref: number1.nntp.dca.giganews.com microsoft.public.inetserver.asp.general:315514

AFAIK - you must use a valid email address, however it can be code like this:

objfrom = "AnyNameYouWish<ja**@mailserver.com>"

Brian

Sep 29 '05 #4
On 29 Sep 2005 08:57:11 -0700, "Arpan" <ar******@hotmail.com> wrote:
You don't.........


"You don't" or "You can't", Jeff???


Well, technically, you can. It just doesn't work. :)

This must be a valid email address. You can specify the user in the
field by using a format similar to:

"User Name<us******@domain.tld>"

You cannot simply use an alias (for one thing, where do you think it
would look up the alias?).

Jeff
Oct 4 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andrew | last post by:
With command-line interface ( 3.23.37, UNIX Socket ) all is well with column aliasing. However, column aliases disappear in Excel, over ODBC, when there are multiple (joined) tables in the query. ...
14
by: John | last post by:
Hi all, I am doing the change from having worked in Oracle for a long time to MS SQL server and am frustrated with a couple of simple SQL stmt's. Or at least they have always been easy. The...
2
by: tom horner | last post by:
Any ideas on why drop and create alias statements would take a long time? We recently went through an upgrade of our production database, which included alter statements to table structures,...
5
by: Santiago Ordax Solivellas | last post by:
Hi. We have almost all our tables defined on library lib1 and some on lib2. We have alias defined on lib1 to access tables on lib2 so there is no need to qualify library name. Alias for tables on...
0
by: noman | last post by:
Pasting the contents of ~/.alias into ~/.ipython/ipythonrc-pysh causes all of my normal system aliases to be sourced and used by ipython, but only the single token aliases work. For example, this...
6
by: rAinDeEr | last post by:
Hi, An alias is an alternate name for a table or a view. Now, suppose I create an alias on a non existent table in the control centre , it gives me a warning but it still creates the alias for...
3
by: petermichaux | last post by:
Hi, Is there a way to make one property an alias for another? This would mean that if the value of the original is changed then so is the value of the alias. I tried the following example and it...
9
by: lnatz | last post by:
Hi, I am writing a shell for a class and I have to write some builtins such as alias and cd. I am having some trouble with alias. I anyone could give me some ideas about how to do it I would...
3
by: Jake G | last post by:
Hi, I have elements my page with an "alias" in them e.g. <input type=hidden id="S_SELLOG" name="S_SELLOG" iegAlias="S_SELLOG01" maxlength=1 title="Login/Logout" style="top:0; left:0;"> I am...
1
by: dwasler | last post by:
Try every thing I know to remove this alias I know there been other posting I read each one none seem to work. Thank You DLWasler dwasler@yahoo.com OS Window db2 V 8.2.X
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.