Greetings, Supreme Council.
As I'm sure some have already surmised, I'm getting a "501 5.5.4 Invalid Address" error message because the sender address, "THE REALLY MARVELOUS COMPANY," is not in standard Who@what.ext format.
What I'm up against is that The Powers want the outgoing emails to say "THE REALLY MARVELOUS COMPANY" in the From: field; or, more specifically, they do not want the name of our company's return email address, because we are working as a management proxy and the client wishes that to remain less-well-known; our 3-character company name is the domain to and from which all emails flow, so not having it in the From: address is key to keeping them happy, and thus, me employed.
Is there a way, and I hope that only my panic keeps me from seeing it, that I can put "THE REALLY MARVELOUS COMPANY" in the From: field, have the program recognize it and say, "Aha! What he really means is 'TheClientsServiceOffice@TRMC.com'," and have the emails sent with the organization identifier instead of the actual source address in the From: field?
Thanks in advance.
Rich (BB code):
With Flds
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
= "MY-MAILSERVER.us.int.com"
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Update
End With
Subj = "Important Documentation"
EML = Range("B" + CStr(i))
ID = Range("A" + CStr(i))
strbody = ""
Call TextBody(i, strbody)
Atch1 = ""
y = 0: Do Until Range("A" + CStr(i + y)) <> ID: y = y + 1: Loop
Arr = 0
With iMsg
Set .Configuration = iConf
.To = EML
.CC = ""
.BCC = "Me@MyMail.com"
.From = "THE REALLY MARVELOUS COMPANY"
.Subject = Subj
.HTMLBody = strbody
For j = i To i + (y - 1)
If Arr = 1 Then
DoxName = Range("D" + CStr(j))
Atch1 = "G:\Huge\Medium\Small\" + DoxName + ".pdf"
Arr = 0: GoTo 1
End If
DoxName = Range("C" + CStr(j))
Atch1 = "G:\Huge\Medium\Small\" + DoxName + ".pdf""
If Range("D" + CStr(j)) <> "" Then Arr = 1: j = j - 1
1 .AddAttachment (Atch1)
Next
.Send
As I'm sure some have already surmised, I'm getting a "501 5.5.4 Invalid Address" error message because the sender address, "THE REALLY MARVELOUS COMPANY," is not in standard Who@what.ext format.
What I'm up against is that The Powers want the outgoing emails to say "THE REALLY MARVELOUS COMPANY" in the From: field; or, more specifically, they do not want the name of our company's return email address, because we are working as a management proxy and the client wishes that to remain less-well-known; our 3-character company name is the domain to and from which all emails flow, so not having it in the From: address is key to keeping them happy, and thus, me employed.
Is there a way, and I hope that only my panic keeps me from seeing it, that I can put "THE REALLY MARVELOUS COMPANY" in the From: field, have the program recognize it and say, "Aha! What he really means is 'TheClientsServiceOffice@TRMC.com'," and have the emails sent with the organization identifier instead of the actual source address in the From: field?
Thanks in advance.