Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Wrong URL in email alerts, and From Address?

web-app

Hi, 2 questions. Running v2.1.1.

1. Is there a way of setting the From Name for the email notification? It says the email is from the correct address that I set up, but is there a way of having this as a name (e.g. Issue Tracker) instead of the from email address?

2. The FullGeminiURL is correct in the database and all the pages work fine. But in the email notifications, the "Click here to view the issue" link is showing http://localhost/etc instead of the FullGeminiURL. I've even got the Force Gemini URL option turned on. Any ideas?

Thanks.

jsweby
· 1
jsweby
Replies (15)
helpful
0
not helpful

1.  Not sure if this will work or not, I haven't tried it so hopefully someone from CouterSoft can confirm. But in CDONTS you can put DisplayName<emailaddress>.

2.  At the bottom of the email does the link in "This message was automatically generated by Gemini v2.1.1" also point to localhost?


SystemIdleProcess
· 1
SystemIdleProcess
helpful
0
not helpful

I forgot to ask if you are seeing the URL and Force URL settings directly in the database or under Administration\Global Settings\General?


SystemIdleProcess
· 1
SystemIdleProcess
helpful
0
not helpful

Hi, thanks for the response.

 

1. I don't understand this part, where would I set that?

2. Yes, the Gemini link at the bottom also points back to localhost/gemini. I'm seeing the FullGeminiURL field in both the Admin settings AND in the database, presumably its the same field.


jsweby
· 1
jsweby
helpful
0
not helpful

1.  So in your web.config you should see the following.  The one highlighted in red is what you would want to modify.

    <MailPlugin>
      <!-- SMTPServer - specify IP number or machine name -->
      <add key="SMTPServer" value="smtpserver"/>
      <!-- SMTP authentication values: OFF, BASIC, NTLM. -->
      <add key="SMTPAuthentication" value="OFF"/>
      <add key="SMTPUserName" value=""/>
      <add key="SMTPPassword" value=""/>
      <!-- Global email alert type on/off settings -->
      <add key="IssueCreateAlert" value="true"/>
      <add key="IssueUpdateAlert" value="true"/>
      <add key="IssueCommentAlert" value="true"/>
      <add key="IssueStatusChangeAlert" value="false"/>
      <add key="IssueResolutionChangeAlert" value="false"/>
      <add key="IssueDeleteAlert" value="true"/>
      <add key="IssueAssignedAlert" value="false"/>
      <add key="IssueClosedAlert" value="false"/>
      <add key="IssueResolvedAlert" value="false"/>
      <add key="IssueWatcherAlert" value="true"/>
      <!-- Options -->
      <add key="FromEmailAddress" value="Issue Tracker<user@host>"/>

2.  Yes the database and Admin should be displaying the save value I just wanted to double check where you were looking.  So the value for URL is not http://localhost/gemini/ ?


SystemIdleProcess
· 1
SystemIdleProcess
helpful
0
not helpful

1. Thanks, I'll try that.

2. No, the value of FullGeminiURL is http://10.0.0.3:8001/gemini which works for the site, just the emails have http://localhost/gemini in place of the real URL.

Thank you for your time on this. Any ideas on the email URL issue?


jsweby
· 1
jsweby
helpful
0
not helpful

I tried your solution to the FromEmailAddress this morning but this caused a server error on Gemini:

Parser error message: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 40, position 60.

It then goes on to highlight Line 40 in red which is the FromEmailAddress line.


jsweby
· 1
jsweby
helpful
0
not helpful

On point 2, inexplicably the links inside the emails are working this morning.

<shrug>


jsweby
· 1
jsweby
helpful
0
not helpful

Try enclosing the whole thing (frtom eamil) in a CDATA tag.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Could I trouble you for an example please? Thank you.
J.


jsweby
· 1
jsweby
helpful
0
not helpful

<add key="FromEmailAddress" value="<![CDATA[Issue Tracker<user@host>]]>"/>


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Exactly the same error back from the server because of the '<' character in the CDATA tag.


jsweby
· 1
jsweby
helpful
0
not helpful

was this issue dropped or was a solution found?


j_ruez
· 1
j_ruez
helpful
0
not helpful

An issue was added to Gemini for the wrong URL problem.


jsweby
· 1
jsweby
helpful
0
not helpful

Any Updates?


MandarJoglekar
· 1
MandarJoglekar
helpful
0
not helpful

All,

From release 2.2 (due next week), we use the MailBee.NET libarry for all SMTP activity.  Furthermore, as from 2.2, all email alerts will be handled by a standalone Windows Service (Gemini Scheduler Service) that batches up emails which results in less email traffic.

Two points:

1. See attached screenshot that demonstrates how you can (from release 2.2!) specify both email address and display name.
2. See below for how the new SMTP library handles such a setup.

[C#]
// Method 1: Setting Display Name and E-mail separately.
mailer.From.DisplayName = "John Doe, Sales Manager";
mailer.From.Email = "jdoe@domain.com";



// Method 2: Setting From field as string.
mailer.From.AsString = "\"John Doe, Sales Manager\" <jdoe@domain.com>";



// Method 3: Setting From field as EmailAddress.
mailer.From = new EmailAddress("John Doe, Sales Manager", "jdoe@domain.com");



// Method 4: Setting From field using Headers collection.
mailer.Message.Headers["From"] = "\"John Doe, Sales Manager\" <jdoe@domain.com>";

Commercial License holders will have access to the forthcoming Gemini Scheduler Service source code which handles email alerts.

Hope this helps.


Harvey Kandola
· 212
Harvey Kandola